@angular/forms 21.1.1 → 21.2.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/_structure-chunk.mjs +3 -3
- package/fesm2022/_structure-chunk.mjs.map +1 -1
- package/fesm2022/forms.mjs +128 -128
- package/fesm2022/forms.mjs.map +1 -1
- package/fesm2022/signals-compat.mjs +1 -1
- package/fesm2022/signals.mjs +7 -7
- package/fesm2022/signals.mjs.map +1 -1
- package/package.json +4 -4
- package/types/_structure-chunk.d.ts +6 -5
- package/types/forms.d.ts +1 -1
- package/types/signals-compat.d.ts +1 -1
- package/types/signals.d.ts +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.
|
|
2
|
+
* @license Angular v21.2.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -49,7 +49,7 @@ interface FormFieldBindingOptions extends _FormFieldBindingOptions {
|
|
|
49
49
|
* If not specified, Signal Forms will attempt to focus the host element of the `FormField` when
|
|
50
50
|
* asked to focus this binding.
|
|
51
51
|
*/
|
|
52
|
-
focus?:
|
|
52
|
+
focus?(options?: FocusOptions): void;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* Lightweight DI token provided by the {@link FormField} directive.
|
|
@@ -102,7 +102,7 @@ declare class FormField<T> {
|
|
|
102
102
|
*/
|
|
103
103
|
registerAsBinding(bindingOptions?: FormFieldBindingOptions): void;
|
|
104
104
|
/** Focuses this UI control. */
|
|
105
|
-
focus(): void;
|
|
105
|
+
focus(options?: FocusOptions): void;
|
|
106
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormField<any>, never>;
|
|
107
107
|
static ɵdir: i0.ɵɵDirectiveDeclaration<FormField<any>, "[formField]", never, { "formField": { "alias": "formField"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
108
108
|
}
|
|
@@ -511,8 +511,9 @@ interface FieldState<TValue, TKey extends string | number = string | number> ext
|
|
|
511
511
|
/**
|
|
512
512
|
* Focuses the first UI control in the DOM that is bound to this field state.
|
|
513
513
|
* If no UI control is bound, does nothing.
|
|
514
|
+
* @param options Optional focus options to pass to the native focus() method.
|
|
514
515
|
*/
|
|
515
|
-
focusBoundControl(): void;
|
|
516
|
+
focusBoundControl(options?: FocusOptions): void;
|
|
516
517
|
}
|
|
517
518
|
/**
|
|
518
519
|
* This is FieldState also providing access to the wrapped FormControl.
|
|
@@ -1744,7 +1745,7 @@ declare class FieldNode implements FieldState<unknown> {
|
|
|
1744
1745
|
readonly fieldProxy: FieldTree<any>;
|
|
1745
1746
|
private readonly pathNode;
|
|
1746
1747
|
constructor(options: FieldNodeOptions);
|
|
1747
|
-
focusBoundControl(): void;
|
|
1748
|
+
focusBoundControl(options?: FocusOptions): void;
|
|
1748
1749
|
/**
|
|
1749
1750
|
* Gets the Field directive binding that should be focused when the developer calls
|
|
1750
1751
|
* `focusBoundControl` on this node.
|
package/types/forms.d.ts
CHANGED
package/types/signals.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.
|
|
2
|
+
* @license Angular v21.2.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -510,7 +510,7 @@ interface FormUiControl {
|
|
|
510
510
|
* If the focus method is not implemented, Signal Forms will attempt to focus the host element
|
|
511
511
|
* when asked to focus this control.
|
|
512
512
|
*/
|
|
513
|
-
focus?(): void;
|
|
513
|
+
focus?(options?: FocusOptions): void;
|
|
514
514
|
}
|
|
515
515
|
/**
|
|
516
516
|
* A contract for a form control that edits a `FieldTree` of type `TValue`. Any component that
|