@angular/forms 15.1.0-next.2 → 15.1.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2020/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2020/src/directives/control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/default_value_accessor.mjs +3 -3
- package/esm2020/src/directives/ng_control_status.mjs +6 -6
- package/esm2020/src/directives/ng_form.mjs +3 -3
- package/esm2020/src/directives/ng_model.mjs +3 -3
- package/esm2020/src/directives/ng_model_group.mjs +3 -3
- package/esm2020/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2020/src/directives/number_value_accessor.mjs +3 -3
- package/esm2020/src/directives/radio_control_value_accessor.mjs +10 -10
- package/esm2020/src/directives/range_value_accessor.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_control_name.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_directive.mjs +3 -3
- package/esm2020/src/directives/reactive_directives/form_group_name.mjs +6 -6
- package/esm2020/src/directives/select_control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/select_multiple_control_value_accessor.mjs +6 -6
- package/esm2020/src/directives/validators.mjs +27 -27
- package/esm2020/src/directives.mjs +4 -4
- package/esm2020/src/form_builder.mjs +9 -9
- package/esm2020/src/form_providers.mjs +8 -8
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/forms.mjs +140 -392
- package/fesm2015/forms.mjs.map +1 -1
- package/fesm2020/forms.mjs +140 -392
- package/fesm2020/forms.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +4 -4
package/fesm2020/forms.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-
|
|
2
|
+
* @license Angular v15.1.0-rc.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,13 +10,6 @@ import { ɵgetDOM } from '@angular/common';
|
|
|
10
10
|
import { from, forkJoin } from 'rxjs';
|
|
11
11
|
import { map } from 'rxjs/operators';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* @license
|
|
15
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16
|
-
*
|
|
17
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
-
* found in the LICENSE file at https://angular.io/license
|
|
19
|
-
*/
|
|
20
13
|
/**
|
|
21
14
|
* Base class for all ControlValueAccessor classes defined in Forms package.
|
|
22
15
|
* Contains common logic and utility functions.
|
|
@@ -70,9 +63,9 @@ class BaseControlValueAccessor {
|
|
|
70
63
|
this.setProperty('disabled', isDisabled);
|
|
71
64
|
}
|
|
72
65
|
}
|
|
73
|
-
BaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
74
|
-
BaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
66
|
+
BaseControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
67
|
+
BaseControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: BaseControlValueAccessor, ngImport: i0 });
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
76
69
|
type: Directive
|
|
77
70
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
78
71
|
/**
|
|
@@ -86,9 +79,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
86
79
|
*/
|
|
87
80
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
88
81
|
}
|
|
89
|
-
BuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
90
|
-
BuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
82
|
+
BuiltInControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
83
|
+
BuiltInControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 });
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
92
85
|
type: Directive
|
|
93
86
|
}] });
|
|
94
87
|
/**
|
|
@@ -100,13 +93,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
100
93
|
*/
|
|
101
94
|
const NG_VALUE_ACCESSOR = new InjectionToken('NgValueAccessor');
|
|
102
95
|
|
|
103
|
-
/**
|
|
104
|
-
* @license
|
|
105
|
-
* Copyright Google LLC All Rights Reserved.
|
|
106
|
-
*
|
|
107
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
108
|
-
* found in the LICENSE file at https://angular.io/license
|
|
109
|
-
*/
|
|
110
96
|
const CHECKBOX_VALUE_ACCESSOR = {
|
|
111
97
|
provide: NG_VALUE_ACCESSOR,
|
|
112
98
|
useExisting: forwardRef(() => CheckboxControlValueAccessor),
|
|
@@ -144,9 +130,9 @@ class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
144
130
|
this.setProperty('checked', value);
|
|
145
131
|
}
|
|
146
132
|
}
|
|
147
|
-
CheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
148
|
-
CheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
133
|
+
CheckboxControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
134
|
+
CheckboxControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]", host: { listeners: { "change": "onChange($event.target.checked)", "blur": "onTouched()" } }, providers: [CHECKBOX_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
150
136
|
type: Directive,
|
|
151
137
|
args: [{
|
|
152
138
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -155,13 +141,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
155
141
|
}]
|
|
156
142
|
}] });
|
|
157
143
|
|
|
158
|
-
/**
|
|
159
|
-
* @license
|
|
160
|
-
* Copyright Google LLC All Rights Reserved.
|
|
161
|
-
*
|
|
162
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
163
|
-
* found in the LICENSE file at https://angular.io/license
|
|
164
|
-
*/
|
|
165
144
|
const DEFAULT_VALUE_ACCESSOR = {
|
|
166
145
|
provide: NG_VALUE_ACCESSOR,
|
|
167
146
|
useExisting: forwardRef(() => DefaultValueAccessor),
|
|
@@ -251,9 +230,9 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
251
230
|
this._compositionMode && this.onChange(value);
|
|
252
231
|
}
|
|
253
232
|
}
|
|
254
|
-
DefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
255
|
-
DefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
233
|
+
DefaultValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
234
|
+
DefaultValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]", host: { listeners: { "input": "$any(this)._handleInput($event.target.value)", "blur": "onTouched()", "compositionstart": "$any(this)._compositionStart()", "compositionend": "$any(this)._compositionEnd($event.target.value)" } }, providers: [DEFAULT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
257
236
|
type: Directive,
|
|
258
237
|
args: [{
|
|
259
238
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -275,13 +254,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
275
254
|
args: [COMPOSITION_BUFFER_MODE]
|
|
276
255
|
}] }]; } });
|
|
277
256
|
|
|
278
|
-
/**
|
|
279
|
-
* @license
|
|
280
|
-
* Copyright Google LLC All Rights Reserved.
|
|
281
|
-
*
|
|
282
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
283
|
-
* found in the LICENSE file at https://angular.io/license
|
|
284
|
-
*/
|
|
285
257
|
const NG_DEV_MODE$1 = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
286
258
|
function isEmptyInputValue(value) {
|
|
287
259
|
/**
|
|
@@ -953,13 +925,6 @@ function removeValidators(validators, currentValidators) {
|
|
|
953
925
|
return makeValidatorsArray(currentValidators).filter(v => !hasValidator(validators, v));
|
|
954
926
|
}
|
|
955
927
|
|
|
956
|
-
/**
|
|
957
|
-
* @license
|
|
958
|
-
* Copyright Google LLC All Rights Reserved.
|
|
959
|
-
*
|
|
960
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
961
|
-
* found in the LICENSE file at https://angular.io/license
|
|
962
|
-
*/
|
|
963
928
|
/**
|
|
964
929
|
* @description
|
|
965
930
|
* Base class for control directives.
|
|
@@ -1231,13 +1196,6 @@ class AbstractControlDirective {
|
|
|
1231
1196
|
}
|
|
1232
1197
|
}
|
|
1233
1198
|
|
|
1234
|
-
/**
|
|
1235
|
-
* @license
|
|
1236
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1237
|
-
*
|
|
1238
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1239
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1240
|
-
*/
|
|
1241
1199
|
/**
|
|
1242
1200
|
* @description
|
|
1243
1201
|
* A base class for directives that contain multiple registered instances of `NgControl`.
|
|
@@ -1262,13 +1220,6 @@ class ControlContainer extends AbstractControlDirective {
|
|
|
1262
1220
|
}
|
|
1263
1221
|
}
|
|
1264
1222
|
|
|
1265
|
-
/**
|
|
1266
|
-
* @license
|
|
1267
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1268
|
-
*
|
|
1269
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1270
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1271
|
-
*/
|
|
1272
1223
|
/**
|
|
1273
1224
|
* @description
|
|
1274
1225
|
* A base class that all `FormControl`-based directives extend. It binds a `FormControl`
|
|
@@ -1299,13 +1250,6 @@ class NgControl extends AbstractControlDirective {
|
|
|
1299
1250
|
}
|
|
1300
1251
|
}
|
|
1301
1252
|
|
|
1302
|
-
/**
|
|
1303
|
-
* @license
|
|
1304
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1305
|
-
*
|
|
1306
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1307
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1308
|
-
*/
|
|
1309
1253
|
// DO NOT REFACTOR!
|
|
1310
1254
|
// Each status is represented by a separate function to make sure that
|
|
1311
1255
|
// advanced Closure Compiler optimizations related to property renaming
|
|
@@ -1382,9 +1326,9 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1382
1326
|
super(cd);
|
|
1383
1327
|
}
|
|
1384
1328
|
}
|
|
1385
|
-
NgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1386
|
-
NgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
1387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1329
|
+
NgControlStatus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1330
|
+
NgControlStatus.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgControlStatus, selector: "[formControlName],[ngModel],[formControl]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending" } }, usesInheritance: true, ngImport: i0 });
|
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1388
1332
|
type: Directive,
|
|
1389
1333
|
args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]
|
|
1390
1334
|
}], ctorParameters: function () { return [{ type: NgControl, decorators: [{
|
|
@@ -1407,9 +1351,9 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1407
1351
|
super(cd);
|
|
1408
1352
|
}
|
|
1409
1353
|
}
|
|
1410
|
-
NgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
1411
|
-
NgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
1412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
1354
|
+
NgControlStatusGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1355
|
+
NgControlStatusGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]", host: { properties: { "class.ng-untouched": "isUntouched", "class.ng-touched": "isTouched", "class.ng-pristine": "isPristine", "class.ng-dirty": "isDirty", "class.ng-valid": "isValid", "class.ng-invalid": "isInvalid", "class.ng-pending": "isPending", "class.ng-submitted": "isSubmitted" } }, usesInheritance: true, ngImport: i0 });
|
|
1356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1413
1357
|
type: Directive,
|
|
1414
1358
|
args: [{
|
|
1415
1359
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -1421,13 +1365,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
1421
1365
|
type: Self
|
|
1422
1366
|
}] }]; } });
|
|
1423
1367
|
|
|
1424
|
-
/**
|
|
1425
|
-
* @license
|
|
1426
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1427
|
-
*
|
|
1428
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1429
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1430
|
-
*/
|
|
1431
1368
|
const formControlNameExample = `
|
|
1432
1369
|
<div [formGroup]="myGroup">
|
|
1433
1370
|
<input formControlName="firstName">
|
|
@@ -1478,13 +1415,6 @@ const ngModelWithFormGroupExample = `
|
|
|
1478
1415
|
</div>
|
|
1479
1416
|
`;
|
|
1480
1417
|
|
|
1481
|
-
/**
|
|
1482
|
-
* @license
|
|
1483
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1484
|
-
*
|
|
1485
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1486
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1487
|
-
*/
|
|
1488
1418
|
function controlParentException() {
|
|
1489
1419
|
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
|
|
1490
1420
|
directive and pass it an existing FormGroup instance (you can create one in your class).
|
|
@@ -1586,13 +1516,6 @@ function missingControlValueError(isFormGroup, key) {
|
|
|
1586
1516
|
return `Must supply a value for form control ${describeKey(isFormGroup, key)}`;
|
|
1587
1517
|
}
|
|
1588
1518
|
|
|
1589
|
-
/**
|
|
1590
|
-
* @license
|
|
1591
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1592
|
-
*
|
|
1593
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1594
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1595
|
-
*/
|
|
1596
1519
|
const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
1597
1520
|
/**
|
|
1598
1521
|
* Reports that a control is valid, meaning that no errors exist in the input value.
|
|
@@ -2522,13 +2445,6 @@ class AbstractControl {
|
|
|
2522
2445
|
}
|
|
2523
2446
|
}
|
|
2524
2447
|
|
|
2525
|
-
/**
|
|
2526
|
-
* @license
|
|
2527
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2528
|
-
*
|
|
2529
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2530
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2531
|
-
*/
|
|
2532
2448
|
/**
|
|
2533
2449
|
* Tracks the value and validity state of a group of `FormControl` instances.
|
|
2534
2450
|
*
|
|
@@ -2993,13 +2909,6 @@ class FormRecord extends FormGroup {
|
|
|
2993
2909
|
*/
|
|
2994
2910
|
const isFormRecord = (control) => control instanceof FormRecord;
|
|
2995
2911
|
|
|
2996
|
-
/**
|
|
2997
|
-
* @license
|
|
2998
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2999
|
-
*
|
|
3000
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3001
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3002
|
-
*/
|
|
3003
2912
|
/**
|
|
3004
2913
|
* Token to provide to allow SetDisabledState to always be called when a CVA is added, regardless of
|
|
3005
2914
|
* whether the control is disabled or enabled.
|
|
@@ -3335,13 +3244,6 @@ function _ngModelWarning(name, type, instance, warningConfig) {
|
|
|
3335
3244
|
}
|
|
3336
3245
|
}
|
|
3337
3246
|
|
|
3338
|
-
/**
|
|
3339
|
-
* @license
|
|
3340
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3341
|
-
*
|
|
3342
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3343
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3344
|
-
*/
|
|
3345
3247
|
const formDirectiveProvider$1 = {
|
|
3346
3248
|
provide: ControlContainer,
|
|
3347
3249
|
useExisting: forwardRef(() => NgForm)
|
|
@@ -3604,9 +3506,9 @@ class NgForm extends ControlContainer {
|
|
|
3604
3506
|
return path.length ? this.form.get(path) : this.form;
|
|
3605
3507
|
}
|
|
3606
3508
|
}
|
|
3607
|
-
NgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3608
|
-
NgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3609
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3509
|
+
NgForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
3510
|
+
NgForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: { options: ["ngFormOptions", "options"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider$1], exportAs: ["ngForm"], usesInheritance: true, ngImport: i0 });
|
|
3511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgForm, decorators: [{
|
|
3610
3512
|
type: Directive,
|
|
3611
3513
|
args: [{
|
|
3612
3514
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3639,26 +3541,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
3639
3541
|
args: ['ngFormOptions']
|
|
3640
3542
|
}] } });
|
|
3641
3543
|
|
|
3642
|
-
/**
|
|
3643
|
-
* @license
|
|
3644
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3645
|
-
*
|
|
3646
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3647
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3648
|
-
*/
|
|
3649
3544
|
function removeListItem(list, el) {
|
|
3650
3545
|
const index = list.indexOf(el);
|
|
3651
3546
|
if (index > -1)
|
|
3652
3547
|
list.splice(index, 1);
|
|
3653
3548
|
}
|
|
3654
3549
|
|
|
3655
|
-
/**
|
|
3656
|
-
* @license
|
|
3657
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3658
|
-
*
|
|
3659
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3660
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3661
|
-
*/
|
|
3662
3550
|
function isFormControlState(formState) {
|
|
3663
3551
|
return typeof formState === 'object' && formState !== null &&
|
|
3664
3552
|
Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;
|
|
@@ -3772,13 +3660,6 @@ const UntypedFormControl = FormControl;
|
|
|
3772
3660
|
*/
|
|
3773
3661
|
const isFormControl = (control) => control instanceof FormControl;
|
|
3774
3662
|
|
|
3775
|
-
/**
|
|
3776
|
-
* @license
|
|
3777
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3778
|
-
*
|
|
3779
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3780
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3781
|
-
*/
|
|
3782
3663
|
/**
|
|
3783
3664
|
* @description
|
|
3784
3665
|
* A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.
|
|
@@ -3823,19 +3704,12 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3823
3704
|
/** @internal */
|
|
3824
3705
|
_checkParentType() { }
|
|
3825
3706
|
}
|
|
3826
|
-
AbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3827
|
-
AbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3707
|
+
AbstractFormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3708
|
+
AbstractFormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 });
|
|
3709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3829
3710
|
type: Directive
|
|
3830
3711
|
}] });
|
|
3831
3712
|
|
|
3832
|
-
/**
|
|
3833
|
-
* @license
|
|
3834
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3835
|
-
*
|
|
3836
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3837
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3838
|
-
*/
|
|
3839
3713
|
function modelParentException() {
|
|
3840
3714
|
return new ɵRuntimeError(1350 /* RuntimeErrorCode.NGMODEL_IN_FORM_GROUP */, `
|
|
3841
3715
|
ngModel cannot be used to register form controls with a parent formGroup directive. Try using
|
|
@@ -3881,13 +3755,6 @@ function modelGroupParentException() {
|
|
|
3881
3755
|
${ngModelGroupExample}`);
|
|
3882
3756
|
}
|
|
3883
3757
|
|
|
3884
|
-
/**
|
|
3885
|
-
* @license
|
|
3886
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3887
|
-
*
|
|
3888
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3889
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3890
|
-
*/
|
|
3891
3758
|
const modelGroupProvider = {
|
|
3892
3759
|
provide: ControlContainer,
|
|
3893
3760
|
useExisting: forwardRef(() => NgModelGroup)
|
|
@@ -3933,9 +3800,9 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
3933
3800
|
}
|
|
3934
3801
|
}
|
|
3935
3802
|
}
|
|
3936
|
-
NgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
3937
|
-
NgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
3938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
3803
|
+
NgModelGroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgModelGroup, deps: [{ token: ControlContainer, host: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3804
|
+
NgModelGroup.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgModelGroup, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 });
|
|
3805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
3939
3806
|
type: Directive,
|
|
3940
3807
|
args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]
|
|
3941
3808
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -3961,13 +3828,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
3961
3828
|
args: ['ngModelGroup']
|
|
3962
3829
|
}] } });
|
|
3963
3830
|
|
|
3964
|
-
/**
|
|
3965
|
-
* @license
|
|
3966
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3967
|
-
*
|
|
3968
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3969
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3970
|
-
*/
|
|
3971
3831
|
const formControlBinding$1 = {
|
|
3972
3832
|
provide: NgControl,
|
|
3973
3833
|
useExisting: forwardRef(() => NgModel)
|
|
@@ -4213,9 +4073,9 @@ class NgModel extends NgControl {
|
|
|
4213
4073
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4214
4074
|
}
|
|
4215
4075
|
}
|
|
4216
|
-
NgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4217
|
-
NgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4076
|
+
NgModel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgModel, deps: [{ token: ControlContainer, host: true, optional: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: ChangeDetectorRef, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4077
|
+
NgModel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: { name: "name", isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"], options: ["ngModelOptions", "options"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding$1], exportAs: ["ngModel"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgModel, decorators: [{
|
|
4219
4079
|
type: Directive,
|
|
4220
4080
|
args: [{
|
|
4221
4081
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4273,13 +4133,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4273
4133
|
args: ['ngModelChange']
|
|
4274
4134
|
}] } });
|
|
4275
4135
|
|
|
4276
|
-
/**
|
|
4277
|
-
* @license
|
|
4278
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4279
|
-
*
|
|
4280
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4281
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4282
|
-
*/
|
|
4283
4136
|
/**
|
|
4284
4137
|
* @description
|
|
4285
4138
|
*
|
|
@@ -4299,9 +4152,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4299
4152
|
*/
|
|
4300
4153
|
class ɵNgNoValidate {
|
|
4301
4154
|
}
|
|
4302
|
-
ɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4303
|
-
ɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4155
|
+
ɵNgNoValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4156
|
+
ɵNgNoValidate.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 });
|
|
4157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4305
4158
|
type: Directive,
|
|
4306
4159
|
args: [{
|
|
4307
4160
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4309,13 +4162,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4309
4162
|
}]
|
|
4310
4163
|
}] });
|
|
4311
4164
|
|
|
4312
|
-
/**
|
|
4313
|
-
* @license
|
|
4314
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4315
|
-
*
|
|
4316
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4317
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4318
|
-
*/
|
|
4319
4165
|
const NUMBER_VALUE_ACCESSOR = {
|
|
4320
4166
|
provide: NG_VALUE_ACCESSOR,
|
|
4321
4167
|
useExisting: forwardRef(() => NumberValueAccessor),
|
|
@@ -4365,9 +4211,9 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4365
4211
|
};
|
|
4366
4212
|
}
|
|
4367
4213
|
}
|
|
4368
|
-
NumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4369
|
-
NumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4214
|
+
NumberValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4215
|
+
NumberValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]", host: { listeners: { "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [NUMBER_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4371
4217
|
type: Directive,
|
|
4372
4218
|
args: [{
|
|
4373
4219
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4376,13 +4222,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4376
4222
|
}]
|
|
4377
4223
|
}] });
|
|
4378
4224
|
|
|
4379
|
-
/**
|
|
4380
|
-
* @license
|
|
4381
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4382
|
-
*
|
|
4383
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4384
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4385
|
-
*/
|
|
4386
4225
|
const RADIO_VALUE_ACCESSOR = {
|
|
4387
4226
|
provide: NG_VALUE_ACCESSOR,
|
|
4388
4227
|
useExisting: forwardRef(() => RadioControlValueAccessor),
|
|
@@ -4402,10 +4241,10 @@ function throwNameError() {
|
|
|
4402
4241
|
*/
|
|
4403
4242
|
class RadioControlRegistryModule {
|
|
4404
4243
|
}
|
|
4405
|
-
RadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4406
|
-
RadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
4407
|
-
RadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
4408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4244
|
+
RadioControlRegistryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4245
|
+
RadioControlRegistryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule });
|
|
4246
|
+
RadioControlRegistryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule });
|
|
4247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistryModule, decorators: [{
|
|
4409
4248
|
type: NgModule
|
|
4410
4249
|
}] });
|
|
4411
4250
|
/**
|
|
@@ -4453,9 +4292,9 @@ class RadioControlRegistry {
|
|
|
4453
4292
|
controlPair[1].name === accessor.name;
|
|
4454
4293
|
}
|
|
4455
4294
|
}
|
|
4456
|
-
RadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4457
|
-
RadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
4458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4295
|
+
RadioControlRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4296
|
+
RadioControlRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, providedIn: RadioControlRegistryModule });
|
|
4297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4459
4298
|
type: Injectable,
|
|
4460
4299
|
args: [{ providedIn: RadioControlRegistryModule }]
|
|
4461
4300
|
}] });
|
|
@@ -4539,9 +4378,9 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4539
4378
|
this.name = this.formControlName;
|
|
4540
4379
|
}
|
|
4541
4380
|
}
|
|
4542
|
-
RadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4543
|
-
RadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4544
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4381
|
+
RadioControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4382
|
+
RadioControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: { name: "name", formControlName: "formControlName", value: "value" }, host: { listeners: { "change": "onChange()", "blur": "onTouched()" } }, providers: [RADIO_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4545
4384
|
type: Directive,
|
|
4546
4385
|
args: [{
|
|
4547
4386
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4556,13 +4395,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4556
4395
|
type: Input
|
|
4557
4396
|
}] } });
|
|
4558
4397
|
|
|
4559
|
-
/**
|
|
4560
|
-
* @license
|
|
4561
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4562
|
-
*
|
|
4563
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4564
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4565
|
-
*/
|
|
4566
4398
|
const RANGE_VALUE_ACCESSOR = {
|
|
4567
4399
|
provide: NG_VALUE_ACCESSOR,
|
|
4568
4400
|
useExisting: forwardRef(() => RangeValueAccessor),
|
|
@@ -4610,9 +4442,9 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4610
4442
|
};
|
|
4611
4443
|
}
|
|
4612
4444
|
}
|
|
4613
|
-
RangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4614
|
-
RangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4445
|
+
RangeValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4446
|
+
RangeValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: RangeValueAccessor, selector: "input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]", host: { listeners: { "change": "onChange($event.target.value)", "input": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [RANGE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4616
4448
|
type: Directive,
|
|
4617
4449
|
args: [{
|
|
4618
4450
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4625,13 +4457,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4625
4457
|
}]
|
|
4626
4458
|
}] });
|
|
4627
4459
|
|
|
4628
|
-
/**
|
|
4629
|
-
* @license
|
|
4630
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4631
|
-
*
|
|
4632
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4633
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4634
|
-
*/
|
|
4635
4460
|
/**
|
|
4636
4461
|
* Token to provide to turn off the ngModel warning on formControl and formControlName.
|
|
4637
4462
|
*/
|
|
@@ -4751,9 +4576,9 @@ class FormControlDirective extends NgControl {
|
|
|
4751
4576
|
* @internal
|
|
4752
4577
|
*/
|
|
4753
4578
|
FormControlDirective._ngModelWarningSentOnce = false;
|
|
4754
|
-
FormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
4755
|
-
FormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
4756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4579
|
+
FormControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormControlDirective, deps: [{ token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }, { token: CALL_SET_DISABLED_STATE, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4580
|
+
FormControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: FormControlDirective, selector: "[formControl]", inputs: { form: ["formControl", "form"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [formControlBinding], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4757
4582
|
type: Directive,
|
|
4758
4583
|
args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]
|
|
4759
4584
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -4801,13 +4626,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
4801
4626
|
args: ['ngModelChange']
|
|
4802
4627
|
}] } });
|
|
4803
4628
|
|
|
4804
|
-
/**
|
|
4805
|
-
* @license
|
|
4806
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4807
|
-
*
|
|
4808
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
4809
|
-
* found in the LICENSE file at https://angular.io/license
|
|
4810
|
-
*/
|
|
4811
4629
|
const formDirectiveProvider = {
|
|
4812
4630
|
provide: ControlContainer,
|
|
4813
4631
|
useExisting: forwardRef(() => FormGroupDirective)
|
|
@@ -5104,9 +4922,9 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5104
4922
|
}
|
|
5105
4923
|
}
|
|
5106
4924
|
}
|
|
5107
|
-
FormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5108
|
-
FormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
4925
|
+
FormGroupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", 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 });
|
|
4926
|
+
FormGroupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: FormGroupDirective, selector: "[formGroup]", inputs: { form: ["formGroup", "form"] }, outputs: { ngSubmit: "ngSubmit" }, host: { listeners: { "submit": "onSubmit($event)", "reset": "onReset()" } }, providers: [formDirectiveProvider], exportAs: ["ngForm"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
4927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5110
4928
|
type: Directive,
|
|
5111
4929
|
args: [{
|
|
5112
4930
|
selector: '[formGroup]',
|
|
@@ -5140,13 +4958,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
5140
4958
|
type: Output
|
|
5141
4959
|
}] } });
|
|
5142
4960
|
|
|
5143
|
-
/**
|
|
5144
|
-
* @license
|
|
5145
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5146
|
-
*
|
|
5147
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5148
|
-
* found in the LICENSE file at https://angular.io/license
|
|
5149
|
-
*/
|
|
5150
4961
|
const formGroupNameProvider = {
|
|
5151
4962
|
provide: ControlContainer,
|
|
5152
4963
|
useExisting: forwardRef(() => FormGroupName)
|
|
@@ -5212,9 +5023,9 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5212
5023
|
}
|
|
5213
5024
|
}
|
|
5214
5025
|
}
|
|
5215
|
-
FormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5216
|
-
FormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5026
|
+
FormGroupName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormGroupName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5027
|
+
FormGroupName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: FormGroupName, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5218
5029
|
type: Directive,
|
|
5219
5030
|
args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]
|
|
5220
5031
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5322,9 +5133,9 @@ class FormArrayName extends ControlContainer {
|
|
|
5322
5133
|
}
|
|
5323
5134
|
}
|
|
5324
5135
|
}
|
|
5325
|
-
FormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5326
|
-
FormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5136
|
+
FormArrayName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormArrayName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5137
|
+
FormArrayName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: FormArrayName, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 });
|
|
5138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5328
5139
|
type: Directive,
|
|
5329
5140
|
args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]
|
|
5330
5141
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5356,13 +5167,6 @@ function _hasInvalidParent(parent) {
|
|
|
5356
5167
|
!(parent instanceof FormArrayName);
|
|
5357
5168
|
}
|
|
5358
5169
|
|
|
5359
|
-
/**
|
|
5360
|
-
* @license
|
|
5361
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5362
|
-
*
|
|
5363
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5364
|
-
* found in the LICENSE file at https://angular.io/license
|
|
5365
|
-
*/
|
|
5366
5170
|
const controlNameBinding = {
|
|
5367
5171
|
provide: NgControl,
|
|
5368
5172
|
useExisting: forwardRef(() => FormControlName)
|
|
@@ -5500,9 +5304,9 @@ class FormControlName extends NgControl {
|
|
|
5500
5304
|
* @internal
|
|
5501
5305
|
*/
|
|
5502
5306
|
FormControlName._ngModelWarningSentOnce = false;
|
|
5503
|
-
FormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5504
|
-
FormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5307
|
+
FormControlName.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormControlName, deps: [{ token: ControlContainer, host: true, optional: true, skipSelf: true }, { token: NG_VALIDATORS, optional: true, self: true }, { token: NG_ASYNC_VALIDATORS, optional: true, self: true }, { token: NG_VALUE_ACCESSOR, optional: true, self: true }, { token: NG_MODEL_WITH_FORM_CONTROL_WARNING, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5308
|
+
FormControlName.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: FormControlName, selector: "[formControlName]", inputs: { name: ["formControlName", "name"], isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, providers: [controlNameBinding], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
5309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormControlName, decorators: [{
|
|
5506
5310
|
type: Directive,
|
|
5507
5311
|
args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]
|
|
5508
5312
|
}], ctorParameters: function () { return [{ type: ControlContainer, decorators: [{
|
|
@@ -5551,13 +5355,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
5551
5355
|
args: ['ngModelChange']
|
|
5552
5356
|
}] } });
|
|
5553
5357
|
|
|
5554
|
-
/**
|
|
5555
|
-
* @license
|
|
5556
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5557
|
-
*
|
|
5558
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5559
|
-
* found in the LICENSE file at https://angular.io/license
|
|
5560
|
-
*/
|
|
5561
5358
|
const SELECT_VALUE_ACCESSOR = {
|
|
5562
5359
|
provide: NG_VALUE_ACCESSOR,
|
|
5563
5360
|
useExisting: forwardRef(() => SelectControlValueAccessor),
|
|
@@ -5687,9 +5484,9 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5687
5484
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5688
5485
|
}
|
|
5689
5486
|
}
|
|
5690
|
-
SelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5691
|
-
SelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5487
|
+
SelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5488
|
+
SelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target.value)", "blur": "onTouched()" } }, providers: [SELECT_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
5489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5693
5490
|
type: Directive,
|
|
5694
5491
|
args: [{
|
|
5695
5492
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -5751,9 +5548,9 @@ class NgSelectOption {
|
|
|
5751
5548
|
}
|
|
5752
5549
|
}
|
|
5753
5550
|
}
|
|
5754
|
-
NgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5755
|
-
NgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5551
|
+
NgSelectOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgSelectOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5552
|
+
NgSelectOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: NgSelectOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
5553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
5757
5554
|
type: Directive,
|
|
5758
5555
|
args: [{ selector: 'option' }]
|
|
5759
5556
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{
|
|
@@ -5768,13 +5565,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
5768
5565
|
args: ['value']
|
|
5769
5566
|
}] } });
|
|
5770
5567
|
|
|
5771
|
-
/**
|
|
5772
|
-
* @license
|
|
5773
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5774
|
-
*
|
|
5775
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5776
|
-
* found in the LICENSE file at https://angular.io/license
|
|
5777
|
-
*/
|
|
5778
5568
|
const SELECT_MULTIPLE_VALUE_ACCESSOR = {
|
|
5779
5569
|
provide: NG_VALUE_ACCESSOR,
|
|
5780
5570
|
useExisting: forwardRef(() => SelectMultipleControlValueAccessor),
|
|
@@ -5925,9 +5715,9 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5925
5715
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
5926
5716
|
}
|
|
5927
5717
|
}
|
|
5928
|
-
SelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
5929
|
-
SelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
5930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5718
|
+
SelectMultipleControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5719
|
+
SelectMultipleControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: { compareWith: "compareWith" }, host: { listeners: { "change": "onChange($event.target)", "blur": "onTouched()" } }, providers: [SELECT_MULTIPLE_VALUE_ACCESSOR], usesInheritance: true, ngImport: i0 });
|
|
5720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
5931
5721
|
type: Directive,
|
|
5932
5722
|
args: [{
|
|
5933
5723
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -5999,9 +5789,9 @@ class ɵNgSelectMultipleOption {
|
|
|
5999
5789
|
}
|
|
6000
5790
|
}
|
|
6001
5791
|
}
|
|
6002
|
-
ɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6003
|
-
ɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5792
|
+
ɵNgSelectMultipleOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵNgSelectMultipleOption, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: SelectMultipleControlValueAccessor, host: true, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5793
|
+
ɵNgSelectMultipleOption.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: ɵNgSelectMultipleOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 });
|
|
5794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
6005
5795
|
type: Directive,
|
|
6006
5796
|
args: [{ selector: 'option' }]
|
|
6007
5797
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{
|
|
@@ -6016,13 +5806,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
6016
5806
|
args: ['value']
|
|
6017
5807
|
}] } });
|
|
6018
5808
|
|
|
6019
|
-
/**
|
|
6020
|
-
* @license
|
|
6021
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6022
|
-
*
|
|
6023
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6024
|
-
* found in the LICENSE file at https://angular.io/license
|
|
6025
|
-
*/
|
|
6026
5809
|
/**
|
|
6027
5810
|
* Method that updates string to integer if not already a number
|
|
6028
5811
|
*
|
|
@@ -6081,9 +5864,9 @@ class AbstractValidatorDirective {
|
|
|
6081
5864
|
return input != null /* both `null` and `undefined` */;
|
|
6082
5865
|
}
|
|
6083
5866
|
}
|
|
6084
|
-
AbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6085
|
-
AbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5867
|
+
AbstractValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5868
|
+
AbstractValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 });
|
|
5869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6087
5870
|
type: Directive
|
|
6088
5871
|
}] });
|
|
6089
5872
|
/**
|
|
@@ -6127,9 +5910,9 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6127
5910
|
this.createValidator = (max) => maxValidator(max);
|
|
6128
5911
|
}
|
|
6129
5912
|
}
|
|
6130
|
-
MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6131
|
-
MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5913
|
+
MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5914
|
+
MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "_enabled ? max : null" } }, providers: [MAX_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
5915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6133
5916
|
type: Directive,
|
|
6134
5917
|
args: [{
|
|
6135
5918
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6180,9 +5963,9 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6180
5963
|
this.createValidator = (min) => minValidator(min);
|
|
6181
5964
|
}
|
|
6182
5965
|
}
|
|
6183
|
-
MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6184
|
-
MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
5966
|
+
MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5967
|
+
MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "_enabled ? min : null" } }, providers: [MIN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
5968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MinValidator, decorators: [{
|
|
6186
5969
|
type: Directive,
|
|
6187
5970
|
args: [{
|
|
6188
5971
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6244,9 +6027,9 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6244
6027
|
return input;
|
|
6245
6028
|
}
|
|
6246
6029
|
}
|
|
6247
|
-
RequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6248
|
-
RequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6030
|
+
RequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6031
|
+
RequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: { required: "required" }, host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6250
6033
|
type: Directive,
|
|
6251
6034
|
args: [{
|
|
6252
6035
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6284,9 +6067,9 @@ class CheckboxRequiredValidator extends RequiredValidator {
|
|
|
6284
6067
|
this.createValidator = (input) => requiredTrueValidator;
|
|
6285
6068
|
}
|
|
6286
6069
|
}
|
|
6287
|
-
CheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6288
|
-
CheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6070
|
+
CheckboxRequiredValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6071
|
+
CheckboxRequiredValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: CheckboxRequiredValidator, selector: "input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]", host: { properties: { "attr.required": "_enabled ? \"\" : null" } }, providers: [CHECKBOX_REQUIRED_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6072
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6290
6073
|
type: Directive,
|
|
6291
6074
|
args: [{
|
|
6292
6075
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6345,9 +6128,9 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6345
6128
|
return input;
|
|
6346
6129
|
}
|
|
6347
6130
|
}
|
|
6348
|
-
EmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6349
|
-
EmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6131
|
+
EmailValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6132
|
+
EmailValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6351
6134
|
type: Directive,
|
|
6352
6135
|
args: [{
|
|
6353
6136
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6397,9 +6180,9 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6397
6180
|
this.createValidator = (minlength) => minLengthValidator(minlength);
|
|
6398
6181
|
}
|
|
6399
6182
|
}
|
|
6400
|
-
MinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6401
|
-
MinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6183
|
+
MinLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6184
|
+
MinLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MinLengthValidator, selector: "[minlength][formControlName],[minlength][formControl],[minlength][ngModel]", inputs: { minlength: "minlength" }, host: { properties: { "attr.minlength": "_enabled ? minlength : null" } }, providers: [MIN_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6403
6186
|
type: Directive,
|
|
6404
6187
|
args: [{
|
|
6405
6188
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6450,9 +6233,9 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6450
6233
|
this.createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6451
6234
|
}
|
|
6452
6235
|
}
|
|
6453
|
-
MaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6454
|
-
MaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6236
|
+
MaxLengthValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6237
|
+
MaxLengthValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: { maxlength: "maxlength" }, host: { properties: { "attr.maxlength": "_enabled ? maxlength : null" } }, providers: [MAX_LENGTH_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6456
6239
|
type: Directive,
|
|
6457
6240
|
args: [{
|
|
6458
6241
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6505,9 +6288,9 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6505
6288
|
this.createValidator = (input) => patternValidator(input);
|
|
6506
6289
|
}
|
|
6507
6290
|
}
|
|
6508
|
-
PatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6509
|
-
PatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-
|
|
6510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6291
|
+
PatternValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6292
|
+
PatternValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-rc.0", type: PatternValidator, selector: "[pattern][formControlName],[pattern][formControl],[pattern][ngModel]", inputs: { pattern: "pattern" }, host: { properties: { "attr.pattern": "_enabled ? pattern : null" } }, providers: [PATTERN_VALIDATOR], usesInheritance: true, ngImport: i0 });
|
|
6293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6511
6294
|
type: Directive,
|
|
6512
6295
|
args: [{
|
|
6513
6296
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6518,13 +6301,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
6518
6301
|
type: Input
|
|
6519
6302
|
}] } });
|
|
6520
6303
|
|
|
6521
|
-
/**
|
|
6522
|
-
* @license
|
|
6523
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6524
|
-
*
|
|
6525
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6526
|
-
* found in the LICENSE file at https://angular.io/license
|
|
6527
|
-
*/
|
|
6528
6304
|
const SHARED_FORM_DIRECTIVES = [
|
|
6529
6305
|
ɵNgNoValidate,
|
|
6530
6306
|
NgSelectOption,
|
|
@@ -6554,8 +6330,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, Fo
|
|
|
6554
6330
|
*/
|
|
6555
6331
|
class ɵInternalFormsSharedModule {
|
|
6556
6332
|
}
|
|
6557
|
-
ɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
6558
|
-
ɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
6333
|
+
ɵInternalFormsSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6334
|
+
ɵInternalFormsSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6559
6335
|
NgSelectOption,
|
|
6560
6336
|
ɵNgSelectMultipleOption,
|
|
6561
6337
|
DefaultValueAccessor,
|
|
@@ -6594,8 +6370,8 @@ class ɵInternalFormsSharedModule {
|
|
|
6594
6370
|
EmailValidator,
|
|
6595
6371
|
MinValidator,
|
|
6596
6372
|
MaxValidator] });
|
|
6597
|
-
ɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
6598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
6373
|
+
ɵInternalFormsSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, imports: [RadioControlRegistryModule] });
|
|
6374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6599
6375
|
type: NgModule,
|
|
6600
6376
|
args: [{
|
|
6601
6377
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -6604,13 +6380,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
6604
6380
|
}]
|
|
6605
6381
|
}] });
|
|
6606
6382
|
|
|
6607
|
-
/**
|
|
6608
|
-
* @license
|
|
6609
|
-
* Copyright Google LLC All Rights Reserved.
|
|
6610
|
-
*
|
|
6611
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6612
|
-
* found in the LICENSE file at https://angular.io/license
|
|
6613
|
-
*/
|
|
6614
6383
|
/**
|
|
6615
6384
|
* Tracks the value and validity state of an array of `FormControl`,
|
|
6616
6385
|
* `FormGroup` or `FormArray` instances.
|
|
@@ -7064,13 +6833,6 @@ const UntypedFormArray = FormArray;
|
|
|
7064
6833
|
*/
|
|
7065
6834
|
const isFormArray = (control) => control instanceof FormArray;
|
|
7066
6835
|
|
|
7067
|
-
/**
|
|
7068
|
-
* @license
|
|
7069
|
-
* Copyright Google LLC All Rights Reserved.
|
|
7070
|
-
*
|
|
7071
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7072
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7073
|
-
*/
|
|
7074
6836
|
function isAbstractControlOptions(options) {
|
|
7075
6837
|
return !!options &&
|
|
7076
6838
|
(options.asyncValidators !== undefined ||
|
|
@@ -7263,9 +7025,9 @@ class FormBuilder {
|
|
|
7263
7025
|
}
|
|
7264
7026
|
}
|
|
7265
7027
|
}
|
|
7266
|
-
FormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
7267
|
-
FormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
7268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
7028
|
+
FormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7029
|
+
FormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormBuilder, providedIn: 'root' });
|
|
7030
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7269
7031
|
type: Injectable,
|
|
7270
7032
|
args: [{ providedIn: 'root' }]
|
|
7271
7033
|
}] });
|
|
@@ -7278,9 +7040,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
7278
7040
|
*/
|
|
7279
7041
|
class NonNullableFormBuilder {
|
|
7280
7042
|
}
|
|
7281
|
-
NonNullableFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
7282
|
-
NonNullableFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
7283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
7043
|
+
NonNullableFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7044
|
+
NonNullableFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable });
|
|
7045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7284
7046
|
type: Injectable,
|
|
7285
7047
|
args: [{
|
|
7286
7048
|
providedIn: 'root',
|
|
@@ -7307,32 +7069,23 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7307
7069
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7308
7070
|
}
|
|
7309
7071
|
}
|
|
7310
|
-
UntypedFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
7311
|
-
UntypedFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-
|
|
7312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
7072
|
+
UntypedFormBuilder.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
7073
|
+
UntypedFormBuilder.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' });
|
|
7074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7313
7075
|
type: Injectable,
|
|
7314
7076
|
args: [{ providedIn: 'root' }]
|
|
7315
7077
|
}] });
|
|
7316
7078
|
|
|
7317
7079
|
/**
|
|
7318
|
-
* @
|
|
7319
|
-
*
|
|
7320
|
-
*
|
|
7321
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7322
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7080
|
+
* @module
|
|
7081
|
+
* @description
|
|
7082
|
+
* Entry point for all public APIs of the forms package.
|
|
7323
7083
|
*/
|
|
7324
7084
|
/**
|
|
7325
7085
|
* @publicApi
|
|
7326
7086
|
*/
|
|
7327
|
-
const VERSION = new Version('15.1.0-
|
|
7087
|
+
const VERSION = new Version('15.1.0-rc.0');
|
|
7328
7088
|
|
|
7329
|
-
/**
|
|
7330
|
-
* @license
|
|
7331
|
-
* Copyright Google LLC All Rights Reserved.
|
|
7332
|
-
*
|
|
7333
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7334
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7335
|
-
*/
|
|
7336
7089
|
/**
|
|
7337
7090
|
* Exports the required providers and directives for template-driven forms,
|
|
7338
7091
|
* making them available for import by NgModules that import this module.
|
|
@@ -7364,10 +7117,10 @@ class FormsModule {
|
|
|
7364
7117
|
};
|
|
7365
7118
|
}
|
|
7366
7119
|
}
|
|
7367
|
-
FormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
7368
|
-
FormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
7369
|
-
FormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
7370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
7120
|
+
FormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7121
|
+
FormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] });
|
|
7122
|
+
FormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: FormsModule, decorators: [{
|
|
7371
7124
|
type: NgModule,
|
|
7372
7125
|
args: [{
|
|
7373
7126
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7414,10 +7167,10 @@ class ReactiveFormsModule {
|
|
|
7414
7167
|
};
|
|
7415
7168
|
}
|
|
7416
7169
|
}
|
|
7417
|
-
ReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-
|
|
7418
|
-
ReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-
|
|
7419
|
-
ReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-
|
|
7420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-
|
|
7170
|
+
ReactiveFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7171
|
+
ReactiveFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] });
|
|
7172
|
+
ReactiveFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] });
|
|
7173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7421
7174
|
type: NgModule,
|
|
7422
7175
|
args: [{
|
|
7423
7176
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|
|
@@ -7426,29 +7179,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2",
|
|
|
7426
7179
|
}] });
|
|
7427
7180
|
|
|
7428
7181
|
/**
|
|
7429
|
-
* @
|
|
7430
|
-
*
|
|
7182
|
+
* @module
|
|
7183
|
+
* @description
|
|
7184
|
+
* This module is used for handling user input, by defining and building a `FormGroup` that
|
|
7185
|
+
* consists of `FormControl` objects, and mapping them onto the DOM. `FormControl`
|
|
7186
|
+
* objects can then be used to read information from the form DOM elements.
|
|
7431
7187
|
*
|
|
7432
|
-
*
|
|
7433
|
-
*
|
|
7188
|
+
* Forms providers are not included in default providers; you must import these providers
|
|
7189
|
+
* explicitly.
|
|
7434
7190
|
*/
|
|
7435
7191
|
|
|
7436
7192
|
/**
|
|
7437
|
-
* @
|
|
7438
|
-
*
|
|
7439
|
-
*
|
|
7440
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7441
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7193
|
+
* @module
|
|
7194
|
+
* @description
|
|
7195
|
+
* Entry point for all public APIs of this package.
|
|
7442
7196
|
*/
|
|
7443
7197
|
// This file only reexports content of the `src` folder. Keep it that way.
|
|
7444
7198
|
|
|
7445
|
-
|
|
7446
|
-
* @license
|
|
7447
|
-
* Copyright Google LLC All Rights Reserved.
|
|
7448
|
-
*
|
|
7449
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
7450
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7451
|
-
*/
|
|
7199
|
+
// This file is not used to build this module. It is only used during editing
|
|
7452
7200
|
|
|
7453
7201
|
/**
|
|
7454
7202
|
* Generated bundle index. Do not edit.
|