@angular/forms 21.2.0 → 22.0.0-next.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/fesm2022/_validation_errors-chunk.mjs +1 -1
- package/fesm2022/_validation_errors-chunk.mjs.map +1 -1
- package/fesm2022/forms.mjs +153 -147
- package/fesm2022/forms.mjs.map +1 -1
- package/fesm2022/signals-compat.mjs +1 -1
- package/fesm2022/signals-compat.mjs.map +1 -1
- package/fesm2022/signals.mjs +8 -8
- package/fesm2022/signals.mjs.map +1 -1
- package/package.json +5 -5
- package/types/_structure-chunk.d.ts +1 -1
- package/types/forms.d.ts +1 -1
- package/types/signals-compat.d.ts +2 -2
- package/types/signals.d.ts +7 -3
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/forms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0-next.0",
|
|
4
4
|
"description": "Angular - directives and services for creating forms",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": "^
|
|
8
|
+
"node": "^22.22.0 || >=24.13.1"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "^2.3.0",
|
|
12
12
|
"@standard-schema/spec": "^1.0.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@angular/core": "
|
|
16
|
-
"@angular/common": "
|
|
17
|
-
"@angular/platform-browser": "
|
|
15
|
+
"@angular/core": "22.0.0-next.0",
|
|
16
|
+
"@angular/common": "22.0.0-next.0",
|
|
17
|
+
"@angular/platform-browser": "22.0.0-next.0",
|
|
18
18
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
package/types/forms.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v22.0.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -41,7 +41,7 @@ type CompatFormOptions<TModel> = Omit<FormOptions<TModel>, 'adapter'>;
|
|
|
41
41
|
* @param model A writable signal that contains the model data for the form. The resulting field
|
|
42
42
|
* structure will match the shape of the model and any changes to the form data will be written to
|
|
43
43
|
* the model.
|
|
44
|
-
|
|
44
|
+
*
|
|
45
45
|
* @category interop
|
|
46
46
|
* @experimental 21.0.0
|
|
47
47
|
*/
|
package/types/signals.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v22.0.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { Signal, ResourceRef, InputSignal, InputSignalWithTransform,
|
|
8
|
+
import { Signal, ResourceRef, InputSignal, InputSignalWithTransform, OutputRef, ModelSignal, WritableSignal } from '@angular/core';
|
|
9
9
|
import { PathKind, SchemaPath, SchemaPathRules, LogicFn, OneOrMany, ValidationError, FieldValidator, FieldContext, TreeValidationResult, TreeValidator, WithOptionalFieldTree, DisabledReason, Debouncer, FieldTree } from './_structure-chunk.js';
|
|
10
10
|
export { AsyncValidationResult, BaseNgValidationError, ChildFieldContext, CompatFieldState, CompatSchemaPath, EmailValidationError, FORM_FIELD, Field, FieldState, FormField, FormFieldBindingOptions, FormOptions, FormSubmitOptions, IgnoreUnknownProperties, ItemFieldContext, ItemType, MAX, MAX_LENGTH, MIN, MIN_LENGTH, MaxLengthValidationError, MaxValidationError, MaybeFieldTree, MaybeSchemaPathTree, MetadataKey, MetadataReducer, MetadataSetterType, MinLengthValidationError, MinValidationError, NativeInputParseError, NgValidationError, PATTERN, PatternValidationError, REQUIRED, ReadonlyArrayLike, RemoveStringIndexUnknownKey, RequiredValidationError, RootFieldContext, Schema, SchemaFn, SchemaOrSchemaFn, SchemaPathTree, SignalFormsConfig, StandardSchemaValidationError, Subfields, ValidationErrorOptions, ValidationResult, ValidationSuccess, Validator, WithField, WithFieldTree, WithOptionalField, WithoutField, WithoutFieldTree, apply, applyEach, applyWhen, applyWhenValue, createManagedMetadataKey, createMetadataKey, emailError, form, maxError, maxLengthError, metadata, minError, minLengthError, patternError, provideSignalFormsConfig, requiredError, schema, standardSchemaError, submit, validateStandardSchema, ɵNgFieldDirective } from './_structure-chunk.js';
|
|
11
11
|
import { HttpResourceRequest, HttpResourceOptions } from '@angular/common/http';
|
|
@@ -429,7 +429,7 @@ interface FormUiControl {
|
|
|
429
429
|
* An input to receive the touched status for the field. If implemented, the `Field` directive
|
|
430
430
|
* will automatically bind the touched status from the bound field to this input.
|
|
431
431
|
*/
|
|
432
|
-
readonly touched?:
|
|
432
|
+
readonly touched?: InputSignal<boolean> | InputSignalWithTransform<boolean, unknown>;
|
|
433
433
|
/**
|
|
434
434
|
* An input to receive the dirty status for the field. If implemented, the `Field` directive
|
|
435
435
|
* will automatically bind the dirty status from the bound field to this input.
|
|
@@ -470,6 +470,10 @@ interface FormUiControl {
|
|
|
470
470
|
* will automatically bind the value patterns from the bound field to this input.
|
|
471
471
|
*/
|
|
472
472
|
readonly pattern?: InputSignal<readonly RegExp[]> | InputSignalWithTransform<readonly RegExp[], unknown>;
|
|
473
|
+
/**
|
|
474
|
+
* An output to emit when the control is touched.
|
|
475
|
+
*/
|
|
476
|
+
readonly touch?: OutputRef<void>;
|
|
473
477
|
/**
|
|
474
478
|
* Focuses the UI control.
|
|
475
479
|
*
|