@angular/forms
Advanced tools
| /** | ||
| * @license Angular v22.1.0-next.6 | ||
| * @license Angular v22.1.0-rc.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -751,3 +751,3 @@ * License: MIT | ||
| }); | ||
| pending = computed(() => this.node.structure.reduceChildren(this.asyncErrors().includes('pending'), (child, value) => value || child.validationState.asyncErrors().includes('pending')), ...(ngDevMode ? [{ | ||
| pending = computed(() => this.node.structure.reduceChildren(this.asyncErrors().includes('pending'), (child, value) => value || child.validationState.pending()), ...(ngDevMode ? [{ | ||
| debugName: "pending" | ||
@@ -754,0 +754,0 @@ }] : [])); |
| /** | ||
| * @license Angular v22.1.0-next.6 | ||
| * @license Angular v22.1.0-rc.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+18
-28
| /** | ||
| * @license Angular v22.1.0-next.6 | ||
| * @license Angular v22.1.0-rc.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -811,3 +811,3 @@ * License: MIT | ||
| function bindingUpdated(bindings, key, value) { | ||
| if (!Object.is(bindings[key], value)) { | ||
| if (bindings[key] !== value) { | ||
| bindings[key] = value; | ||
@@ -865,4 +865,4 @@ return true; | ||
| } | ||
| const parsed = parseDecimalNumber(element.value); | ||
| if (parsed === undefined) { | ||
| const parsed = Number(element.value); | ||
| if (Number.isNaN(parsed)) { | ||
| return { | ||
@@ -927,9 +927,2 @@ error: new NativeInputParseError() | ||
| } | ||
| function parseDecimalNumber(value) { | ||
| const parsed = Number(value); | ||
| if (Number.isNaN(parsed) || !Object.is(parsed, parseFloat(value))) { | ||
| return undefined; | ||
| } | ||
| return parsed; | ||
| } | ||
| function setNativeNumberControlValue(element, value) { | ||
@@ -1099,7 +1092,3 @@ if (isNaN(value)) { | ||
| const input = parent.nativeFormElement; | ||
| const bindings = createBindings(); | ||
| const parser = createParser(() => parent.state().value(), rawValue => { | ||
| bindings['controlValue'] = rawValue; | ||
| parent.state().controlValue.set(rawValue); | ||
| }, _rawValue => getNativeControlValue(input, parent.state().value, validityMonitor)); | ||
| const parser = createParser(() => parent.state().value(), rawValue => parent.state().controlValue.set(rawValue), _rawValue => getNativeControlValue(input, parent.state().value, validityMonitor)); | ||
| parseErrorsSource.set(parser.errors); | ||
@@ -1126,2 +1115,3 @@ parent.onReset = () => { | ||
| } | ||
| const bindings = createBindings(); | ||
| return () => { | ||
@@ -1150,3 +1140,3 @@ const state = parent.state(); | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1159,3 +1149,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1169,3 +1159,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1236,3 +1226,3 @@ type: InputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1245,3 +1235,3 @@ type: AnimationInputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1253,3 +1243,3 @@ type: AnimationInputValidityMonitor | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1433,3 +1423,3 @@ type: AnimationInputValidityMonitor, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1442,3 +1432,3 @@ type: FormField, | ||
| minVersion: "17.1.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| type: FormField, | ||
@@ -1477,3 +1467,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1531,3 +1521,3 @@ type: FormField, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1540,3 +1530,3 @@ type: FormRoot, | ||
| minVersion: "17.1.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| type: FormRoot, | ||
@@ -1567,3 +1557,3 @@ isStandalone: true, | ||
| minVersion: "12.0.0", | ||
| version: "22.1.0-next.6", | ||
| version: "22.1.0-rc.0", | ||
| ngImport: i0, | ||
@@ -1570,0 +1560,0 @@ type: FormRoot, |
+4
-4
| { | ||
| "name": "@angular/forms", | ||
| "version": "22.1.0-next.6", | ||
| "version": "22.1.0-rc.0", | ||
| "description": "Angular - directives and services for creating forms", | ||
@@ -20,5 +20,5 @@ "author": "angular", | ||
| "peerDependencies": { | ||
| "@angular/core": "22.1.0-next.6", | ||
| "@angular/common": "22.1.0-next.6", | ||
| "@angular/platform-browser": "22.1.0-next.6", | ||
| "@angular/core": "22.1.0-rc.0", | ||
| "@angular/common": "22.1.0-rc.0", | ||
| "@angular/platform-browser": "22.1.0-rc.0", | ||
| "rxjs": "^6.5.3 || ^7.4.0" | ||
@@ -25,0 +25,0 @@ }, |
| /** | ||
| * @license Angular v22.1.0-next.6 | ||
| * @license Angular v22.1.0-rc.0 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v22.1.0-next.6 | ||
| * @license Angular v22.1.0-rc.0 | ||
| * (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 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
1721682
-0.1%18695
-0.05%