@angular/forms 18.1.0-next.2 → 18.1.0-next.4

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.
Files changed (28) hide show
  1. package/esm2022/src/directives/abstract_form_group_directive.mjs +3 -3
  2. package/esm2022/src/directives/checkbox_value_accessor.mjs +3 -3
  3. package/esm2022/src/directives/control_value_accessor.mjs +6 -6
  4. package/esm2022/src/directives/default_value_accessor.mjs +3 -3
  5. package/esm2022/src/directives/ng_control_status.mjs +18 -7
  6. package/esm2022/src/directives/ng_form.mjs +17 -12
  7. package/esm2022/src/directives/ng_model.mjs +3 -3
  8. package/esm2022/src/directives/ng_model_group.mjs +3 -3
  9. package/esm2022/src/directives/ng_no_validate_directive.mjs +3 -3
  10. package/esm2022/src/directives/number_value_accessor.mjs +3 -3
  11. package/esm2022/src/directives/radio_control_value_accessor.mjs +6 -6
  12. package/esm2022/src/directives/range_value_accessor.mjs +3 -3
  13. package/esm2022/src/directives/reactive_directives/form_control_directive.mjs +3 -3
  14. package/esm2022/src/directives/reactive_directives/form_control_name.mjs +3 -3
  15. package/esm2022/src/directives/reactive_directives/form_group_directive.mjs +21 -12
  16. package/esm2022/src/directives/reactive_directives/form_group_name.mjs +6 -6
  17. package/esm2022/src/directives/select_control_value_accessor.mjs +6 -6
  18. package/esm2022/src/directives/select_multiple_control_value_accessor.mjs +6 -6
  19. package/esm2022/src/directives/validators.mjs +27 -27
  20. package/esm2022/src/directives.mjs +4 -4
  21. package/esm2022/src/form_builder.mjs +9 -9
  22. package/esm2022/src/form_providers.mjs +8 -8
  23. package/esm2022/src/model/abstract_model.mjs +50 -17
  24. package/esm2022/src/version.mjs +1 -1
  25. package/fesm2022/forms.mjs +210 -152
  26. package/fesm2022/forms.mjs.map +1 -1
  27. package/index.d.ts +17 -8
  28. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.1.0-next.2
2
+ * @license Angular v18.1.0-next.4
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -90,7 +90,9 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
90
90
  * These status values are mutually exclusive, so a control cannot be
91
91
  * both valid AND invalid or invalid AND disabled.
92
92
  */
93
- readonly status: FormControlStatus;
93
+ get status(): FormControlStatus;
94
+ private set status(value);
95
+ private readonly statusReactive;
94
96
  /**
95
97
  * A control is `valid` when its `status` is `VALID`.
96
98
  *
@@ -152,7 +154,9 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
152
154
  * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
153
155
  * Programmatic changes to a control's value do not mark it dirty.
154
156
  */
155
- readonly pristine: boolean;
157
+ get pristine(): boolean;
158
+ private set pristine(value);
159
+ private readonly pristineReactive;
156
160
  /**
157
161
  * A control is `dirty` if the user has changed the value
158
162
  * in the UI.
@@ -167,7 +171,9 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
167
171
  * A control is marked `touched` once the user has triggered
168
172
  * a `blur` event on it.
169
173
  */
170
- readonly touched: boolean;
174
+ get touched(): boolean;
175
+ private set touched(value);
176
+ private readonly touchedReactive;
171
177
  /**
172
178
  * True if the control has not been marked as touched
173
179
  *
@@ -2890,10 +2896,12 @@ export declare class FormGroupDirective extends ControlContainer implements Form
2890
2896
  * @description
2891
2897
  * Reports whether the form submission has been triggered.
2892
2898
  */
2893
- readonly submitted: boolean;
2899
+ get submitted(): boolean;
2900
+ private set submitted(value);
2901
+ private readonly _submittedReactive;
2894
2902
  /**
2895
- * Reference to an old form group input value, which is needed to cleanup old instance in case it
2896
- * was replaced with a new one.
2903
+ * Reference to an old form group input value, which is needed to cleanup
2904
+ * old instance in case it was replaced with a new one.
2897
2905
  */
2898
2906
  private _oldForm;
2899
2907
  /**
@@ -3835,7 +3843,8 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
3835
3843
  * @description
3836
3844
  * Returns whether the form submission has been triggered.
3837
3845
  */
3838
- readonly submitted: boolean;
3846
+ get submitted(): boolean;
3847
+ private readonly submittedReactive;
3839
3848
  private _directives;
3840
3849
  /**
3841
3850
  * @description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "18.1.0-next.2",
3
+ "version": "18.1.0-next.4",
4
4
  "description": "Angular - directives and services for creating forms",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "18.1.0-next.2",
15
- "@angular/common": "18.1.0-next.2",
16
- "@angular/platform-browser": "18.1.0-next.2",
14
+ "@angular/core": "18.1.0-next.4",
15
+ "@angular/common": "18.1.0-next.4",
16
+ "@angular/platform-browser": "18.1.0-next.4",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {