@angular/forms 19.2.1 → 19.2.3
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 +146 -175
- 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 v19.2.
|
|
2
|
+
* @license Angular v19.2.3
|
|
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: "19.2.
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: BaseControlValueAccessor, isStandalone: true, ngImport: i0 });
|
|
69
69
|
}
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
71
71
|
type: Directive
|
|
72
72
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });
|
|
73
73
|
/**
|
|
@@ -80,10 +80,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
80
80
|
* applications code.
|
|
81
81
|
*/
|
|
82
82
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
83
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
84
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
84
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: BuiltInControlValueAccessor, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
85
85
|
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", 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: "19.2.
|
|
135
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
135
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: CheckboxControlValueAccessor, isStandalone: false, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
136
136
|
}
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", 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: "19.2.
|
|
236
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
236
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: DefaultValueAccessor, isStandalone: false, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", 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: "19.2.
|
|
1376
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1376
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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: "19.2.
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", 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: "19.2.
|
|
1405
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
1404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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: "19.2.3", 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: "19.2.
|
|
1407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", 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
|
}
|
|
@@ -3381,11 +3381,11 @@ function _describeControlLocation(dir) {
|
|
|
3381
3381
|
}
|
|
3382
3382
|
function _throwMissingValueAccessorError(dir) {
|
|
3383
3383
|
const loc = _describeControlLocation(dir);
|
|
3384
|
-
throw new
|
|
3384
|
+
throw new _RuntimeError(-1203 /* RuntimeErrorCode.NG_MISSING_VALUE_ACCESSOR */, `No value accessor for form control ${loc}.`);
|
|
3385
3385
|
}
|
|
3386
3386
|
function _throwInvalidValueAccessorError(dir) {
|
|
3387
3387
|
const loc = _describeControlLocation(dir);
|
|
3388
|
-
throw new
|
|
3388
|
+
throw new _RuntimeError(1200 /* RuntimeErrorCode.NG_VALUE_ACCESSOR_NOT_PROVIDED */, `Value accessor was not provided as an array for form control with ${loc}. ` +
|
|
3389
3389
|
`Check that the \`NG_VALUE_ACCESSOR\` token is configured as a \`multi: true\` provider.`);
|
|
3390
3390
|
}
|
|
3391
3391
|
function isPropertyUpdated(changes, viewModel) {
|
|
@@ -3744,10 +3744,10 @@ class NgForm extends ControlContainer {
|
|
|
3744
3744
|
path.pop();
|
|
3745
3745
|
return path.length ? this.form.get(path) : this.form;
|
|
3746
3746
|
}
|
|
3747
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3748
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
3747
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgForm, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3748
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: NgForm, isStandalone: false, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: { options: ["ngFormOptions", "options"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider$1], exportAs: ["ngForm"], usesInheritance: true, ngImport: i0 });
|
|
3749
3749
|
}
|
|
3750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgForm, decorators: [{
|
|
3751
3751
|
type: Directive,
|
|
3752
3752
|
args: [{
|
|
3753
3753
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3957,10 +3957,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3957
3957
|
}
|
|
3958
3958
|
/** @internal */
|
|
3959
3959
|
_checkParentType() { }
|
|
3960
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
3961
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
3960
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3961
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: AbstractFormGroupDirective, isStandalone: false, usesInheritance: true, ngImport: i0 });
|
|
3962
3962
|
}
|
|
3963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
3963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3964
3964
|
type: Directive,
|
|
3965
3965
|
args: [{
|
|
3966
3966
|
standalone: false,
|
|
@@ -3968,7 +3968,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
3968
3968
|
}] });
|
|
3969
3969
|
|
|
3970
3970
|
function modelParentException() {
|
|
3971
|
-
return new
|
|
3971
|
+
return new _RuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `
|
|
3972
3972
|
ngModel cannot be used to register form controls with a parent formGroup directive. Try using
|
|
3973
3973
|
formGroup's partner directive "formControlName" instead. Example:
|
|
3974
3974
|
|
|
@@ -3981,7 +3981,7 @@ function modelParentException() {
|
|
|
3981
3981
|
${ngModelWithFormGroupExample}`);
|
|
3982
3982
|
}
|
|
3983
3983
|
function formGroupNameException() {
|
|
3984
|
-
return new
|
|
3984
|
+
return new _RuntimeError(1351 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP_NAME */, `
|
|
3985
3985
|
ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
|
|
3986
3986
|
|
|
3987
3987
|
Option 1: Use formControlName instead of ngModel (reactive strategy):
|
|
@@ -3993,14 +3993,14 @@ function formGroupNameException() {
|
|
|
3993
3993
|
${ngModelGroupExample}`);
|
|
3994
3994
|
}
|
|
3995
3995
|
function missingNameException() {
|
|
3996
|
-
return new
|
|
3996
|
+
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
3997
|
control must be defined as 'standalone' in ngModelOptions.
|
|
3998
3998
|
|
|
3999
3999
|
Example 1: <input [(ngModel)]="person.firstName" name="first">
|
|
4000
4000
|
Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">`);
|
|
4001
4001
|
}
|
|
4002
4002
|
function modelGroupParentException() {
|
|
4003
|
-
return new
|
|
4003
|
+
return new _RuntimeError(1353 /* RuntimeErrorCode.NGMODELGROUP_IN_FORM_GROUP */, `
|
|
4004
4004
|
ngModelGroup cannot be used with a parent formGroup directive.
|
|
4005
4005
|
|
|
4006
4006
|
Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
|
|
@@ -4063,10 +4063,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
4063
4063
|
throw modelGroupParentException();
|
|
4064
4064
|
}
|
|
4065
4065
|
}
|
|
4066
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4067
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4066
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
4067
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: NgModelGroup, isStandalone: false, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
4068
4068
|
}
|
|
4069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
4070
4070
|
type: Directive,
|
|
4071
4071
|
args: [{
|
|
4072
4072
|
selector: '[ngModelGroup]',
|
|
@@ -4380,10 +4380,10 @@ class NgModel extends NgControl {
|
|
|
4380
4380
|
_getPath(controlName) {
|
|
4381
4381
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4382
4382
|
}
|
|
4383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4383
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
4384
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
4385
|
}
|
|
4386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgModel, decorators: [{
|
|
4387
4387
|
type: Directive,
|
|
4388
4388
|
args: [{
|
|
4389
4389
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4468,10 +4468,10 @@ function checkParentType$1(parent) {
|
|
|
4468
4468
|
* @ngModule FormsModule
|
|
4469
4469
|
*/
|
|
4470
4470
|
class ɵNgNoValidate {
|
|
4471
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4472
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4471
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4472
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: ɵNgNoValidate, isStandalone: false, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4473
4473
|
}
|
|
4474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4475
4475
|
type: Directive,
|
|
4476
4476
|
args: [{
|
|
4477
4477
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4528,10 +4528,10 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4528
4528
|
fn(value == '' ? null : parseFloat(value));
|
|
4529
4529
|
};
|
|
4530
4530
|
}
|
|
4531
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4532
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4532
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
4533
|
}
|
|
4534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4535
4535
|
type: Directive,
|
|
4536
4536
|
args: [{
|
|
4537
4537
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4547,7 +4547,7 @@ const RADIO_VALUE_ACCESSOR = {
|
|
|
4547
4547
|
multi: true,
|
|
4548
4548
|
};
|
|
4549
4549
|
function throwNameError() {
|
|
4550
|
-
throw new
|
|
4550
|
+
throw new _RuntimeError(1202 /* RuntimeErrorCode.NAME_AND_FORM_CONTROL_NAME_MUST_MATCH */, `
|
|
4551
4551
|
If you define both a name and a formControlName attribute on your radio button, their values
|
|
4552
4552
|
must match. Ex: <input type="radio" formControlName="food" name="food">
|
|
4553
4553
|
`);
|
|
@@ -4593,10 +4593,10 @@ class RadioControlRegistry {
|
|
|
4593
4593
|
return false;
|
|
4594
4594
|
return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);
|
|
4595
4595
|
}
|
|
4596
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4597
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
4596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4597
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' });
|
|
4598
4598
|
}
|
|
4599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4600
4600
|
type: Injectable,
|
|
4601
4601
|
args: [{ providedIn: 'root' }]
|
|
4602
4602
|
}] });
|
|
@@ -4739,10 +4739,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4739
4739
|
if (!this.name && this.formControlName)
|
|
4740
4740
|
this.name = this.formControlName;
|
|
4741
4741
|
}
|
|
4742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4743
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4742
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4743
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
4744
|
}
|
|
4745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4746
4746
|
type: Directive,
|
|
4747
4747
|
args: [{
|
|
4748
4748
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4804,10 +4804,10 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4804
4804
|
fn(value == '' ? null : parseFloat(value));
|
|
4805
4805
|
};
|
|
4806
4806
|
}
|
|
4807
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4808
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4807
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4808
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
4809
|
}
|
|
4810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4811
4811
|
type: Directive,
|
|
4812
4812
|
args: [{
|
|
4813
4813
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4954,10 +4954,10 @@ class FormControlDirective extends NgControl {
|
|
|
4954
4954
|
_isControlChanged(changes) {
|
|
4955
4955
|
return changes.hasOwnProperty('form');
|
|
4956
4956
|
}
|
|
4957
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
4958
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
4957
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
4958
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
4959
|
}
|
|
4960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
4960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4961
4961
|
type: Directive,
|
|
4962
4962
|
args: [{
|
|
4963
4963
|
selector: '[formControl]',
|
|
@@ -5319,10 +5319,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5319
5319
|
cleanUpValidators(this._oldForm, this);
|
|
5320
5320
|
}
|
|
5321
5321
|
}
|
|
5322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5323
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5322
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
5323
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
5324
|
}
|
|
5325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5326
5326
|
type: Directive,
|
|
5327
5327
|
args: [{
|
|
5328
5328
|
selector: '[formGroup]',
|
|
@@ -5431,10 +5431,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5431
5431
|
throw groupParentException();
|
|
5432
5432
|
}
|
|
5433
5433
|
}
|
|
5434
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5435
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5434
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
5435
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: FormGroupName, isStandalone: false, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5436
5436
|
}
|
|
5437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5438
5438
|
type: Directive,
|
|
5439
5439
|
args: [{
|
|
5440
5440
|
selector: '[formGroupName]',
|
|
@@ -5552,10 +5552,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5552
5552
|
get path() {
|
|
5553
5553
|
return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
|
|
5554
5554
|
}
|
|
5555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5556
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
5556
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: FormArrayName, isStandalone: false, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5557
5557
|
}
|
|
5558
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5559
5559
|
type: Directive,
|
|
5560
5560
|
args: [{
|
|
5561
5561
|
selector: '[formArrayName]',
|
|
@@ -5740,10 +5740,10 @@ class FormControlName extends NgControl {
|
|
|
5740
5740
|
this.control = this.formDirective.addControl(this);
|
|
5741
5741
|
this._added = true;
|
|
5742
5742
|
}
|
|
5743
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5744
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5743
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", 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 });
|
|
5744
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
5745
|
}
|
|
5746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormControlName, decorators: [{
|
|
5747
5747
|
type: Directive,
|
|
5748
5748
|
args: [{
|
|
5749
5749
|
selector: '[formControlName]',
|
|
@@ -5891,7 +5891,7 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5891
5891
|
*/
|
|
5892
5892
|
set compareWith(fn) {
|
|
5893
5893
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
5894
|
-
throw new
|
|
5894
|
+
throw new _RuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
5895
5895
|
}
|
|
5896
5896
|
this._compareWith = fn;
|
|
5897
5897
|
}
|
|
@@ -5933,10 +5933,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5933
5933
|
const id = _extractId$1(valueString);
|
|
5934
5934
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5935
5935
|
}
|
|
5936
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
5937
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
5936
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5937
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
5938
|
}
|
|
5939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
5939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5940
5940
|
type: Directive,
|
|
5941
5941
|
args: [{
|
|
5942
5942
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -6007,10 +6007,10 @@ class NgSelectOption {
|
|
|
6007
6007
|
this._select.writeValue(this._select.value);
|
|
6008
6008
|
}
|
|
6009
6009
|
}
|
|
6010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6011
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6010
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6011
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: NgSelectOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6012
6012
|
}
|
|
6013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
6014
6014
|
type: Directive,
|
|
6015
6015
|
args: [{
|
|
6016
6016
|
selector: 'option',
|
|
@@ -6045,11 +6045,6 @@ function _buildValueString(id, value) {
|
|
|
6045
6045
|
function _extractId(valueString) {
|
|
6046
6046
|
return valueString.split(':')[0];
|
|
6047
6047
|
}
|
|
6048
|
-
/** Mock interface for HTMLCollection */
|
|
6049
|
-
class HTMLCollection {
|
|
6050
|
-
// TODO(issue/24571): remove '!'.
|
|
6051
|
-
length;
|
|
6052
|
-
}
|
|
6053
6048
|
/**
|
|
6054
6049
|
* @description
|
|
6055
6050
|
* The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
|
|
@@ -6102,7 +6097,7 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6102
6097
|
*/
|
|
6103
6098
|
set compareWith(fn) {
|
|
6104
6099
|
if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
6105
|
-
throw new
|
|
6100
|
+
throw new _RuntimeError(1201 /* RuntimeErrorCode.COMPAREWITH_NOT_A_FN */, `compareWith must be a function, but received ${JSON.stringify(fn)}`);
|
|
6106
6101
|
}
|
|
6107
6102
|
this._compareWith = fn;
|
|
6108
6103
|
}
|
|
@@ -6181,10 +6176,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
6181
6176
|
const id = _extractId(valueString);
|
|
6182
6177
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
6183
6178
|
}
|
|
6184
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6185
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6181
|
}
|
|
6187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
6188
6183
|
type: Directive,
|
|
6189
6184
|
args: [{
|
|
6190
6185
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -6263,10 +6258,10 @@ class ɵNgSelectMultipleOption {
|
|
|
6263
6258
|
this._select.writeValue(this._select.value);
|
|
6264
6259
|
}
|
|
6265
6260
|
}
|
|
6266
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6267
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6261
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6262
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: ɵNgSelectMultipleOption, isStandalone: false, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
6268
6263
|
}
|
|
6269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
6270
6265
|
type: Directive,
|
|
6271
6266
|
args: [{
|
|
6272
6267
|
selector: 'option',
|
|
@@ -6348,10 +6343,10 @@ class AbstractValidatorDirective {
|
|
|
6348
6343
|
enabled(input) {
|
|
6349
6344
|
return input != null /* both `null` and `undefined` */;
|
|
6350
6345
|
}
|
|
6351
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6352
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6346
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6347
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: AbstractValidatorDirective, isStandalone: true, usesOnChanges: true, ngImport: i0 });
|
|
6353
6348
|
}
|
|
6354
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6355
6350
|
type: Directive
|
|
6356
6351
|
}] });
|
|
6357
6352
|
/**
|
|
@@ -6396,10 +6391,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6396
6391
|
normalizeInput = (input) => toFloat(input);
|
|
6397
6392
|
/** @internal */
|
|
6398
6393
|
createValidator = (max) => maxValidator(max);
|
|
6399
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6400
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6394
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6395
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6396
|
}
|
|
6402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6403
6398
|
type: Directive,
|
|
6404
6399
|
args: [{
|
|
6405
6400
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6452,10 +6447,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6452
6447
|
normalizeInput = (input) => toFloat(input);
|
|
6453
6448
|
/** @internal */
|
|
6454
6449
|
createValidator = (min) => minValidator(min);
|
|
6455
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6456
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6451
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6452
|
}
|
|
6458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MinValidator, decorators: [{
|
|
6459
6454
|
type: Directive,
|
|
6460
6455
|
args: [{
|
|
6461
6456
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6519,10 +6514,10 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6519
6514
|
enabled(input) {
|
|
6520
6515
|
return input;
|
|
6521
6516
|
}
|
|
6522
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6523
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6518
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6519
|
}
|
|
6525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6526
6521
|
type: Directive,
|
|
6527
6522
|
args: [{
|
|
6528
6523
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6557,10 +6552,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
6557
6552
|
class CheckboxRequiredValidator extends RequiredValidator {
|
|
6558
6553
|
/** @internal */
|
|
6559
6554
|
createValidator = (input) => requiredTrueValidator;
|
|
6560
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6561
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6556
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6557
|
}
|
|
6563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6564
6559
|
type: Directive,
|
|
6565
6560
|
args: [{
|
|
6566
6561
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6621,10 +6616,10 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6621
6616
|
enabled(input) {
|
|
6622
6617
|
return input;
|
|
6623
6618
|
}
|
|
6624
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6625
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6619
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6620
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", type: EmailValidator, isStandalone: false, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6626
6621
|
}
|
|
6627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6628
6623
|
type: Directive,
|
|
6629
6624
|
args: [{
|
|
6630
6625
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6676,10 +6671,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6676
6671
|
normalizeInput = (input) => toInteger(input);
|
|
6677
6672
|
/** @internal */
|
|
6678
6673
|
createValidator = (minlength) => minLengthValidator(minlength);
|
|
6679
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6680
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6674
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6675
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6676
|
}
|
|
6682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6683
6678
|
type: Directive,
|
|
6684
6679
|
args: [{
|
|
6685
6680
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6732,10 +6727,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6732
6727
|
normalizeInput = (input) => toInteger(input);
|
|
6733
6728
|
/** @internal */
|
|
6734
6729
|
createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6735
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6736
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6730
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6731
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6732
|
}
|
|
6738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6739
6734
|
type: Directive,
|
|
6740
6735
|
args: [{
|
|
6741
6736
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6790,10 +6785,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6790
6785
|
normalizeInput = (input) => input;
|
|
6791
6786
|
/** @internal */
|
|
6792
6787
|
createValidator = (input) => patternValidator(input);
|
|
6793
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6794
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.
|
|
6788
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6789
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.3", 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
6790
|
}
|
|
6796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6797
6792
|
type: Directive,
|
|
6798
6793
|
args: [{
|
|
6799
6794
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6839,8 +6834,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [
|
|
|
6839
6834
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6840
6835
|
*/
|
|
6841
6836
|
class ɵInternalFormsSharedModule {
|
|
6842
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
6843
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
6837
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6838
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.3", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6844
6839
|
NgSelectOption,
|
|
6845
6840
|
ɵNgSelectMultipleOption,
|
|
6846
6841
|
DefaultValueAccessor,
|
|
@@ -6879,9 +6874,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6879
6874
|
EmailValidator,
|
|
6880
6875
|
MinValidator,
|
|
6881
6876
|
MaxValidator] });
|
|
6882
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
6877
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵInternalFormsSharedModule });
|
|
6883
6878
|
}
|
|
6884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
6879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6885
6880
|
type: NgModule,
|
|
6886
6881
|
args: [{
|
|
6887
6882
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7533,10 +7528,10 @@ class FormBuilder {
|
|
|
7533
7528
|
return this.control(controls);
|
|
7534
7529
|
}
|
|
7535
7530
|
}
|
|
7536
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7537
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7532
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormBuilder, providedIn: 'root' });
|
|
7538
7533
|
}
|
|
7539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7540
7535
|
type: Injectable,
|
|
7541
7536
|
args: [{ providedIn: 'root' }]
|
|
7542
7537
|
}] });
|
|
@@ -7548,10 +7543,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
7548
7543
|
* @publicApi
|
|
7549
7544
|
*/
|
|
7550
7545
|
class NonNullableFormBuilder {
|
|
7551
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7552
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7547
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });
|
|
7553
7548
|
}
|
|
7554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7555
7550
|
type: Injectable,
|
|
7556
7551
|
args: [{
|
|
7557
7552
|
providedIn: 'root',
|
|
@@ -7577,10 +7572,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7577
7572
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7578
7573
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7579
7574
|
}
|
|
7580
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7581
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
7575
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7576
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });
|
|
7582
7577
|
}
|
|
7583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7584
7579
|
type: Injectable,
|
|
7585
7580
|
args: [{ providedIn: 'root' }]
|
|
7586
7581
|
}] });
|
|
@@ -7593,7 +7588,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
7593
7588
|
/**
|
|
7594
7589
|
* @publicApi
|
|
7595
7590
|
*/
|
|
7596
|
-
const VERSION = new Version('19.2.
|
|
7591
|
+
const VERSION = new Version('19.2.3');
|
|
7597
7592
|
|
|
7598
7593
|
/**
|
|
7599
7594
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7624,11 +7619,11 @@ class FormsModule {
|
|
|
7624
7619
|
],
|
|
7625
7620
|
};
|
|
7626
7621
|
}
|
|
7627
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7628
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
7629
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
7622
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7623
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.3", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
7624
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7630
7625
|
}
|
|
7631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: FormsModule, decorators: [{
|
|
7632
7627
|
type: NgModule,
|
|
7633
7628
|
args: [{
|
|
7634
7629
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7670,11 +7665,11 @@ class ReactiveFormsModule {
|
|
|
7670
7665
|
],
|
|
7671
7666
|
};
|
|
7672
7667
|
}
|
|
7673
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
7674
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
7675
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
7668
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7669
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.3", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
7670
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7676
7671
|
}
|
|
7677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
7672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7678
7673
|
type: NgModule,
|
|
7679
7674
|
args: [{
|
|
7680
7675
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|
|
@@ -7682,29 +7677,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
|
|
|
7682
7677
|
}]
|
|
7683
7678
|
}] });
|
|
7684
7679
|
|
|
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
7680
|
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
7681
|
//# sourceMappingURL=forms.mjs.map
|