🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@angular/forms

Package Overview
Dependencies
Maintainers
2
Versions
1039
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/forms - npm Package Compare versions

Comparing version
22.0.0-next.6
to
22.0.0-next.7
+1
-1
fesm2022/_validation_errors-chunk.mjs
/**
* @license Angular v22.0.0-next.6
* @license Angular v22.0.0-next.7
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.0-next.6
* @license Angular v22.0.0-next.7
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.0-next.6
* @license Angular v22.0.0-next.7
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -9,3 +9,3 @@ * License: MIT

import { InjectionToken, debounced, resource, ɵisPromise as _isPromise, linkedSignal, inject, ɵRuntimeError as _RuntimeError, untracked, CSP_NONCE, PLATFORM_ID, Injectable, forwardRef, input, computed, Renderer2, DestroyRef, Injector, ElementRef, signal, afterRenderEffect, effect, ɵformatRuntimeError as _formatRuntimeError, Directive } from '@angular/core';
import { ɵFORM_FIELD_PARSE_ERRORS as _FORM_FIELD_PARSE_ERRORS, Validators, ɵsetNativeDomProperty as _setNativeDomProperty, ɵisNativeFormElement as _isNativeFormElement, ɵisNumericFormElement as _isNumericFormElement, ɵisTextualFormElement as _isTextualFormElement, NG_VALUE_ACCESSOR, NgControl } from '@angular/forms';
import { ɵFORM_FIELD_PARSE_ERRORS as _FORM_FIELD_PARSE_ERRORS, Validators, ɵsetNativeDomProperty as _setNativeDomProperty, ɵisNativeFormElement as _isNativeFormElement, ɵisTextualFormElement as _isTextualFormElement, NG_VALUE_ACCESSOR, ɵselectValueAccessor as _selectValueAccessor, ɵisNumericFormElement as _isNumericFormElement, NgControl } from '@angular/forms';
import { assertPathIsCurrent, FieldPathNode, addDefaultField, metadata, createMetadataKey, MAX, MAX_LENGTH, MIN, MIN_LENGTH, PATTERN, REQUIRED, createManagedMetadataKey, IS_ASYNC_VALIDATION_RESOURCE, DEBOUNCER, signalErrorsToValidationErrors, submit } from './_validation_errors-chunk.mjs';

@@ -814,6 +814,9 @@ export { MetadataKey, MetadataReducer, apply, applyEach, applyWhen, applyWhenValue, form, schema } from './_validation_errors-chunk.mjs';

function cvaControlCreate(host, parent) {
parent.controlValueAccessor.registerOnChange(value => parent.state().controlValue.set(value));
const bindings = createBindings();
parent.controlValueAccessor.registerOnChange(value => {
bindings['controlValue'] = value;
parent.state().controlValue.set(value);
});
parent.controlValueAccessor.registerOnTouched(() => parent.state().markAsTouched());
parent.registerAsBinding();
const bindings = createBindings();
return () => {

@@ -922,3 +925,3 @@ const fieldState = parent.state();

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -931,3 +934,3 @@ type: InputValidityMonitor,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -941,3 +944,3 @@ type: InputValidityMonitor,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1005,3 +1008,3 @@ type: InputValidityMonitor,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1014,3 +1017,3 @@ type: AnimationInputValidityMonitor,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1022,3 +1025,3 @@ type: AnimationInputValidityMonitor

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1048,4 +1051,4 @@ type: AnimationInputValidityMonitor,

elementIsNativeFormElement = _isNativeFormElement(this.element);
elementAcceptsNumericValues = _isNumericFormElement(this.element);
elementAcceptsTextualValues = _isTextualFormElement(this.element);
_elementAcceptsNumericValues;
nativeFormElement = this.elementIsNativeFormElement ? this.element : undefined;

@@ -1080,3 +1083,6 @@ focuser = options => this.element.focus(options);

get controlValueAccessor() {
return this.controlValueAccessors?.[0] ?? this.interopNgControl?.valueAccessor ?? undefined;
if (!this.controlValueAccessors || this.controlValueAccessors.length === 0) {
return this.interopNgControl?.valueAccessor ?? undefined;
}
return _selectValueAccessor(this.interopNgControl, this.controlValueAccessors) ?? undefined;
}

@@ -1162,3 +1168,3 @@ installClassBindingEffect() {

case 'max':
return this.elementAcceptsNumericValues;
return this._elementAcceptsNumericValues ??= _isNumericFormElement(this.element);
case 'minLength':

@@ -1178,3 +1184,3 @@ case 'maxLength':

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1187,3 +1193,3 @@ type: FormField,

minVersion: "17.1.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
type: FormField,

@@ -1220,3 +1226,3 @@ isStandalone: true,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1272,3 +1278,3 @@ type: FormField,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1281,3 +1287,3 @@ type: FormRoot,

minVersion: "17.1.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
type: FormRoot,

@@ -1308,3 +1314,3 @@ isStandalone: true,

minVersion: "12.0.0",
version: "22.0.0-next.6",
version: "22.0.0-next.7",
ngImport: i0,

@@ -1311,0 +1317,0 @@ type: FormRoot,

{
"name": "@angular/forms",
"version": "22.0.0-next.6",
"version": "22.0.0-next.7",
"description": "Angular - directives and services for creating forms",

@@ -15,5 +15,5 @@ "author": "angular",

"peerDependencies": {
"@angular/core": "22.0.0-next.6",
"@angular/common": "22.0.0-next.6",
"@angular/platform-browser": "22.0.0-next.6",
"@angular/core": "22.0.0-next.7",
"@angular/common": "22.0.0-next.7",
"@angular/platform-browser": "22.0.0-next.7",
"rxjs": "^6.5.3 || ^7.4.0"

@@ -20,0 +20,0 @@ },

/**
* @license Angular v22.0.0-next.6
* @license Angular v22.0.0-next.7
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

/**
* @license Angular v22.0.0-next.6
* @license Angular v22.0.0-next.7
* (c) 2010-2026 Google LLC. https://angular.dev/

@@ -4,0 +4,0 @@ * License: MIT

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