@angular/forms 15.1.0 → 15.1.1
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 +5 -5
- 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 +5 -5
- package/esm2020/src/directives/ng_model.mjs +5 -5
- 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 +5 -5
- package/esm2020/src/directives/radio_control_value_accessor.mjs +12 -12
- package/esm2020/src/directives/range_value_accessor.mjs +5 -5
- package/esm2020/src/directives/reactive_directives/form_control_directive.mjs +5 -5
- package/esm2020/src/directives/reactive_directives/form_control_name.mjs +5 -5
- package/esm2020/src/directives/reactive_directives/form_group_directive.mjs +5 -5
- package/esm2020/src/directives/reactive_directives/form_group_name.mjs +8 -8
- package/esm2020/src/directives/select_control_value_accessor.mjs +8 -8
- package/esm2020/src/directives/select_multiple_control_value_accessor.mjs +8 -8
- package/esm2020/src/directives/validators.mjs +28 -28
- 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 +126 -126
- package/fesm2015/forms.mjs.map +1 -1
- package/fesm2020/forms.mjs +126 -126
- package/fesm2020/forms.mjs.map +1 -1
- package/index.d.ts +6 -42
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.
|
|
2
|
+
* @license Angular v15.1.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -17,9 +17,9 @@ import { Observable } from 'rxjs';
|
|
|
17
17
|
import { OnChanges } from '@angular/core';
|
|
18
18
|
import { OnDestroy } from '@angular/core';
|
|
19
19
|
import { OnInit } from '@angular/core';
|
|
20
|
+
import { Provider } from '@angular/core';
|
|
20
21
|
import { Renderer2 } from '@angular/core';
|
|
21
22
|
import { SimpleChanges } from '@angular/core';
|
|
22
|
-
import { StaticProvider } from '@angular/core';
|
|
23
23
|
import { Type } from '@angular/core';
|
|
24
24
|
import { Version } from '@angular/core';
|
|
25
25
|
|
|
@@ -1056,9 +1056,7 @@ declare const CALL_SET_DISABLED_STATE: InjectionToken<SetDisabledStateOption>;
|
|
|
1056
1056
|
* @description
|
|
1057
1057
|
* Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
|
|
1058
1058
|
*/
|
|
1059
|
-
declare const CHECKBOX_REQUIRED_VALIDATOR:
|
|
1060
|
-
|
|
1061
|
-
declare const CHECKBOX_VALUE_ACCESSOR: any;
|
|
1059
|
+
declare const CHECKBOX_REQUIRED_VALIDATOR: Provider;
|
|
1062
1060
|
|
|
1063
1061
|
/**
|
|
1064
1062
|
* @description
|
|
@@ -1160,8 +1158,6 @@ export declare abstract class ControlContainer extends AbstractControlDirective
|
|
|
1160
1158
|
get path(): string[] | null;
|
|
1161
1159
|
}
|
|
1162
1160
|
|
|
1163
|
-
declare const controlNameBinding: any;
|
|
1164
|
-
|
|
1165
1161
|
/**
|
|
1166
1162
|
* @description
|
|
1167
1163
|
* Defines an interface that acts as a bridge between the Angular forms API and a
|
|
@@ -2234,10 +2230,6 @@ export declare interface FormControl<TValue = any> extends AbstractControl<TValu
|
|
|
2234
2230
|
|
|
2235
2231
|
export declare const FormControl: ɵFormControlCtor;
|
|
2236
2232
|
|
|
2237
|
-
declare const formControlBinding: any;
|
|
2238
|
-
|
|
2239
|
-
declare const formControlBinding_2: any;
|
|
2240
|
-
|
|
2241
2233
|
/**
|
|
2242
2234
|
* @description
|
|
2243
2235
|
* Synchronizes a standalone `FormControl` instance to a form control element.
|
|
@@ -2450,10 +2442,6 @@ export declare interface FormControlState<T> {
|
|
|
2450
2442
|
*/
|
|
2451
2443
|
export declare type FormControlStatus = 'VALID' | 'INVALID' | 'PENDING' | 'DISABLED';
|
|
2452
2444
|
|
|
2453
|
-
declare const formDirectiveProvider: any;
|
|
2454
|
-
|
|
2455
|
-
declare const formDirectiveProvider_2: any;
|
|
2456
|
-
|
|
2457
2445
|
/**
|
|
2458
2446
|
* Tracks the value and validity state of a group of `FormControl` instances.
|
|
2459
2447
|
*
|
|
@@ -3050,8 +3038,6 @@ export declare class FormGroupName extends AbstractFormGroupDirective implements
|
|
|
3050
3038
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormGroupName, "[formGroupName]", never, { "name": "formGroupName"; }, {}, never, never, false, never>;
|
|
3051
3039
|
}
|
|
3052
3040
|
|
|
3053
|
-
declare const formGroupNameProvider: any;
|
|
3054
|
-
|
|
3055
3041
|
declare type FormHooks = 'change' | 'blur' | 'submit';
|
|
3056
3042
|
|
|
3057
3043
|
/**
|
|
@@ -3226,14 +3212,12 @@ declare namespace i10 {
|
|
|
3226
3212
|
|
|
3227
3213
|
declare namespace i1_2 {
|
|
3228
3214
|
export {
|
|
3229
|
-
formControlBinding,
|
|
3230
3215
|
NgModel
|
|
3231
3216
|
}
|
|
3232
3217
|
}
|
|
3233
3218
|
|
|
3234
3219
|
declare namespace i2 {
|
|
3235
3220
|
export {
|
|
3236
|
-
SELECT_VALUE_ACCESSOR,
|
|
3237
3221
|
SelectControlValueAccessor,
|
|
3238
3222
|
NgSelectOption
|
|
3239
3223
|
}
|
|
@@ -3248,7 +3232,6 @@ declare namespace i2_2 {
|
|
|
3248
3232
|
|
|
3249
3233
|
declare namespace i3 {
|
|
3250
3234
|
export {
|
|
3251
|
-
SELECT_MULTIPLE_VALUE_ACCESSOR,
|
|
3252
3235
|
SelectMultipleControlValueAccessor,
|
|
3253
3236
|
ɵNgSelectMultipleOption,
|
|
3254
3237
|
ɵNgSelectMultipleOption as NgSelectMultipleOption
|
|
@@ -3257,7 +3240,6 @@ declare namespace i3 {
|
|
|
3257
3240
|
|
|
3258
3241
|
declare namespace i3_2 {
|
|
3259
3242
|
export {
|
|
3260
|
-
formDirectiveProvider,
|
|
3261
3243
|
NgForm
|
|
3262
3244
|
}
|
|
3263
3245
|
}
|
|
@@ -3305,7 +3287,6 @@ declare namespace i4_2 {
|
|
|
3305
3287
|
|
|
3306
3288
|
declare namespace i5 {
|
|
3307
3289
|
export {
|
|
3308
|
-
NUMBER_VALUE_ACCESSOR,
|
|
3309
3290
|
NumberValueAccessor
|
|
3310
3291
|
}
|
|
3311
3292
|
}
|
|
@@ -3313,42 +3294,36 @@ declare namespace i5 {
|
|
|
3313
3294
|
declare namespace i5_2 {
|
|
3314
3295
|
export {
|
|
3315
3296
|
NG_MODEL_WITH_FORM_CONTROL_WARNING,
|
|
3316
|
-
formControlBinding_2 as formControlBinding,
|
|
3317
3297
|
FormControlDirective
|
|
3318
3298
|
}
|
|
3319
3299
|
}
|
|
3320
3300
|
|
|
3321
3301
|
declare namespace i6 {
|
|
3322
3302
|
export {
|
|
3323
|
-
RANGE_VALUE_ACCESSOR,
|
|
3324
3303
|
RangeValueAccessor
|
|
3325
3304
|
}
|
|
3326
3305
|
}
|
|
3327
3306
|
|
|
3328
3307
|
declare namespace i6_2 {
|
|
3329
3308
|
export {
|
|
3330
|
-
formDirectiveProvider_2 as formDirectiveProvider,
|
|
3331
3309
|
FormGroupDirective
|
|
3332
3310
|
}
|
|
3333
3311
|
}
|
|
3334
3312
|
|
|
3335
3313
|
declare namespace i7 {
|
|
3336
3314
|
export {
|
|
3337
|
-
CHECKBOX_VALUE_ACCESSOR,
|
|
3338
3315
|
CheckboxControlValueAccessor
|
|
3339
3316
|
}
|
|
3340
3317
|
}
|
|
3341
3318
|
|
|
3342
3319
|
declare namespace i7_2 {
|
|
3343
3320
|
export {
|
|
3344
|
-
controlNameBinding,
|
|
3345
3321
|
FormControlName
|
|
3346
3322
|
}
|
|
3347
3323
|
}
|
|
3348
3324
|
|
|
3349
3325
|
declare namespace i8 {
|
|
3350
3326
|
export {
|
|
3351
|
-
RADIO_VALUE_ACCESSOR,
|
|
3352
3327
|
RadioControlRegistryModule,
|
|
3353
3328
|
RadioControlRegistry,
|
|
3354
3329
|
RadioControlValueAccessor
|
|
@@ -3357,7 +3332,6 @@ declare namespace i8 {
|
|
|
3357
3332
|
|
|
3358
3333
|
declare namespace i8_2 {
|
|
3359
3334
|
export {
|
|
3360
|
-
formGroupNameProvider,
|
|
3361
3335
|
FormGroupName,
|
|
3362
3336
|
formArrayNameProvider,
|
|
3363
3337
|
FormArrayName
|
|
@@ -3416,7 +3390,7 @@ declare const MAX_LENGTH_VALIDATOR: any;
|
|
|
3416
3390
|
* @description
|
|
3417
3391
|
* Provider which adds `MaxValidator` to the `NG_VALIDATORS` multi-provider list.
|
|
3418
3392
|
*/
|
|
3419
|
-
declare const MAX_VALIDATOR:
|
|
3393
|
+
declare const MAX_VALIDATOR: Provider;
|
|
3420
3394
|
|
|
3421
3395
|
/**
|
|
3422
3396
|
* A directive that adds max length validation to controls marked with the
|
|
@@ -3490,7 +3464,7 @@ declare const MIN_LENGTH_VALIDATOR: any;
|
|
|
3490
3464
|
* @description
|
|
3491
3465
|
* Provider which adds `MinValidator` to the `NG_VALIDATORS` multi-provider list.
|
|
3492
3466
|
*/
|
|
3493
|
-
declare const MIN_VALIDATOR:
|
|
3467
|
+
declare const MIN_VALIDATOR: Provider;
|
|
3494
3468
|
|
|
3495
3469
|
/**
|
|
3496
3470
|
* A directive that adds minimum length validation to controls marked with the
|
|
@@ -4222,8 +4196,6 @@ export declare abstract class NonNullableFormBuilder {
|
|
|
4222
4196
|
static ɵprov: i0.ɵɵInjectableDeclaration<NonNullableFormBuilder>;
|
|
4223
4197
|
}
|
|
4224
4198
|
|
|
4225
|
-
declare const NUMBER_VALUE_ACCESSOR: any;
|
|
4226
|
-
|
|
4227
4199
|
/**
|
|
4228
4200
|
* @description
|
|
4229
4201
|
* The `ControlValueAccessor` for writing a number value and listening to number input changes.
|
|
@@ -4320,8 +4292,6 @@ declare interface PermissiveAbstractControlOptions extends Omit<AbstractControlO
|
|
|
4320
4292
|
*/
|
|
4321
4293
|
declare type PermissiveControlConfig<T> = Array<T | FormControlState<T> | ValidatorConfig>;
|
|
4322
4294
|
|
|
4323
|
-
declare const RADIO_VALUE_ACCESSOR: any;
|
|
4324
|
-
|
|
4325
4295
|
/**
|
|
4326
4296
|
* @description
|
|
4327
4297
|
* Class used by Angular to track radio buttons. For internal use only.
|
|
@@ -4433,8 +4403,6 @@ export declare class RadioControlValueAccessor extends BuiltInControlValueAccess
|
|
|
4433
4403
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RadioControlValueAccessor, "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", never, { "name": "name"; "formControlName": "formControlName"; "value": "value"; }, {}, never, never, false, never>;
|
|
4434
4404
|
}
|
|
4435
4405
|
|
|
4436
|
-
declare const RANGE_VALUE_ACCESSOR: StaticProvider;
|
|
4437
|
-
|
|
4438
4406
|
/**
|
|
4439
4407
|
* @description
|
|
4440
4408
|
* The `ControlValueAccessor` for writing a range value and listening to range input changes.
|
|
@@ -4513,7 +4481,7 @@ export declare class ReactiveFormsModule {
|
|
|
4513
4481
|
* @description
|
|
4514
4482
|
* Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
|
|
4515
4483
|
*/
|
|
4516
|
-
declare const REQUIRED_VALIDATOR:
|
|
4484
|
+
declare const REQUIRED_VALIDATOR: Provider;
|
|
4517
4485
|
|
|
4518
4486
|
/**
|
|
4519
4487
|
* @description
|
|
@@ -4546,10 +4514,6 @@ export declare class RequiredValidator extends AbstractValidatorDirective {
|
|
|
4546
4514
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredValidator, ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", never, { "required": "required"; }, {}, never, never, false, never>;
|
|
4547
4515
|
}
|
|
4548
4516
|
|
|
4549
|
-
declare const SELECT_MULTIPLE_VALUE_ACCESSOR: StaticProvider;
|
|
4550
|
-
|
|
4551
|
-
declare const SELECT_VALUE_ACCESSOR: StaticProvider;
|
|
4552
|
-
|
|
4553
4517
|
/**
|
|
4554
4518
|
* @description
|
|
4555
4519
|
* The `ControlValueAccessor` for writing select control values and listening to select control
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "15.1.
|
|
3
|
+
"version": "15.1.1",
|
|
4
4
|
"description": "Angular - directives and services for creating forms",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "15.1.
|
|
15
|
-
"@angular/common": "15.1.
|
|
16
|
-
"@angular/platform-browser": "15.1.
|
|
14
|
+
"@angular/core": "15.1.1",
|
|
15
|
+
"@angular/common": "15.1.1",
|
|
16
|
+
"@angular/platform-browser": "15.1.1",
|
|
17
17
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|