@angular/forms
Advanced tools
| /** | ||
| * @license Angular v22.1.0-rc.0 | ||
| * @license Angular v22.1.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -11,2 +11,4 @@ * License: MIT | ||
| const FIELD_TREE = /* @__PURE__ */Symbol('FIELD_TREE'); | ||
| let boundPathDepth = 0; | ||
@@ -935,5 +937,8 @@ function getBoundPathDepth() { | ||
| const FIELD_PROXY_HANDLER = { | ||
| get(getTgt, p, receiver) { | ||
| get(getTgt, property, receiver) { | ||
| if (property === FIELD_TREE) { | ||
| return true; | ||
| } | ||
| const tgt = getTgt(); | ||
| const child = tgt.structure.getChild(p); | ||
| const child = tgt.structure.getChild(property); | ||
| if (child !== undefined) { | ||
@@ -944,6 +949,6 @@ return child.fieldTree; | ||
| if (isArray(value)) { | ||
| if (p === 'length') { | ||
| if (property === 'length') { | ||
| return tgt.value().length; | ||
| } | ||
| if (p === Symbol.iterator) { | ||
| if (property === Symbol.iterator) { | ||
| return () => { | ||
@@ -956,3 +961,3 @@ tgt.value(); | ||
| if (isObject(value)) { | ||
| if (p === Symbol.iterator) { | ||
| if (property === Symbol.iterator) { | ||
| return function* () { | ||
@@ -1951,3 +1956,3 @@ for (const key in receiver) { | ||
| export { BasicFieldAdapter, CompatValidationError, DEBOUNCER, FieldNode, FieldNodeState, FieldNodeStructure, FieldPathNode, IS_ASYNC_VALIDATION_RESOURCE, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MetadataKey, MetadataReducer, PATTERN, REGISTER_WEBMCP_FORM, REQUIRED, addDefaultField, apply, applyEach, applyWhen, applyWhenValue, assertPathIsCurrent, calculateValidationSelfStatus, createLimitSelectionKey, createManagedMetadataKey, createMetadataKey, extractNestedReactiveErrors, form, getInjectorFromOptions, isArray, isObject, metadata, normalizeFormArgs, reactiveErrorsToSignalErrors, schema, shallowArrayEquals, signalErrorsToValidationErrors, submit }; | ||
| export { BasicFieldAdapter, CompatValidationError, DEBOUNCER, FIELD_TREE, FieldNode, FieldNodeState, FieldNodeStructure, FieldPathNode, IS_ASYNC_VALIDATION_RESOURCE, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MetadataKey, MetadataReducer, PATTERN, REGISTER_WEBMCP_FORM, REQUIRED, addDefaultField, apply, applyEach, applyWhen, applyWhenValue, assertPathIsCurrent, calculateValidationSelfStatus, createLimitSelectionKey, createManagedMetadataKey, createMetadataKey, extractNestedReactiveErrors, form, getInjectorFromOptions, isArray, isObject, metadata, normalizeFormArgs, reactiveErrorsToSignalErrors, schema, shallowArrayEquals, signalErrorsToValidationErrors, submit }; | ||
| //# sourceMappingURL=_validation_errors-chunk.mjs.map |
| /** | ||
| * @license Angular v22.1.0-rc.0 | ||
| * @license Angular v22.1.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+19
-15
| /** | ||
| * @license Angular v22.1.0-rc.0 | ||
| * @license Angular v22.1.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -10,3 +10,3 @@ * License: MIT | ||
| import { ɵFORM_CONTROL_INTEGRATION as _FORM_CONTROL_INTEGRATION, Validators, ɵsetNativeDomProperty as _setNativeDomProperty, NG_VALIDATORS, ɵisNativeFormElement as _isNativeFormElement, ɵisTextualFormElement as _isTextualFormElement, NG_VALUE_ACCESSOR, ɵselectValueAccessor as _selectValueAccessor, ɵelementAcceptsMinMax as _elementAcceptsMinMax, NgControl } from '@angular/forms'; | ||
| import { assertPathIsCurrent, FieldPathNode, addDefaultField, createMetadataKey, metadata, MAX_NUMBER, MAX, MAX_DATE, MAX_LENGTH, MIN_NUMBER, MIN, MIN_DATE, MIN_LENGTH, PATTERN, REQUIRED, createManagedMetadataKey, IS_ASYNC_VALIDATION_RESOURCE, DEBOUNCER, shallowArrayEquals, signalErrorsToValidationErrors, reactiveErrorsToSignalErrors, submit, REGISTER_WEBMCP_FORM } from './_validation_errors-chunk.mjs'; | ||
| import { FIELD_TREE, assertPathIsCurrent, FieldPathNode, addDefaultField, createMetadataKey, metadata, MAX_NUMBER, MAX, MAX_DATE, MAX_LENGTH, MIN_NUMBER, MIN, MIN_DATE, MIN_LENGTH, PATTERN, REQUIRED, createManagedMetadataKey, IS_ASYNC_VALIDATION_RESOURCE, DEBOUNCER, shallowArrayEquals, signalErrorsToValidationErrors, reactiveErrorsToSignalErrors, submit, REGISTER_WEBMCP_FORM } from './_validation_errors-chunk.mjs'; | ||
| export { MetadataKey, MetadataReducer, apply, applyEach, applyWhen, applyWhenValue, createLimitSelectionKey, form, schema } from './_validation_errors-chunk.mjs'; | ||
@@ -17,2 +17,6 @@ import { DOCUMENT } from '@angular/common'; | ||
| function isFieldTree(value) { | ||
| return typeof value === 'function' && value[FIELD_TREE] === true; | ||
| } | ||
| const SIGNAL_FORMS_CONFIG = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'SIGNAL_FORMS_CONFIG' : ''); | ||
@@ -1137,3 +1141,3 @@ | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1146,3 +1150,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1156,3 +1160,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1223,3 +1227,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1232,3 +1236,3 @@ type: AnimationInputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1240,3 +1244,3 @@ type: AnimationInputValidityMonitor | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1420,3 +1424,3 @@ type: AnimationInputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1429,3 +1433,3 @@ type: FormField, | ||
| minVersion: "17.1.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| type: FormField, | ||
@@ -1464,3 +1468,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1518,3 +1522,3 @@ type: FormField, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1527,3 +1531,3 @@ type: FormRoot, | ||
| minVersion: "17.1.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| type: FormRoot, | ||
@@ -1554,3 +1558,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-rc.0", | ||
| version: "22.1.0", | ||
| ngImport: i0, | ||
@@ -1675,3 +1679,3 @@ type: FormRoot, | ||
| export { BaseNgValidationError, EmailValidationError, FORM_FIELD, FormField, FormRoot, IS_ASYNC_VALIDATION_RESOURCE, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MaxDateValidationError, MaxLengthValidationError, MaxValidationError, MinDateValidationError, MinLengthValidationError, MinValidationError, NativeInputParseError, NgValidationError, PATTERN, PatternValidationError, REQUIRED, RequiredValidationError, StandardSchemaValidationError, createManagedMetadataKey, createMetadataKey, debounce, disabled, email, emailError, hidden, max, maxDate, maxDateError, maxError, maxLength, maxLengthError, metadata, min, minDate, minDateError, minError, minLength, minLengthError, pattern, patternError, provideExperimentalWebMcpForms, provideSignalFormsConfig, readonly, required, requiredError, standardSchemaError, submit, transformedValue, validate, validateAsync, validateHttp, validateStandardSchema, validateTree, ɵNgFieldDirective }; | ||
| export { BaseNgValidationError, EmailValidationError, FORM_FIELD, FormField, FormRoot, IS_ASYNC_VALIDATION_RESOURCE, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MaxDateValidationError, MaxLengthValidationError, MaxValidationError, MinDateValidationError, MinLengthValidationError, MinValidationError, NativeInputParseError, NgValidationError, PATTERN, PatternValidationError, REQUIRED, RequiredValidationError, StandardSchemaValidationError, createManagedMetadataKey, createMetadataKey, debounce, disabled, email, emailError, hidden, isFieldTree, max, maxDate, maxDateError, maxError, maxLength, maxLengthError, metadata, min, minDate, minDateError, minError, minLength, minLengthError, pattern, patternError, provideExperimentalWebMcpForms, provideSignalFormsConfig, readonly, required, requiredError, standardSchemaError, submit, transformedValue, validate, validateAsync, validateHttp, validateStandardSchema, validateTree, ɵNgFieldDirective }; | ||
| //# sourceMappingURL=signals.mjs.map |
+4
-4
| { | ||
| "name": "@angular/forms", | ||
| "version": "22.1.0-rc.0", | ||
| "version": "22.1.0", | ||
| "description": "Angular - directives and services for creating forms", | ||
@@ -20,5 +20,5 @@ "author": "angular", | ||
| "peerDependencies": { | ||
| "@angular/core": "22.1.0-rc.0", | ||
| "@angular/common": "22.1.0-rc.0", | ||
| "@angular/platform-browser": "22.1.0-rc.0", | ||
| "@angular/core": "22.1.0", | ||
| "@angular/common": "22.1.0", | ||
| "@angular/platform-browser": "22.1.0", | ||
| "rxjs": "^6.5.3 || ^7.4.0" | ||
@@ -25,0 +25,0 @@ }, |
| /** | ||
| * @license Angular v22.1.0-rc.0 | ||
| * @license Angular v22.1.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+12
-4
| /** | ||
| * @license Angular v22.1.0-rc.0 | ||
| * @license Angular v22.1.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -7,6 +7,6 @@ * License: MIT | ||
| import { PathKind, SchemaPath, SchemaPathRules, LogicFn, OneOrMany, ValidationError, FieldValidator, FieldContext, TreeValidationResult, TreeValidator, FieldTree, WithOptionalFieldTree, DisabledReason, Debouncer } from './_structure-chunk.js'; | ||
| export { AsyncValidationResult, BaseNgValidationError, ChildFieldContext, CompatFieldState, CompatSchemaPath, EmailValidationError, FORM_FIELD, Field, FieldState, FieldStateByMode, FormField, FormFieldBinding, FormFieldBindingOptions, FormOptions, FormSubmitOptions, IS_ASYNC_VALIDATION_RESOURCE, IgnoreUnknownProperties, ItemFieldContext, ItemType, LimitKey, LimitSelectionKey, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MarkAsTouchedOptions, MaxDateValidationError, MaxLengthValidationError, MaxValidationError, MaybeFieldTree, MaybeSchemaPathTree, MetadataKey, MetadataReducer, MetadataSetterType, MinDateValidationError, MinLengthValidationError, MinValidationError, NativeInputParseError, NgValidationError, PATTERN, PatternValidationError, REQUIRED, ReadonlyArrayLike, ReadonlyCompatFieldState, ReadonlyFieldState, ReadonlyFieldTree, RemoveStringIndexUnknownKey, RequiredValidationError, RootFieldContext, Schema, SchemaFn, SchemaOrSchemaFn, SchemaPathTree, SignalFormsConfig, StandardSchemaValidationError, Subfields, ValidationErrorOptions, ValidationResult, ValidationSuccess, Validator, WithFieldTree, WithoutFieldTree, apply, applyEach, applyWhen, applyWhenValue, createLimitSelectionKey, createManagedMetadataKey, createMetadataKey, emailError, form, maxDateError, maxError, maxLengthError, metadata, minDateError, minError, minLengthError, patternError, provideSignalFormsConfig, requiredError, schema, standardSchemaError, submit, validateStandardSchema, ɵNgFieldDirective } from './_structure-chunk.js'; | ||
| import * as i0 from '@angular/core'; | ||
| import { DebounceTimer, Signal, Resource, InputSignal, InputSignalWithTransform, OutputRef, ModelSignal, WritableSignal, EnvironmentProviders } from '@angular/core'; | ||
| import { PathKind, SchemaPath, SchemaPathRules, LogicFn, OneOrMany, ValidationError, FieldValidator, FieldContext, TreeValidationResult, TreeValidator, WithOptionalFieldTree, DisabledReason, Debouncer, FieldTree } from './_structure-chunk.js'; | ||
| export { AsyncValidationResult, BaseNgValidationError, ChildFieldContext, CompatFieldState, CompatSchemaPath, EmailValidationError, FORM_FIELD, Field, FieldState, FieldStateByMode, FormField, FormFieldBinding, FormFieldBindingOptions, FormOptions, FormSubmitOptions, IS_ASYNC_VALIDATION_RESOURCE, IgnoreUnknownProperties, ItemFieldContext, ItemType, LimitKey, LimitSelectionKey, MAX, MAX_DATE, MAX_LENGTH, MAX_NUMBER, MIN, MIN_DATE, MIN_LENGTH, MIN_NUMBER, MarkAsTouchedOptions, MaxDateValidationError, MaxLengthValidationError, MaxValidationError, MaybeFieldTree, MaybeSchemaPathTree, MetadataKey, MetadataReducer, MetadataSetterType, MinDateValidationError, MinLengthValidationError, MinValidationError, NativeInputParseError, NgValidationError, PATTERN, PatternValidationError, REQUIRED, ReadonlyArrayLike, ReadonlyCompatFieldState, ReadonlyFieldState, ReadonlyFieldTree, RemoveStringIndexUnknownKey, RequiredValidationError, RootFieldContext, Schema, SchemaFn, SchemaOrSchemaFn, SchemaPathTree, SignalFormsConfig, StandardSchemaValidationError, Subfields, ValidationErrorOptions, ValidationResult, ValidationSuccess, Validator, WithFieldTree, WithoutFieldTree, apply, applyEach, applyWhen, applyWhenValue, createLimitSelectionKey, createManagedMetadataKey, createMetadataKey, emailError, form, maxDateError, maxError, maxLengthError, metadata, minDateError, minError, minLengthError, patternError, provideSignalFormsConfig, requiredError, schema, standardSchemaError, submit, validateStandardSchema, ɵNgFieldDirective } from './_structure-chunk.js'; | ||
| import { HttpResourceRequest, HttpResourceOptions } from '@angular/common/http'; | ||
@@ -499,2 +499,10 @@ import '@angular/forms'; | ||
| /** | ||
| * Asserts whether a value is a `FieldTree`. | ||
| * @param value Value to be checked. | ||
| * | ||
| * @publicApi 22.1 | ||
| */ | ||
| declare function isFieldTree(value: unknown): value is FieldTree<unknown>; | ||
| /** | ||
| * The base set of properties shared by all form control contracts. | ||
@@ -816,3 +824,3 @@ * | ||
| export { Debouncer, DisabledReason, FieldContext, FieldTree, FieldValidator, FormRoot, LogicFn, OneOrMany, PathKind, SchemaPath, SchemaPathRules, TreeValidationResult, TreeValidator, ValidationError, WithOptionalFieldTree, debounce, disabled, email, hidden, max, maxDate, maxLength, min, minDate, minLength, pattern, provideExperimentalWebMcpForms, readonly, required, transformedValue, validate, validateAsync, validateHttp, validateTree }; | ||
| export { Debouncer, DisabledReason, FieldContext, FieldTree, FieldValidator, FormRoot, LogicFn, OneOrMany, PathKind, SchemaPath, SchemaPathRules, TreeValidationResult, TreeValidator, ValidationError, WithOptionalFieldTree, debounce, disabled, email, hidden, isFieldTree, max, maxDate, maxLength, min, minDate, minLength, pattern, provideExperimentalWebMcpForms, readonly, required, transformedValue, validate, validateAsync, validateHttp, validateTree }; | ||
| export type { AsyncValidatorOptions, FormCheckboxControl, FormUiControl, FormValueControl, HttpValidatorOptions, MapToErrorsFn, ParseResult, TransformedValueOptions, TransformedValueSignal }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
1721968
0.02%18709
0.07%2
-33.33%