@angular/forms 18.1.0-next.3 → 18.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/esm2022/src/directives/abstract_form_group_directive.mjs +3 -3
- package/esm2022/src/directives/checkbox_value_accessor.mjs +3 -3
- package/esm2022/src/directives/control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/default_value_accessor.mjs +3 -3
- package/esm2022/src/directives/ng_control_status.mjs +6 -6
- package/esm2022/src/directives/ng_form.mjs +3 -3
- package/esm2022/src/directives/ng_model.mjs +3 -3
- package/esm2022/src/directives/ng_model_group.mjs +3 -3
- package/esm2022/src/directives/ng_no_validate_directive.mjs +3 -3
- package/esm2022/src/directives/number_value_accessor.mjs +3 -3
- package/esm2022/src/directives/radio_control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/range_value_accessor.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_control_directive.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_control_name.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_group_directive.mjs +3 -3
- package/esm2022/src/directives/reactive_directives/form_group_name.mjs +6 -6
- package/esm2022/src/directives/select_control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/select_multiple_control_value_accessor.mjs +6 -6
- package/esm2022/src/directives/validators.mjs +27 -27
- package/esm2022/src/directives.mjs +4 -4
- package/esm2022/src/form_builder.mjs +9 -9
- package/esm2022/src/form_providers.mjs +8 -8
- package/esm2022/src/model/abstract_model.mjs +23 -14
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/forms.mjs +144 -135
- package/fesm2022/forms.mjs.map +1 -1
- package/index.d.ts +4 -1
- package/package.json +4 -4
package/fesm2022/forms.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.1.0-
|
|
2
|
+
* @license Angular v18.1.0-rc.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -62,10 +62,10 @@ class BaseControlValueAccessor {
|
|
|
62
62
|
setDisabledState(isDisabled) {
|
|
63
63
|
this.setProperty('disabled', isDisabled);
|
|
64
64
|
}
|
|
65
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
66
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
65
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: BaseControlValueAccessor, ngImport: i0 }); }
|
|
67
67
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: BaseControlValueAccessor, decorators: [{
|
|
69
69
|
type: Directive
|
|
70
70
|
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }] });
|
|
71
71
|
/**
|
|
@@ -78,10 +78,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3",
|
|
|
78
78
|
* applications code.
|
|
79
79
|
*/
|
|
80
80
|
class BuiltInControlValueAccessor extends BaseControlValueAccessor {
|
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
82
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
82
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: BuiltInControlValueAccessor, usesInheritance: true, ngImport: i0 }); }
|
|
83
83
|
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: BuiltInControlValueAccessor, decorators: [{
|
|
85
85
|
type: Directive
|
|
86
86
|
}] });
|
|
87
87
|
/**
|
|
@@ -129,10 +129,10 @@ class CheckboxControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
129
129
|
writeValue(value) {
|
|
130
130
|
this.setProperty('checked', value);
|
|
131
131
|
}
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
133
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
133
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: CheckboxControlValueAccessor, decorators: [{
|
|
136
136
|
type: Directive,
|
|
137
137
|
args: [{
|
|
138
138
|
selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
|
|
@@ -229,10 +229,10 @@ class DefaultValueAccessor extends BaseControlValueAccessor {
|
|
|
229
229
|
this._composing = false;
|
|
230
230
|
this._compositionMode && this.onChange(value);
|
|
231
231
|
}
|
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
233
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
233
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
234
234
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: DefaultValueAccessor, decorators: [{
|
|
236
236
|
type: Directive,
|
|
237
237
|
args: [{
|
|
238
238
|
selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
|
|
@@ -1335,10 +1335,10 @@ class NgControlStatus extends AbstractControlStatus {
|
|
|
1335
1335
|
constructor(cd) {
|
|
1336
1336
|
super(cd);
|
|
1337
1337
|
}
|
|
1338
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
1339
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
1338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgControlStatus, deps: [{ token: NgControl, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1339
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
1340
1340
|
}
|
|
1341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
1341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgControlStatus, decorators: [{
|
|
1342
1342
|
type: Directive,
|
|
1343
1343
|
args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]
|
|
1344
1344
|
}], ctorParameters: () => [{ type: NgControl, decorators: [{
|
|
@@ -1360,10 +1360,10 @@ class NgControlStatusGroup extends AbstractControlStatus {
|
|
|
1360
1360
|
constructor(cd) {
|
|
1361
1361
|
super(cd);
|
|
1362
1362
|
}
|
|
1363
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
1364
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
1363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, deps: [{ token: ControlContainer, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1364
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
1365
1365
|
}
|
|
1366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgControlStatusGroup, decorators: [{
|
|
1367
1367
|
type: Directive,
|
|
1368
1368
|
args: [{
|
|
1369
1369
|
selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
|
|
@@ -1805,6 +1805,9 @@ class AbstractControl {
|
|
|
1805
1805
|
get status() {
|
|
1806
1806
|
return untracked(this.statusReactive);
|
|
1807
1807
|
}
|
|
1808
|
+
set status(v) {
|
|
1809
|
+
untracked(() => this.statusReactive.set(v));
|
|
1810
|
+
}
|
|
1808
1811
|
/**
|
|
1809
1812
|
* A control is `valid` when its `status` is `VALID`.
|
|
1810
1813
|
*
|
|
@@ -1874,6 +1877,9 @@ class AbstractControl {
|
|
|
1874
1877
|
get pristine() {
|
|
1875
1878
|
return untracked(this.pristineReactive);
|
|
1876
1879
|
}
|
|
1880
|
+
set pristine(v) {
|
|
1881
|
+
untracked(() => this.pristineReactive.set(v));
|
|
1882
|
+
}
|
|
1877
1883
|
/**
|
|
1878
1884
|
* A control is `dirty` if the user has changed the value
|
|
1879
1885
|
* in the UI.
|
|
@@ -1893,6 +1899,9 @@ class AbstractControl {
|
|
|
1893
1899
|
get touched() {
|
|
1894
1900
|
return untracked(this.touchedReactive);
|
|
1895
1901
|
}
|
|
1902
|
+
set touched(v) {
|
|
1903
|
+
untracked(() => this.touchedReactive.set(v));
|
|
1904
|
+
}
|
|
1896
1905
|
/**
|
|
1897
1906
|
* True if the control has not been marked as touched
|
|
1898
1907
|
*
|
|
@@ -2071,7 +2080,7 @@ class AbstractControl {
|
|
|
2071
2080
|
}
|
|
2072
2081
|
markAsTouched(opts = {}) {
|
|
2073
2082
|
const changed = this.touched === false;
|
|
2074
|
-
|
|
2083
|
+
this.touched = true;
|
|
2075
2084
|
const sourceControl = opts.sourceControl ?? this;
|
|
2076
2085
|
if (this._parent && !opts.onlySelf) {
|
|
2077
2086
|
this._parent.markAsTouched({ ...opts, sourceControl });
|
|
@@ -2096,7 +2105,7 @@ class AbstractControl {
|
|
|
2096
2105
|
}
|
|
2097
2106
|
markAsUntouched(opts = {}) {
|
|
2098
2107
|
const changed = this.touched === true;
|
|
2099
|
-
|
|
2108
|
+
this.touched = false;
|
|
2100
2109
|
this._pendingTouched = false;
|
|
2101
2110
|
const sourceControl = opts.sourceControl ?? this;
|
|
2102
2111
|
this._forEachChild((control) => {
|
|
@@ -2111,7 +2120,7 @@ class AbstractControl {
|
|
|
2111
2120
|
}
|
|
2112
2121
|
markAsDirty(opts = {}) {
|
|
2113
2122
|
const changed = this.pristine === true;
|
|
2114
|
-
|
|
2123
|
+
this.pristine = false;
|
|
2115
2124
|
const sourceControl = opts.sourceControl ?? this;
|
|
2116
2125
|
if (this._parent && !opts.onlySelf) {
|
|
2117
2126
|
this._parent.markAsDirty({ ...opts, sourceControl });
|
|
@@ -2122,7 +2131,7 @@ class AbstractControl {
|
|
|
2122
2131
|
}
|
|
2123
2132
|
markAsPristine(opts = {}) {
|
|
2124
2133
|
const changed = this.pristine === false;
|
|
2125
|
-
|
|
2134
|
+
this.pristine = true;
|
|
2126
2135
|
this._pendingDirty = false;
|
|
2127
2136
|
const sourceControl = opts.sourceControl ?? this;
|
|
2128
2137
|
this._forEachChild((control) => {
|
|
@@ -2137,7 +2146,7 @@ class AbstractControl {
|
|
|
2137
2146
|
}
|
|
2138
2147
|
}
|
|
2139
2148
|
markAsPending(opts = {}) {
|
|
2140
|
-
|
|
2149
|
+
this.status = PENDING;
|
|
2141
2150
|
const sourceControl = opts.sourceControl ?? this;
|
|
2142
2151
|
if (opts.emitEvent !== false) {
|
|
2143
2152
|
this._events.next(new StatusChangeEvent(this.status, sourceControl));
|
|
@@ -2151,7 +2160,7 @@ class AbstractControl {
|
|
|
2151
2160
|
// If parent has been marked artificially dirty we don't want to re-calculate the
|
|
2152
2161
|
// parent's dirtiness based on the children.
|
|
2153
2162
|
const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
|
|
2154
|
-
|
|
2163
|
+
this.status = DISABLED;
|
|
2155
2164
|
this.errors = null;
|
|
2156
2165
|
this._forEachChild((control) => {
|
|
2157
2166
|
/** We don't propagate the source control downwards */
|
|
@@ -2190,7 +2199,7 @@ class AbstractControl {
|
|
|
2190
2199
|
// If parent has been marked artificially dirty we don't want to re-calculate the
|
|
2191
2200
|
// parent's dirtiness based on the children.
|
|
2192
2201
|
const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
|
|
2193
|
-
|
|
2202
|
+
this.status = VALID;
|
|
2194
2203
|
this._forEachChild((control) => {
|
|
2195
2204
|
control.enable({ ...opts, onlySelf: true });
|
|
2196
2205
|
});
|
|
@@ -2228,7 +2237,7 @@ class AbstractControl {
|
|
|
2228
2237
|
if (this.enabled) {
|
|
2229
2238
|
const shouldHaveEmitted = this._cancelExistingSubscription();
|
|
2230
2239
|
this.errors = this._runValidator();
|
|
2231
|
-
|
|
2240
|
+
this.status = this._calculateStatus();
|
|
2232
2241
|
if (this.status === VALID || this.status === PENDING) {
|
|
2233
2242
|
// If the canceled subscription should have emitted
|
|
2234
2243
|
// we make sure the async validator emits the status change on completion
|
|
@@ -2252,14 +2261,14 @@ class AbstractControl {
|
|
|
2252
2261
|
this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });
|
|
2253
2262
|
}
|
|
2254
2263
|
_setInitialStatus() {
|
|
2255
|
-
|
|
2264
|
+
this.status = this._allControlsDisabled() ? DISABLED : VALID;
|
|
2256
2265
|
}
|
|
2257
2266
|
_runValidator() {
|
|
2258
2267
|
return this.validator ? this.validator(this) : null;
|
|
2259
2268
|
}
|
|
2260
2269
|
_runAsyncValidator(shouldHaveEmitted, emitEvent) {
|
|
2261
2270
|
if (this.asyncValidator) {
|
|
2262
|
-
|
|
2271
|
+
this.status = PENDING;
|
|
2263
2272
|
this._hasOwnPendingAsyncValidator = { emitEvent: emitEvent !== false };
|
|
2264
2273
|
const obs = toObservable(this.asyncValidator(this));
|
|
2265
2274
|
this._asyncValidationSubscription = obs.subscribe((errors) => {
|
|
@@ -2402,7 +2411,7 @@ class AbstractControl {
|
|
|
2402
2411
|
}
|
|
2403
2412
|
/** @internal */
|
|
2404
2413
|
_updateControlsErrors(emitEvent, changedControl, shouldHaveEmitted) {
|
|
2405
|
-
|
|
2414
|
+
this.status = this._calculateStatus();
|
|
2406
2415
|
if (emitEvent) {
|
|
2407
2416
|
this.statusChanges.emit(this.status);
|
|
2408
2417
|
}
|
|
@@ -2448,7 +2457,7 @@ class AbstractControl {
|
|
|
2448
2457
|
_updatePristine(opts, changedControl) {
|
|
2449
2458
|
const newPristine = !this._anyControlsDirty();
|
|
2450
2459
|
const changed = this.pristine !== newPristine;
|
|
2451
|
-
|
|
2460
|
+
this.pristine = newPristine;
|
|
2452
2461
|
if (this._parent && !opts.onlySelf) {
|
|
2453
2462
|
this._parent._updatePristine(opts, changedControl);
|
|
2454
2463
|
}
|
|
@@ -2458,7 +2467,7 @@ class AbstractControl {
|
|
|
2458
2467
|
}
|
|
2459
2468
|
/** @internal */
|
|
2460
2469
|
_updateTouched(opts = {}, changedControl) {
|
|
2461
|
-
|
|
2470
|
+
this.touched = this._anyControlsTouched();
|
|
2462
2471
|
this._events.next(new TouchedChangeEvent(this.touched, changedControl));
|
|
2463
2472
|
if (this._parent && !opts.onlySelf) {
|
|
2464
2473
|
this._parent._updateTouched(opts, changedControl);
|
|
@@ -3591,10 +3600,10 @@ class NgForm extends ControlContainer {
|
|
|
3591
3600
|
path.pop();
|
|
3592
3601
|
return path.length ? this.form.get(path) : this.form;
|
|
3593
3602
|
}
|
|
3594
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
3595
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
3603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
3604
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
3596
3605
|
}
|
|
3597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
3606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgForm, decorators: [{
|
|
3598
3607
|
type: Directive,
|
|
3599
3608
|
args: [{
|
|
3600
3609
|
selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
|
|
@@ -3793,10 +3802,10 @@ class AbstractFormGroupDirective extends ControlContainer {
|
|
|
3793
3802
|
}
|
|
3794
3803
|
/** @internal */
|
|
3795
3804
|
_checkParentType() { }
|
|
3796
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
3797
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
3805
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3806
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: AbstractFormGroupDirective, usesInheritance: true, ngImport: i0 }); }
|
|
3798
3807
|
}
|
|
3799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
3808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: AbstractFormGroupDirective, decorators: [{
|
|
3800
3809
|
type: Directive
|
|
3801
3810
|
}] });
|
|
3802
3811
|
|
|
@@ -3896,10 +3905,10 @@ class NgModelGroup extends AbstractFormGroupDirective {
|
|
|
3896
3905
|
throw modelGroupParentException();
|
|
3897
3906
|
}
|
|
3898
3907
|
}
|
|
3899
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
3900
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
3908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
3909
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: NgModelGroup, selector: "[ngModelGroup]", inputs: { name: ["ngModelGroup", "name"] }, providers: [modelGroupProvider], exportAs: ["ngModelGroup"], usesInheritance: true, ngImport: i0 }); }
|
|
3901
3910
|
}
|
|
3902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
3911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgModelGroup, decorators: [{
|
|
3903
3912
|
type: Directive,
|
|
3904
3913
|
args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]
|
|
3905
3914
|
}], ctorParameters: () => [{ type: ControlContainer, decorators: [{
|
|
@@ -4175,10 +4184,10 @@ class NgModel extends NgControl {
|
|
|
4175
4184
|
_getPath(controlName) {
|
|
4176
4185
|
return this._parent ? controlPath(controlName, this._parent) : [controlName];
|
|
4177
4186
|
}
|
|
4178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4179
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4187
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
4188
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
4180
4189
|
}
|
|
4181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgModel, decorators: [{
|
|
4182
4191
|
type: Directive,
|
|
4183
4192
|
args: [{
|
|
4184
4193
|
selector: '[ngModel]:not([formControlName]):not([formControl])',
|
|
@@ -4254,10 +4263,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3",
|
|
|
4254
4263
|
* @ngModule FormsModule
|
|
4255
4264
|
*/
|
|
4256
4265
|
class ɵNgNoValidate {
|
|
4257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4258
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4267
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])", host: { attributes: { "novalidate": "" } }, ngImport: i0 }); }
|
|
4259
4268
|
}
|
|
4260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵNgNoValidate, decorators: [{
|
|
4261
4270
|
type: Directive,
|
|
4262
4271
|
args: [{
|
|
4263
4272
|
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
|
|
@@ -4313,10 +4322,10 @@ class NumberValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4313
4322
|
fn(value == '' ? null : parseFloat(value));
|
|
4314
4323
|
};
|
|
4315
4324
|
}
|
|
4316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4317
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4325
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4326
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
4318
4327
|
}
|
|
4319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NumberValueAccessor, decorators: [{
|
|
4320
4329
|
type: Directive,
|
|
4321
4330
|
args: [{
|
|
4322
4331
|
selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
|
|
@@ -4379,10 +4388,10 @@ class RadioControlRegistry {
|
|
|
4379
4388
|
return false;
|
|
4380
4389
|
return (controlPair[0]._parent === accessor._control._parent && controlPair[1].name === accessor.name);
|
|
4381
4390
|
}
|
|
4382
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4383
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-
|
|
4391
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4392
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, providedIn: 'root' }); }
|
|
4384
4393
|
}
|
|
4385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RadioControlRegistry, decorators: [{
|
|
4386
4395
|
type: Injectable,
|
|
4387
4396
|
args: [{ providedIn: 'root' }]
|
|
4388
4397
|
}] });
|
|
@@ -4496,10 +4505,10 @@ class RadioControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4496
4505
|
if (!this.name && this.formControlName)
|
|
4497
4506
|
this.name = this.formControlName;
|
|
4498
4507
|
}
|
|
4499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4500
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4508
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: RadioControlRegistry }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4509
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
4501
4510
|
}
|
|
4502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RadioControlValueAccessor, decorators: [{
|
|
4503
4512
|
type: Directive,
|
|
4504
4513
|
args: [{
|
|
4505
4514
|
selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
|
|
@@ -4560,10 +4569,10 @@ class RangeValueAccessor extends BuiltInControlValueAccessor {
|
|
|
4560
4569
|
fn(value == '' ? null : parseFloat(value));
|
|
4561
4570
|
};
|
|
4562
4571
|
}
|
|
4563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4564
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4573
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
4565
4574
|
}
|
|
4566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RangeValueAccessor, decorators: [{
|
|
4567
4576
|
type: Directive,
|
|
4568
4577
|
args: [{
|
|
4569
4578
|
selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
|
|
@@ -4693,10 +4702,10 @@ class FormControlDirective extends NgControl {
|
|
|
4693
4702
|
_isControlChanged(changes) {
|
|
4694
4703
|
return changes.hasOwnProperty('form');
|
|
4695
4704
|
}
|
|
4696
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
4697
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
4705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
4706
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
4698
4707
|
}
|
|
4699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
4708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormControlDirective, decorators: [{
|
|
4700
4709
|
type: Directive,
|
|
4701
4710
|
args: [{ selector: '[formControl]', providers: [formControlBinding], exportAs: 'ngForm' }]
|
|
4702
4711
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -5050,10 +5059,10 @@ class FormGroupDirective extends ControlContainer {
|
|
|
5050
5059
|
throw missingFormException();
|
|
5051
5060
|
}
|
|
5052
5061
|
}
|
|
5053
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5054
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5062
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5063
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
5055
5064
|
}
|
|
5056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormGroupDirective, decorators: [{
|
|
5057
5066
|
type: Directive,
|
|
5058
5067
|
args: [{
|
|
5059
5068
|
selector: '[formGroup]',
|
|
@@ -5161,10 +5170,10 @@ class FormGroupName extends AbstractFormGroupDirective {
|
|
|
5161
5170
|
throw groupParentException();
|
|
5162
5171
|
}
|
|
5163
5172
|
}
|
|
5164
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5165
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5174
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: FormGroupName, selector: "[formGroupName]", inputs: { name: ["formGroupName", "name"] }, providers: [formGroupNameProvider], usesInheritance: true, ngImport: i0 }); }
|
|
5166
5175
|
}
|
|
5167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormGroupName, decorators: [{
|
|
5168
5177
|
type: Directive,
|
|
5169
5178
|
args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]
|
|
5170
5179
|
}], ctorParameters: () => [{ type: ControlContainer, decorators: [{
|
|
@@ -5281,10 +5290,10 @@ class FormArrayName extends ControlContainer {
|
|
|
5281
5290
|
throw arrayParentException();
|
|
5282
5291
|
}
|
|
5283
5292
|
}
|
|
5284
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5285
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5294
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: FormArrayName, selector: "[formArrayName]", inputs: { name: ["formArrayName", "name"] }, providers: [formArrayNameProvider], usesInheritance: true, ngImport: i0 }); }
|
|
5286
5295
|
}
|
|
5287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormArrayName, decorators: [{
|
|
5288
5297
|
type: Directive,
|
|
5289
5298
|
args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]
|
|
5290
5299
|
}], ctorParameters: () => [{ type: ControlContainer, decorators: [{
|
|
@@ -5461,10 +5470,10 @@ class FormControlName extends NgControl {
|
|
|
5461
5470
|
this.control = this.formDirective.addControl(this);
|
|
5462
5471
|
this._added = true;
|
|
5463
5472
|
}
|
|
5464
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5465
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5473
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5474
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
5466
5475
|
}
|
|
5467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormControlName, decorators: [{
|
|
5468
5477
|
type: Directive,
|
|
5469
5478
|
args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]
|
|
5470
5479
|
}], ctorParameters: () => [{ type: ControlContainer, decorators: [{
|
|
@@ -5641,10 +5650,10 @@ class SelectControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5641
5650
|
const id = _extractId$1(valueString);
|
|
5642
5651
|
return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
|
|
5643
5652
|
}
|
|
5644
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5645
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5653
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5654
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
5646
5655
|
}
|
|
5647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: SelectControlValueAccessor, decorators: [{
|
|
5648
5657
|
type: Directive,
|
|
5649
5658
|
args: [{
|
|
5650
5659
|
selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
|
|
@@ -5705,10 +5714,10 @@ class NgSelectOption {
|
|
|
5705
5714
|
this._select.writeValue(this._select.value);
|
|
5706
5715
|
}
|
|
5707
5716
|
}
|
|
5708
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5709
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5718
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: NgSelectOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 }); }
|
|
5710
5719
|
}
|
|
5711
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NgSelectOption, decorators: [{
|
|
5712
5721
|
type: Directive,
|
|
5713
5722
|
args: [{ selector: 'option' }]
|
|
5714
5723
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectControlValueAccessor, decorators: [{
|
|
@@ -5872,10 +5881,10 @@ class SelectMultipleControlValueAccessor extends BuiltInControlValueAccessor {
|
|
|
5872
5881
|
const id = _extractId(valueString);
|
|
5873
5882
|
return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
|
|
5874
5883
|
}
|
|
5875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5876
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5884
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5885
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
5877
5886
|
}
|
|
5878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: SelectMultipleControlValueAccessor, decorators: [{
|
|
5879
5888
|
type: Directive,
|
|
5880
5889
|
args: [{
|
|
5881
5890
|
selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
|
|
@@ -5946,10 +5955,10 @@ class ɵNgSelectMultipleOption {
|
|
|
5946
5955
|
this._select.writeValue(this._select.value);
|
|
5947
5956
|
}
|
|
5948
5957
|
}
|
|
5949
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
5950
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
5958
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.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 }); }
|
|
5959
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: ɵNgSelectMultipleOption, selector: "option", inputs: { ngValue: "ngValue", value: "value" }, ngImport: i0 }); }
|
|
5951
5960
|
}
|
|
5952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
5961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵNgSelectMultipleOption, decorators: [{
|
|
5953
5962
|
type: Directive,
|
|
5954
5963
|
args: [{ selector: 'option' }]
|
|
5955
5964
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: SelectMultipleControlValueAccessor, decorators: [{
|
|
@@ -6021,10 +6030,10 @@ class AbstractValidatorDirective {
|
|
|
6021
6030
|
enabled(input) {
|
|
6022
6031
|
return input != null /* both `null` and `undefined` */;
|
|
6023
6032
|
}
|
|
6024
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6025
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6033
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6034
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: AbstractValidatorDirective, usesOnChanges: true, ngImport: i0 }); }
|
|
6026
6035
|
}
|
|
6027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6036
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: AbstractValidatorDirective, decorators: [{
|
|
6028
6037
|
type: Directive
|
|
6029
6038
|
}] });
|
|
6030
6039
|
/**
|
|
@@ -6067,10 +6076,10 @@ class MaxValidator extends AbstractValidatorDirective {
|
|
|
6067
6076
|
/** @internal */
|
|
6068
6077
|
this.createValidator = (max) => maxValidator(max);
|
|
6069
6078
|
}
|
|
6070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6071
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6079
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MaxValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6080
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6072
6081
|
}
|
|
6073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MaxValidator, decorators: [{
|
|
6074
6083
|
type: Directive,
|
|
6075
6084
|
args: [{
|
|
6076
6085
|
selector: 'input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]',
|
|
@@ -6120,10 +6129,10 @@ class MinValidator extends AbstractValidatorDirective {
|
|
|
6120
6129
|
/** @internal */
|
|
6121
6130
|
this.createValidator = (min) => minValidator(min);
|
|
6122
6131
|
}
|
|
6123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6124
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MinValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6133
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6125
6134
|
}
|
|
6126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MinValidator, decorators: [{
|
|
6127
6136
|
type: Directive,
|
|
6128
6137
|
args: [{
|
|
6129
6138
|
selector: 'input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]',
|
|
@@ -6184,10 +6193,10 @@ class RequiredValidator extends AbstractValidatorDirective {
|
|
|
6184
6193
|
enabled(input) {
|
|
6185
6194
|
return input;
|
|
6186
6195
|
}
|
|
6187
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6188
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6197
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6189
6198
|
}
|
|
6190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: RequiredValidator, decorators: [{
|
|
6191
6200
|
type: Directive,
|
|
6192
6201
|
args: [{
|
|
6193
6202
|
selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
|
|
@@ -6224,10 +6233,10 @@ class CheckboxRequiredValidator extends RequiredValidator {
|
|
|
6224
6233
|
/** @internal */
|
|
6225
6234
|
this.createValidator = (input) => requiredTrueValidator;
|
|
6226
6235
|
}
|
|
6227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6228
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6237
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6229
6238
|
}
|
|
6230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: CheckboxRequiredValidator, decorators: [{
|
|
6231
6240
|
type: Directive,
|
|
6232
6241
|
args: [{
|
|
6233
6242
|
selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
|
|
@@ -6285,10 +6294,10 @@ class EmailValidator extends AbstractValidatorDirective {
|
|
|
6285
6294
|
enabled(input) {
|
|
6286
6295
|
return input;
|
|
6287
6296
|
}
|
|
6288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6289
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: EmailValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6298
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-rc.0", type: EmailValidator, selector: "[email][formControlName],[email][formControl],[email][ngModel]", inputs: { email: "email" }, providers: [EMAIL_VALIDATOR], usesInheritance: true, ngImport: i0 }); }
|
|
6290
6299
|
}
|
|
6291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: EmailValidator, decorators: [{
|
|
6292
6301
|
type: Directive,
|
|
6293
6302
|
args: [{
|
|
6294
6303
|
selector: '[email][formControlName],[email][formControl],[email][ngModel]',
|
|
@@ -6337,10 +6346,10 @@ class MinLengthValidator extends AbstractValidatorDirective {
|
|
|
6337
6346
|
/** @internal */
|
|
6338
6347
|
this.createValidator = (minlength) => minLengthValidator(minlength);
|
|
6339
6348
|
}
|
|
6340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6341
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6349
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MinLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6350
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6342
6351
|
}
|
|
6343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MinLengthValidator, decorators: [{
|
|
6344
6353
|
type: Directive,
|
|
6345
6354
|
args: [{
|
|
6346
6355
|
selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
|
|
@@ -6390,10 +6399,10 @@ class MaxLengthValidator extends AbstractValidatorDirective {
|
|
|
6390
6399
|
/** @internal */
|
|
6391
6400
|
this.createValidator = (maxlength) => maxLengthValidator(maxlength);
|
|
6392
6401
|
}
|
|
6393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6402
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6403
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6395
6404
|
}
|
|
6396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: MaxLengthValidator, decorators: [{
|
|
6397
6406
|
type: Directive,
|
|
6398
6407
|
args: [{
|
|
6399
6408
|
selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
|
|
@@ -6445,10 +6454,10 @@ class PatternValidator extends AbstractValidatorDirective {
|
|
|
6445
6454
|
/** @internal */
|
|
6446
6455
|
this.createValidator = (input) => patternValidator(input);
|
|
6447
6456
|
}
|
|
6448
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6449
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.0-
|
|
6457
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: PatternValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6458
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.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 }); }
|
|
6450
6459
|
}
|
|
6451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: PatternValidator, decorators: [{
|
|
6452
6461
|
type: Directive,
|
|
6453
6462
|
args: [{
|
|
6454
6463
|
selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
|
|
@@ -6493,8 +6502,8 @@ const REACTIVE_DRIVEN_DIRECTIVES = [
|
|
|
6493
6502
|
* Internal module used for sharing directives between FormsModule and ReactiveFormsModule
|
|
6494
6503
|
*/
|
|
6495
6504
|
class ɵInternalFormsSharedModule {
|
|
6496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
6497
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-
|
|
6505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6506
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, declarations: [ɵNgNoValidate,
|
|
6498
6507
|
NgSelectOption,
|
|
6499
6508
|
ɵNgSelectMultipleOption,
|
|
6500
6509
|
DefaultValueAccessor,
|
|
@@ -6533,9 +6542,9 @@ class ɵInternalFormsSharedModule {
|
|
|
6533
6542
|
EmailValidator,
|
|
6534
6543
|
MinValidator,
|
|
6535
6544
|
MaxValidator] }); }
|
|
6536
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-
|
|
6545
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule }); }
|
|
6537
6546
|
}
|
|
6538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
6547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ɵInternalFormsSharedModule, decorators: [{
|
|
6539
6548
|
type: NgModule,
|
|
6540
6549
|
args: [{
|
|
6541
6550
|
declarations: SHARED_FORM_DIRECTIVES,
|
|
@@ -7189,10 +7198,10 @@ class FormBuilder {
|
|
|
7189
7198
|
return this.control(controls);
|
|
7190
7199
|
}
|
|
7191
7200
|
}
|
|
7192
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
7193
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-
|
|
7201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7202
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormBuilder, providedIn: 'root' }); }
|
|
7194
7203
|
}
|
|
7195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
7204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormBuilder, decorators: [{
|
|
7196
7205
|
type: Injectable,
|
|
7197
7206
|
args: [{ providedIn: 'root' }]
|
|
7198
7207
|
}] });
|
|
@@ -7204,10 +7213,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3",
|
|
|
7204
7213
|
* @publicApi
|
|
7205
7214
|
*/
|
|
7206
7215
|
class NonNullableFormBuilder {
|
|
7207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
7208
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-
|
|
7216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7217
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, providedIn: 'root', useFactory: () => inject(FormBuilder).nonNullable }); }
|
|
7209
7218
|
}
|
|
7210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
7219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: NonNullableFormBuilder, decorators: [{
|
|
7211
7220
|
type: Injectable,
|
|
7212
7221
|
args: [{
|
|
7213
7222
|
providedIn: 'root',
|
|
@@ -7233,10 +7242,10 @@ class UntypedFormBuilder extends FormBuilder {
|
|
|
7233
7242
|
array(controlsConfig, validatorOrOpts, asyncValidator) {
|
|
7234
7243
|
return super.array(controlsConfig, validatorOrOpts, asyncValidator);
|
|
7235
7244
|
}
|
|
7236
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
7237
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-
|
|
7245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
7246
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, providedIn: 'root' }); }
|
|
7238
7247
|
}
|
|
7239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
7248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: UntypedFormBuilder, decorators: [{
|
|
7240
7249
|
type: Injectable,
|
|
7241
7250
|
args: [{ providedIn: 'root' }]
|
|
7242
7251
|
}] });
|
|
@@ -7249,7 +7258,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-next.3",
|
|
|
7249
7258
|
/**
|
|
7250
7259
|
* @publicApi
|
|
7251
7260
|
*/
|
|
7252
|
-
const VERSION = new Version('18.1.0-
|
|
7261
|
+
const VERSION = new Version('18.1.0-rc.0');
|
|
7253
7262
|
|
|
7254
7263
|
/**
|
|
7255
7264
|
* Exports the required providers and directives for template-driven forms,
|
|
@@ -7280,11 +7289,11 @@ class FormsModule {
|
|
|
7280
7289
|
],
|
|
7281
7290
|
};
|
|
7282
7291
|
}
|
|
7283
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
7284
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-
|
|
7285
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-
|
|
7292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7293
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormsModule, declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] }); }
|
|
7294
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormsModule, imports: [ɵInternalFormsSharedModule] }); }
|
|
7286
7295
|
}
|
|
7287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
7296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: FormsModule, decorators: [{
|
|
7288
7297
|
type: NgModule,
|
|
7289
7298
|
args: [{
|
|
7290
7299
|
declarations: TEMPLATE_DRIVEN_DIRECTIVES,
|
|
@@ -7326,11 +7335,11 @@ class ReactiveFormsModule {
|
|
|
7326
7335
|
],
|
|
7327
7336
|
};
|
|
7328
7337
|
}
|
|
7329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-
|
|
7330
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-
|
|
7331
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-
|
|
7338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7339
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] }); }
|
|
7340
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, imports: [ɵInternalFormsSharedModule] }); }
|
|
7332
7341
|
}
|
|
7333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-
|
|
7342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.0-rc.0", ngImport: i0, type: ReactiveFormsModule, decorators: [{
|
|
7334
7343
|
type: NgModule,
|
|
7335
7344
|
args: [{
|
|
7336
7345
|
declarations: [REACTIVE_DRIVEN_DIRECTIVES],
|