@angular/forms 20.0.0-next.1 → 20.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/forms.mjs +153 -177
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +3802 -4144
- package/package.json +4 -4
package/fesm2022/forms.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import {
|
|
9
|
-
import { ɵgetDOM } from '@angular/common';
|
|
8
|
+
import { InjectionToken, Directive, forwardRef, Optional, Inject, ɵisPromise as _isPromise, ɵisSubscribable as _isSubscribable, ɵRuntimeError as _RuntimeError, Self, untracked, computed, signal, EventEmitter, Input, Host, SkipSelf, booleanAttribute, ChangeDetectorRef, Output, inject, Injectable, NgModule, Version } from '@angular/core';
|
|
9
|
+
import { ɵgetDOM as _getDOM } from '@angular/common';
|
|
10
10
|
import { from, forkJoin, Subject } from 'rxjs';
|
|
11
11
|
import { map } from 'rxjs/operators';
|
|
12
12
|
|
|
@@ -64,10 +64,10 @@ class BaseControlValueAccessor {
|
|
|
64
64
|
setDisabledState(isDisabled) {
|
|
65
65
|
this.setProperty('disabled', isDisabled);
|
|
66
66
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: BaseControlValueAccessor, isStandalone: true, ngImport: i0 });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
71
71
|
type: Directive
|
|
72
72
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });
|
|
73
73
|
/**
|
|
@@ -80,10 +80,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
80
80
|
* applications code.
|
|
81
81
|
*/
|
|
82
82
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: BuiltInControlValueAccessor, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
87
87
|
type: Directive
|
|
88
88
|
}] });
|
|
89
89
|
/**
|
|
@@ -131,10 +131,10 @@ class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
131
131
|
writeValue(value) {
|
|
132
132
|
this.setProperty('checked', value);
|
|
133
133
|
}
|
|
134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
135
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
135
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: CheckboxControlValueAccessor, isStandalone: false, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
138
138
|
type: Directive,
|
|
139
139
|
args: [{
|
|
140
140
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -154,7 +154,7 @@ const DEFAULT_VALUE_ACCESSOR = {
|
|
|
154
154
|
* behave differently between iOS and Android.
|
|
155
155
|
*/
|
|
156
156
|
function _isAndroid() {
|
|
157
|
-
const userAgent =
|
|
157
|
+
const userAgent = _getDOM() ? _getDOM().getUserAgent() : '';
|
|
158
158
|
return /android (\d+)/.test(userAgent.toLowerCase());
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
@@ -232,10 +232,10 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
232
232
|
this._composing = false;
|
|
233
233
|
this._compositionMode && this.onChange(value);
|
|
234
234
|
}
|
|
235
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
236
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
236
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: DefaultValueAccessor, isStandalone: false, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
239
239
|
type: Directive,
|
|
240
240
|
args: [{
|
|
241
241
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -639,7 +639,7 @@ class Validators {
|
|
|
639
639
|
*
|
|
640
640
|
*/
|
|
641
641
|
static nullValidator(control) {
|
|
642
|
-
return nullValidator(
|
|
642
|
+
return nullValidator();
|
|
643
643
|
}
|
|
644
644
|
static compose(validators) {
|
|
645
645
|
return compose(validators);
|
|
@@ -792,15 +792,15 @@ function isPresent(o) {
|
|
|
792
792
|
return o != null;
|
|
793
793
|
}
|
|
794
794
|
function toObservable(value) {
|
|
795
|
-
const obs =
|
|
796
|
-
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
795
|
+
const obs = _isPromise(value) ? from(value) : value;
|
|
796
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) && !_isSubscribable(obs)) {
|
|
797
797
|
let errorMessage = `Expected async validator to return Promise or Observable.`;
|
|
798
798
|
// A synchronous validator will return object or null.
|
|
799
799
|
if (typeof value === 'object') {
|
|
800
800
|
errorMessage +=
|
|
801
801
|
' Are you using a synchronous validator where an async validator is expected?';
|
|
802
802
|
}
|
|
803
|
-
throw new
|
|
803
|
+
throw new _RuntimeError(-1101 /* RuntimeErrorCode.WRONG_VALIDATOR_RETURN_TYPE */, errorMessage);
|
|
804
804
|
}
|
|
805
805
|
return obs;
|
|
806
806
|
}
|
|
@@ -1372,10 +1372,10 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1372
1372
|
constructor(cd) {
|
|
1373
1373
|
super(cd);
|
|
1374
1374
|
}
|
|
1375
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
1376
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
1375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1376
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgControlStatus, isStandalone: false, selector: "[formControlName],[ngModel],[formControl]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending" } }, usesInheritance: true, ngImport: i0 });
|
|
1377
1377
|
}
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1379
1379
|
type: Directive,
|
|
1380
1380
|
args: [{
|
|
1381
1381
|
selector: '[formControlName],[ngModel],[formControl]',
|
|
@@ -1401,10 +1401,10 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1401
1401
|
constructor(cd) {
|
|
1402
1402
|
super(cd);
|
|
1403
1403
|
}
|
|
1404
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
1405
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
1404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1405
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgControlStatusGroup, isStandalone: false, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending", "class.ng-submitted": "isSubmitted" } }, usesInheritance: true, ngImport: i0 });
|
|
1406
1406
|
}
|
|
1407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
1407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1408
1408
|
type: Directive,
|
|
1409
1409
|
args: [{
|
|
1410
1410
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -1468,7 +1468,7 @@ const ngModelWithFormGroupExample = `
|
|
|
1468
1468
|
`;
|
|
1469
1469
|
|
|
1470
1470
|
function controlParentException(nameOrIndex) {
|
|
1471
|
-
return new
|
|
1471
|
+
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
|
|
1472
1472
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1473
1473
|
|
|
1474
1474
|
${describeFormControl(nameOrIndex)}
|
|
@@ -1485,7 +1485,7 @@ function describeFormControl(nameOrIndex) {
|
|
|
1485
1485
|
return `Affected Form Control ${valueType}: "${nameOrIndex}"`;
|
|
1486
1486
|
}
|
|
1487
1487
|
function ngModelGroupException() {
|
|
1488
|
-
return new
|
|
1488
|
+
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
|
|
1489
1489
|
that also have a "form" prefix: formGroupName, formArrayName, or formGroup.
|
|
1490
1490
|
|
|
1491
1491
|
Option 1: Update the parent to be formGroupName (reactive form strategy)
|
|
@@ -1497,14 +1497,14 @@ function ngModelGroupException() {
|
|
|
1497
1497
|
${ngModelGroupExample}`);
|
|
1498
1498
|
}
|
|
1499
1499
|
function missingFormException() {
|
|
1500
|
-
return new
|
|
1500
|
+
return new _RuntimeError(1052 /* RuntimeErrorCode.FORM_GROUP_MISSING_INSTANCE */, `formGroup expects a FormGroup instance. Please pass one in.
|
|
1501
1501
|
|
|
1502
1502
|
Example:
|
|
1503
1503
|
|
|
1504
1504
|
${formControlNameExample}`);
|
|
1505
1505
|
}
|
|
1506
1506
|
function groupParentException() {
|
|
1507
|
-
return new
|
|
1507
|
+
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
|
|
1508
1508
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1509
1509
|
|
|
1510
1510
|
Example:
|
|
@@ -1512,7 +1512,7 @@ function groupParentException() {
|
|
|
1512
1512
|
${formGroupNameExample}`);
|
|
1513
1513
|
}
|
|
1514
1514
|
function arrayParentException() {
|
|
1515
|
-
return new
|
|
1515
|
+
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
|
|
1516
1516
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
1517
1517
|
|
|
1518
1518
|
Example:
|
|
@@ -1731,16 +1731,16 @@ function assertControlPresent(parent, isGroup, key) {
|
|
|
1731
1731
|
const controls = parent.controls;
|
|
1732
1732
|
const collection = isGroup ? Object.keys(controls) : controls;
|
|
1733
1733
|
if (!collection.length) {
|
|
1734
|
-
throw new
|
|
1734
|
+
throw new _RuntimeError(1000 /* RuntimeErrorCode.NO_CONTROLS */, typeof ngDevMode === 'undefined' || ngDevMode ? noControlsError(isGroup) : '');
|
|
1735
1735
|
}
|
|
1736
1736
|
if (!controls[key]) {
|
|
1737
|
-
throw new
|
|
1737
|
+
throw new _RuntimeError(1001 /* RuntimeErrorCode.MISSING_CONTROL */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlError(isGroup, key) : '');
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
function assertAllValuesPresent(control, isGroup, value) {
|
|
1741
1741
|
control._forEachChild((_, key) => {
|
|
1742
1742
|
if (value[key] === undefined) {
|
|
1743
|
-
throw new
|
|
1743
|
+
throw new _RuntimeError(1002 /* RuntimeErrorCode.MISSING_CONTROL_VALUE */, typeof ngDevMode === 'undefined' || ngDevMode ? missingControlValueError(isGroup, key) : '');
|
|
1744
1744
|
}
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
@@ -2392,7 +2392,10 @@ class AbstractControl {
|
|
|
2392
2392
|
_runAsyncValidator(shouldHaveEmitted, emitEvent) {
|
|
2393
2393
|
if (this.asyncValidator) {
|
|
2394
2394
|
this.status = PENDING;
|
|
2395
|
-
this._hasOwnPendingAsyncValidator = {
|
|
2395
|
+
this._hasOwnPendingAsyncValidator = {
|
|
2396
|
+
emitEvent: emitEvent !== false,
|
|
2397
|
+
shouldHaveEmitted: shouldHaveEmitted !== false,
|
|
2398
|
+
};
|
|
2396
2399
|
const obs = toObservable(this.asyncValidator(this));
|
|
2397
2400
|
this._asyncValidationSubscription = obs.subscribe((errors) => {
|
|
2398
2401
|
this._hasOwnPendingAsyncValidator = null;
|
|
@@ -2408,7 +2411,9 @@ class AbstractControl {
|
|
|
2408
2411
|
this._asyncValidationSubscription.unsubscribe();
|
|
2409
2412
|
// we're cancelling the validator subscribtion, we keep if it should have emitted
|
|
2410
2413
|
// because we want to emit eventually if it was required at least once.
|
|
2411
|
-
const shouldHaveEmitted = this._hasOwnPendingAsyncValidator?.emitEvent
|
|
2414
|
+
const shouldHaveEmitted = (this._hasOwnPendingAsyncValidator?.emitEvent ||
|
|
2415
|
+
this._hasOwnPendingAsyncValidator?.shouldHaveEmitted) ??
|
|
2416
|
+
false;
|
|
2412
2417
|
this._hasOwnPendingAsyncValidator = null;
|
|
2413
2418
|
return shouldHaveEmitted;
|
|
2414
2419
|
}
|
|
@@ -3381,11 +3386,11 @@ function _describeControlLocation(dir) {
|
|
|
3381
3386
|
}
|
|
3382
3387
|
function _throwMissingValueAccessorError(dir) {
|
|
3383
3388
|
const loc = _describeControlLocation(dir);
|
|
3384
|
-
throw new
|
|
3389
|
+
throw new _RuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);
|
|
3385
3390
|
}
|
|
3386
3391
|
function _throwInvalidValueAccessorError(dir) {
|
|
3387
3392
|
const loc = _describeControlLocation(dir);
|
|
3388
|
-
throw new
|
|
3393
|
+
throw new _RuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` +
|
|
3389
3394
|
`Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`);
|
|
3390
3395
|
}
|
|
3391
3396
|
function isPropertyUpdated(changes, viewModel) {
|
|
@@ -3744,10 +3749,10 @@ class NgForm extends ControlContainer {
|
|
|
3744
3749
|
path.pop();
|
|
3745
3750
|
return path.length ? this.form.get(path) : this.form;
|
|
3746
3751
|
}
|
|
3747
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3748
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
3752
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3753
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgForm, isStandalone: false, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: { options: ["ngFormOptions", "options"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider$1], exportAs: ["ngForm"], usesInheritance: true, ngImport: i0 });
|
|
3749
3754
|
}
|
|
3750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgForm, decorators: [{
|
|
3751
3756
|
type: Directive,
|
|
3752
3757
|
args: [{
|
|
3753
3758
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3957,10 +3962,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3957
3962
|
}
|
|
3958
3963
|
/** @internal */
|
|
3959
3964
|
_checkParentType() { }
|
|
3960
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3961
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
3965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3966
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: AbstractFormGroupDirective, isStandalone: false, usesInheritance: true, ngImport: i0 });
|
|
3962
3967
|
}
|
|
3963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
3968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3964
3969
|
type: Directive,
|
|
3965
3970
|
args: [{
|
|
3966
3971
|
standalone: false,
|
|
@@ -3968,7 +3973,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
3968
3973
|
}] });
|
|
3969
3974
|
|
|
3970
3975
|
function modelParentException() {
|
|
3971
|
-
return new
|
|
3976
|
+
return new _RuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `
|
|
3972
3977
|
ngModel cannot be used to register form controls with a parent formGroup directive. Try using
|
|
3973
3978
|
formGroup's partner directive "formControlName" instead. Example:
|
|
3974
3979
|
|
|
@@ -3981,7 +3986,7 @@ function modelParentException() {
|
|
|
3981
3986
|
${ngModelWithFormGroupExample}`);
|
|
3982
3987
|
}
|
|
3983
3988
|
function formGroupNameException() {
|
|
3984
|
-
return new
|
|
3989
|
+
return new _RuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `
|
|
3985
3990
|
ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
|
|
3986
3991
|
|
|
3987
3992
|
Option 1: Use formControlName instead of ngModel (reactive strategy):
|
|
@@ -3993,14 +3998,14 @@ function formGroupNameException() {
|
|
|
3993
3998
|
${ngModelGroupExample}`);
|
|
3994
3999
|
}
|
|
3995
4000
|
function missingNameException() {
|
|
3996
|
-
return new
|
|
4001
|
+
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
|
|
3997
4002
|
control must be defined as 'standalone' in ngModelOptions.
|
|
3998
4003
|
|
|
3999
4004
|
Example 1: <input [(ngModel)]="person.firstName" name="first">
|
|
4000
4005
|
Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">`);
|
|
4001
4006
|
}
|
|
4002
4007
|
function modelGroupParentException() {
|
|
4003
|
-
return new
|
|
4008
|
+
return new _RuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `
|
|
4004
4009
|
ngModelGroup cannot be used with a parent formGroup directive.
|
|
4005
4010
|
|
|
4006
4011
|
Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
|
|
@@ -4063,10 +4068,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
4063
4068
|
throw modelGroupParentException();
|
|
4064
4069
|
}
|
|
4065
4070
|
}
|
|
4066
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4067
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4071
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4072
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgModelGroup, isStandalone: false, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
4068
4073
|
}
|
|
4069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
4070
4075
|
type: Directive,
|
|
4071
4076
|
args: [{
|
|
4072
4077
|
selector: '[ngModelGroup]',
|
|
@@ -4380,10 +4385,10 @@ class NgModel extends NgControl {
|
|
|
4380
4385
|
_getPath(controlName) {
|
|
4381
4386
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4382
4387
|
}
|
|
4383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: ChangeDetectorRef, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgModel, isStandalone: false, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: { name: "name", isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"], options: ["ngModelOptions", "options"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding$1], exportAs: ["ngModel"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4385
4390
|
}
|
|
4386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgModel, decorators: [{
|
|
4387
4392
|
type: Directive,
|
|
4388
4393
|
args: [{
|
|
4389
4394
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4468,10 +4473,10 @@ function checkParentType$1(parent) {
|
|
|
4468
4473
|
* @ngModule FormsModule
|
|
4469
4474
|
*/
|
|
4470
4475
|
class ɵNgNoValidate {
|
|
4471
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4472
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4476
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4477
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: ɵNgNoValidate, isStandalone: false, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4473
4478
|
}
|
|
4474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4475
4480
|
type: Directive,
|
|
4476
4481
|
args: [{
|
|
4477
4482
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4528,10 +4533,10 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4528
4533
|
fn(value == '' ? null : parseFloat(value));
|
|
4529
4534
|
};
|
|
4530
4535
|
}
|
|
4531
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4532
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4537
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NumberValueAccessor, isStandalone: false, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4533
4538
|
}
|
|
4534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4535
4540
|
type: Directive,
|
|
4536
4541
|
args: [{
|
|
4537
4542
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4547,7 +4552,7 @@ const RADIO_VALUE_ACCESSOR = {
|
|
|
4547
4552
|
multi: true,
|
|
4548
4553
|
};
|
|
4549
4554
|
function throwNameError() {
|
|
4550
|
-
throw new
|
|
4555
|
+
throw new _RuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `
|
|
4551
4556
|
If you define both a name and a formControlName attribute on your radio button, their values
|
|
4552
4557
|
must match. Ex: <input type="radio" formControlName="food" name="food">
|
|
4553
4558
|
`);
|
|
@@ -4593,10 +4598,10 @@ class RadioControlRegistry {
|
|
|
4593
4598
|
return false;
|
|
4594
4599
|
return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);
|
|
4595
4600
|
}
|
|
4596
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4597
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4601
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4602
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' });
|
|
4598
4603
|
}
|
|
4599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4600
4605
|
type: Injectable,
|
|
4601
4606
|
args: [{ providedIn: 'root' }]
|
|
4602
4607
|
}] });
|
|
@@ -4739,10 +4744,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4739
4744
|
if (!this.name && this.formControlName)
|
|
4740
4745
|
this.name = this.formControlName;
|
|
4741
4746
|
}
|
|
4742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4743
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4747
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4748
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: RadioControlValueAccessor, isStandalone: false, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: { name: "name", formControlName: "formControlName", value: "value" }, host: { listeners: { "change": "onChange()", "blur": "onTouched()" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4744
4749
|
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4746
4751
|
type: Directive,
|
|
4747
4752
|
args: [{
|
|
4748
4753
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4804,10 +4809,10 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4804
4809
|
fn(value == '' ? null : parseFloat(value));
|
|
4805
4810
|
};
|
|
4806
4811
|
}
|
|
4807
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4808
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4812
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4813
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: RangeValueAccessor, isStandalone: false, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4809
4814
|
}
|
|
4810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4811
4816
|
type: Directive,
|
|
4812
4817
|
args: [{
|
|
4813
4818
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4954,10 +4959,10 @@ class FormControlDirective extends NgControl {
|
|
|
4954
4959
|
_isControlChanged(changes) {
|
|
4955
4960
|
return changes.hasOwnProperty('form');
|
|
4956
4961
|
}
|
|
4957
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4958
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
4962
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4963
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: FormControlDirective, isStandalone: false, selector: "[formControl]", inputs: { form: ["formControl", "form"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4959
4964
|
}
|
|
4960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
4965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4961
4966
|
type: Directive,
|
|
4962
4967
|
args: [{
|
|
4963
4968
|
selector: '[formControl]',
|
|
@@ -5319,10 +5324,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5319
5324
|
cleanUpValidators(this._oldForm, this);
|
|
5320
5325
|
}
|
|
5321
5326
|
}
|
|
5322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5323
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
5327
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormGroupDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5328
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: FormGroupDirective, isStandalone: false, selector: "[formGroup]", inputs: { form: ["formGroup", "form"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
5324
5329
|
}
|
|
5325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5326
5331
|
type: Directive,
|
|
5327
5332
|
args: [{
|
|
5328
5333
|
selector: '[formGroup]',
|
|
@@ -5431,10 +5436,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5431
5436
|
throw groupParentException();
|
|
5432
5437
|
}
|
|
5433
5438
|
}
|
|
5434
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5435
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
5439
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5440
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: FormGroupName, isStandalone: false, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5436
5441
|
}
|
|
5437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5438
5443
|
type: Directive,
|
|
5439
5444
|
args: [{
|
|
5440
5445
|
selector: '[formGroupName]',
|
|
@@ -5552,10 +5557,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5552
5557
|
get path() {
|
|
5553
5558
|
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
|
|
5554
5559
|
}
|
|
5555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5556
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
5560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5561
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: FormArrayName, isStandalone: false, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5557
5562
|
}
|
|
5558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5559
5564
|
type: Directive,
|
|
5560
5565
|
args: [{
|
|
5561
5566
|
selector: '[formArrayName]',
|
|
@@ -5740,10 +5745,10 @@ class FormControlName extends NgControl {
|
|
|
5740
5745
|
this.control = this.formDirective.addControl(this);
|
|
5741
5746
|
this._added = true;
|
|
5742
5747
|
}
|
|
5743
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5744
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
5748
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5749
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: FormControlName, isStandalone: false, selector: "[formControlName]", inputs: { name: ["formControlName", "name"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
5745
5750
|
}
|
|
5746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormControlName, decorators: [{
|
|
5747
5752
|
type: Directive,
|
|
5748
5753
|
args: [{
|
|
5749
5754
|
selector: '[formControlName]',
|
|
@@ -5891,7 +5896,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5891
5896
|
*/
|
|
5892
5897
|
set compareWith(fn) {
|
|
5893
5898
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
5894
|
-
throw new
|
|
5899
|
+
throw new _RuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
5895
5900
|
}
|
|
5896
5901
|
this._compareWith = fn;
|
|
5897
5902
|
}
|
|
@@ -5933,10 +5938,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5933
5938
|
const id = _extractId$1(valueString);
|
|
5934
5939
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5935
5940
|
}
|
|
5936
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5937
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
5941
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5942
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: SelectControlValueAccessor, isStandalone: false, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
5938
5943
|
}
|
|
5939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
5944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5940
5945
|
type: Directive,
|
|
5941
5946
|
args: [{
|
|
5942
5947
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -6007,10 +6012,10 @@ class NgSelectOption {
|
|
|
6007
6012
|
this._select.writeValue(this._select.value);
|
|
6008
6013
|
}
|
|
6009
6014
|
}
|
|
6010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6011
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6015
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6016
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: NgSelectOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6012
6017
|
}
|
|
6013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
6014
6019
|
type: Directive,
|
|
6015
6020
|
args: [{
|
|
6016
6021
|
selector: 'option',
|
|
@@ -6045,11 +6050,6 @@ function _buildValueString(id, value) {
|
|
|
6045
6050
|
function _extractId(valueString) {
|
|
6046
6051
|
return valueString.split(':')[0];
|
|
6047
6052
|
}
|
|
6048
|
-
/** Mock interface for HTMLCollection */
|
|
6049
|
-
class HTMLCollection {
|
|
6050
|
-
// TODO(issue/24571): remove '!'.
|
|
6051
|
-
length;
|
|
6052
|
-
}
|
|
6053
6053
|
/**
|
|
6054
6054
|
* @description
|
|
6055
6055
|
* The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
|
|
@@ -6102,7 +6102,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6102
6102
|
*/
|
|
6103
6103
|
set compareWith(fn) {
|
|
6104
6104
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
6105
|
-
throw new
|
|
6105
|
+
throw new _RuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
6106
6106
|
}
|
|
6107
6107
|
this._compareWith = fn;
|
|
6108
6108
|
}
|
|
@@ -6181,10 +6181,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6181
6181
|
const id = _extractId(valueString);
|
|
6182
6182
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
6183
6183
|
}
|
|
6184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6185
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6185
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: SelectMultipleControlValueAccessor, isStandalone: false, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target)", "blur": "onTouched()" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
6186
6186
|
}
|
|
6187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
6188
6188
|
type: Directive,
|
|
6189
6189
|
args: [{
|
|
6190
6190
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -6263,10 +6263,10 @@ class ɵNgSelectMultipleOption {
|
|
|
6263
6263
|
this._select.writeValue(this._select.value);
|
|
6264
6264
|
}
|
|
6265
6265
|
}
|
|
6266
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6267
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6266
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6267
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: ɵNgSelectMultipleOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6268
6268
|
}
|
|
6269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
6270
6270
|
type: Directive,
|
|
6271
6271
|
args: [{
|
|
6272
6272
|
selector: 'option',
|
|
@@ -6348,10 +6348,10 @@ class AbstractValidatorDirective {
|
|
|
6348
6348
|
enabled(input) {
|
|
6349
6349
|
return input != null /* both `null` and `undefined` */;
|
|
6350
6350
|
}
|
|
6351
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6352
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6352
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
6353
6353
|
}
|
|
6354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6354
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6355
6355
|
type: Directive
|
|
6356
6356
|
}] });
|
|
6357
6357
|
/**
|
|
@@ -6396,10 +6396,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6396
6396
|
normalizeInput = (input) => toFloat(input);
|
|
6397
6397
|
/** @internal */
|
|
6398
6398
|
createValidator = (max) => maxValidator(max);
|
|
6399
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6400
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6400
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: MaxValidator, isStandalone: false, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "_enabled ? max : null" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6401
6401
|
}
|
|
6402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6403
6403
|
type: Directive,
|
|
6404
6404
|
args: [{
|
|
6405
6405
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6452,10 +6452,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6452
6452
|
normalizeInput = (input) => toFloat(input);
|
|
6453
6453
|
/** @internal */
|
|
6454
6454
|
createValidator = (min) => minValidator(min);
|
|
6455
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6456
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6455
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6456
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: MinValidator, isStandalone: false, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "_enabled ? min : null" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6457
6457
|
}
|
|
6458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MinValidator, decorators: [{
|
|
6459
6459
|
type: Directive,
|
|
6460
6460
|
args: [{
|
|
6461
6461
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6519,10 +6519,10 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6519
6519
|
enabled(input) {
|
|
6520
6520
|
return input;
|
|
6521
6521
|
}
|
|
6522
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6523
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6522
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6523
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: RequiredValidator, isStandalone: false, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: { required: "required" }, host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6524
6524
|
}
|
|
6525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6526
6526
|
type: Directive,
|
|
6527
6527
|
args: [{
|
|
6528
6528
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6557,10 +6557,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
6557
6557
|
class CheckboxRequiredValidator extends RequiredValidator {
|
|
6558
6558
|
/** @internal */
|
|
6559
6559
|
createValidator = (input) => requiredTrueValidator;
|
|
6560
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6561
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6561
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: CheckboxRequiredValidator, isStandalone: false, selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]", host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6562
6562
|
}
|
|
6563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6564
6564
|
type: Directive,
|
|
6565
6565
|
args: [{
|
|
6566
6566
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6621,10 +6621,10 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6621
6621
|
enabled(input) {
|
|
6622
6622
|
return input;
|
|
6623
6623
|
}
|
|
6624
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6625
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6624
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6625
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: EmailValidator, isStandalone: false, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6626
6626
|
}
|
|
6627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6627
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6628
6628
|
type: Directive,
|
|
6629
6629
|
args: [{
|
|
6630
6630
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6676,10 +6676,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6676
6676
|
normalizeInput = (input) => toInteger(input);
|
|
6677
6677
|
/** @internal */
|
|
6678
6678
|
createValidator = (minlength) => minLengthValidator(minlength);
|
|
6679
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6680
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6679
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6680
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: MinLengthValidator, isStandalone: false, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: { minlength: "minlength" }, host: { properties: { "attr.minlength": "_enabled ? minlength : null" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6681
6681
|
}
|
|
6682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6683
6683
|
type: Directive,
|
|
6684
6684
|
args: [{
|
|
6685
6685
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6732,10 +6732,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6732
6732
|
normalizeInput = (input) => toInteger(input);
|
|
6733
6733
|
/** @internal */
|
|
6734
6734
|
createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6735
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6736
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6735
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6736
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: MaxLengthValidator, isStandalone: false, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: { maxlength: "maxlength" }, host: { properties: { "attr.maxlength": "_enabled ? maxlength : null" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6737
6737
|
}
|
|
6738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6739
6739
|
type: Directive,
|
|
6740
6740
|
args: [{
|
|
6741
6741
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6790,10 +6790,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6790
6790
|
normalizeInput = (input) => input;
|
|
6791
6791
|
/** @internal */
|
|
6792
6792
|
createValidator = (input) => patternValidator(input);
|
|
6793
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6794
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6793
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6794
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.0.0-next.2", type: PatternValidator, isStandalone: false, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: { pattern: "pattern" }, host: { properties: { "attr.pattern": "_enabled ? pattern : null" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6795
6795
|
}
|
|
6796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6797
6797
|
type: Directive,
|
|
6798
6798
|
args: [{
|
|
6799
6799
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6839,8 +6839,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [
|
|
|
6839
6839
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6840
6840
|
*/
|
|
6841
6841
|
class ɵInternalFormsSharedModule {
|
|
6842
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6843
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
6842
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6843
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6844
6844
|
NgSelectOption,
|
|
6845
6845
|
ɵNgSelectMultipleOption,
|
|
6846
6846
|
DefaultValueAccessor,
|
|
@@ -6879,9 +6879,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6879
6879
|
EmailValidator,
|
|
6880
6880
|
MinValidator,
|
|
6881
6881
|
MaxValidator] });
|
|
6882
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6882
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵInternalFormsSharedModule });
|
|
6883
6883
|
}
|
|
6884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
6884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6885
6885
|
type: NgModule,
|
|
6886
6886
|
args: [{
|
|
6887
6887
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7533,10 +7533,10 @@ class FormBuilder {
|
|
|
7533
7533
|
return this.control(controls);
|
|
7534
7534
|
}
|
|
7535
7535
|
}
|
|
7536
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7537
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7537
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormBuilder, providedIn: 'root' });
|
|
7538
7538
|
}
|
|
7539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7540
7540
|
type: Injectable,
|
|
7541
7541
|
args: [{ providedIn: 'root' }]
|
|
7542
7542
|
}] });
|
|
@@ -7548,10 +7548,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
7548
7548
|
* @publicApi
|
|
7549
7549
|
*/
|
|
7550
7550
|
class NonNullableFormBuilder {
|
|
7551
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7552
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7551
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7552
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });
|
|
7553
7553
|
}
|
|
7554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7555
7555
|
type: Injectable,
|
|
7556
7556
|
args: [{
|
|
7557
7557
|
providedIn: 'root',
|
|
@@ -7577,10 +7577,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7577
7577
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7578
7578
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7579
7579
|
}
|
|
7580
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7581
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7580
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7581
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });
|
|
7582
7582
|
}
|
|
7583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7584
7584
|
type: Injectable,
|
|
7585
7585
|
args: [{ providedIn: 'root' }]
|
|
7586
7586
|
}] });
|
|
@@ -7593,7 +7593,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
7593
7593
|
/**
|
|
7594
7594
|
* @publicApi
|
|
7595
7595
|
*/
|
|
7596
|
-
const VERSION = new Version('20.0.0-next.
|
|
7596
|
+
const VERSION = new Version('20.0.0-next.2');
|
|
7597
7597
|
|
|
7598
7598
|
/**
|
|
7599
7599
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7624,11 +7624,11 @@ class FormsModule {
|
|
|
7624
7624
|
],
|
|
7625
7625
|
};
|
|
7626
7626
|
}
|
|
7627
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7628
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
7629
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7627
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7628
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
7629
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7630
7630
|
}
|
|
7631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: FormsModule, decorators: [{
|
|
7632
7632
|
type: NgModule,
|
|
7633
7633
|
args: [{
|
|
7634
7634
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7670,11 +7670,11 @@ class ReactiveFormsModule {
|
|
|
7670
7670
|
],
|
|
7671
7671
|
};
|
|
7672
7672
|
}
|
|
7673
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7674
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
7675
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7673
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7674
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
7675
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7676
7676
|
}
|
|
7677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
7677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7678
7678
|
type: NgModule,
|
|
7679
7679
|
args: [{
|
|
7680
7680
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|
|
@@ -7682,29 +7682,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
|
|
|
7682
7682
|
}]
|
|
7683
7683
|
}] });
|
|
7684
7684
|
|
|
7685
|
-
/**
|
|
7686
|
-
* @module
|
|
7687
|
-
* @description
|
|
7688
|
-
* This module is used for handling user input, by defining and building a `FormGroup` that
|
|
7689
|
-
* consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`
|
|
7690
|
-
* objects can then be used to read information from the form DOM elements.
|
|
7691
|
-
*
|
|
7692
|
-
* Forms providers are not included in default providers; you must import these providers
|
|
7693
|
-
* explicitly.
|
|
7694
|
-
*/
|
|
7695
|
-
|
|
7696
|
-
/**
|
|
7697
|
-
* @module
|
|
7698
|
-
* @description
|
|
7699
|
-
* Entry point for all public APIs of this package.
|
|
7700
|
-
*/
|
|
7701
|
-
// This file only reexports content of the `src` folder. Keep it that way.
|
|
7702
|
-
|
|
7703
|
-
// This file is not used to build this module. It is only used during editing
|
|
7704
|
-
|
|
7705
|
-
/**
|
|
7706
|
-
* Generated bundle index. Do not edit.
|
|
7707
|
-
*/
|
|
7708
|
-
|
|
7709
7685
|
export { AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, ControlEvent, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormRecord, FormResetEvent, FormSubmittedEvent, FormsModule, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NonNullableFormBuilder, NumberValueAccessor, PatternValidator, PristineChangeEvent, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, StatusChangeEvent, TouchedChangeEvent, UntypedFormArray, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, VERSION, Validators, ValueChangeEvent, isFormArray, isFormControl, isFormGroup, isFormRecord, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption };
|
|
7710
7686
|
//# sourceMappingURL=forms.mjs.map
|