@angular/forms 18.1.0-next.1 → 18.1.0-next.3

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 +54 -30
  24. package/esm2022/src/version.mjs +1 -1
  25. package/fesm2022/forms.mjs +214 -165
  26. package/fesm2022/forms.mjs.map +1 -1
  27. package/index.d.ts +14 -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.1
2
+ * @license Angular v18.1.0-next.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -90,7 +90,8 @@ 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 readonly statusReactive;
94
95
  /**
95
96
  * A control is `valid` when its `status` is `VALID`.
96
97
  *
@@ -152,7 +153,8 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
152
153
  * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
153
154
  * Programmatic changes to a control's value do not mark it dirty.
154
155
  */
155
- readonly pristine: boolean;
156
+ get pristine(): boolean;
157
+ private readonly pristineReactive;
156
158
  /**
157
159
  * A control is `dirty` if the user has changed the value
158
160
  * in the UI.
@@ -167,7 +169,8 @@ export declare abstract class AbstractControl<TValue = any, TRawValue extends TV
167
169
  * A control is marked `touched` once the user has triggered
168
170
  * a `blur` event on it.
169
171
  */
170
- readonly touched: boolean;
172
+ get touched(): boolean;
173
+ private readonly touchedReactive;
171
174
  /**
172
175
  * True if the control has not been marked as touched
173
176
  *
@@ -2890,10 +2893,12 @@ export declare class FormGroupDirective extends ControlContainer implements Form
2890
2893
  * @description
2891
2894
  * Reports whether the form submission has been triggered.
2892
2895
  */
2893
- readonly submitted: boolean;
2896
+ get submitted(): boolean;
2897
+ private set submitted(value);
2898
+ private readonly _submittedReactive;
2894
2899
  /**
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.
2900
+ * Reference to an old form group input value, which is needed to cleanup
2901
+ * old instance in case it was replaced with a new one.
2897
2902
  */
2898
2903
  private _oldForm;
2899
2904
  /**
@@ -3835,7 +3840,8 @@ export declare class NgForm extends ControlContainer implements Form, AfterViewI
3835
3840
  * @description
3836
3841
  * Returns whether the form submission has been triggered.
3837
3842
  */
3838
- readonly submitted: boolean;
3843
+ get submitted(): boolean;
3844
+ private readonly submittedReactive;
3839
3845
  private _directives;
3840
3846
  /**
3841
3847
  * @description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "18.1.0-next.1",
3
+ "version": "18.1.0-next.3",
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.1",
15
- "@angular/common": "18.1.0-next.1",
16
- "@angular/platform-browser": "18.1.0-next.1",
14
+ "@angular/core": "18.1.0-next.3",
15
+ "@angular/common": "18.1.0-next.3",
16
+ "@angular/platform-browser": "18.1.0-next.3",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {