@angular/forms 18.0.0-rc.1 → 18.0.0-rc.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 (29) 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 +6 -6
  6. package/esm2022/src/directives/ng_form.mjs +3 -3
  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 +7 -4
  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 +10 -11
  22. package/esm2022/src/form_providers.mjs +8 -8
  23. package/esm2022/src/forms.mjs +2 -2
  24. package/esm2022/src/model/abstract_model.mjs +48 -43
  25. package/esm2022/src/version.mjs +1 -1
  26. package/fesm2022/forms.mjs +172 -166
  27. package/fesm2022/forms.mjs.map +1 -1
  28. package/index.d.ts +25 -6
  29. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-rc.1
2
+ * @license Angular v18.0.0-rc.3
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -3208,6 +3208,16 @@ export declare interface FormRecord<TControl> {
3208
3208
  };
3209
3209
  }
3210
3210
 
3211
+ /**
3212
+ * Event fired when a form is reset.
3213
+ *
3214
+ * @publicApi
3215
+ */
3216
+ export declare class FormResetEvent extends ControlEvent {
3217
+ readonly source: AbstractControl;
3218
+ constructor(source: AbstractControl);
3219
+ }
3220
+
3211
3221
  /**
3212
3222
  * Exports the required providers and directives for template-driven forms,
3213
3223
  * making them available for import by NgModules that import this module.
@@ -3234,6 +3244,16 @@ export declare class FormsModule {
3234
3244
  static ɵinj: i0.ɵɵInjectorDeclaration<FormsModule>;
3235
3245
  }
3236
3246
 
3247
+ /**
3248
+ * Event fired when a form is submitted
3249
+ *
3250
+ * @publicApi
3251
+ */
3252
+ export declare class FormSubmittedEvent extends ControlEvent {
3253
+ readonly source: AbstractControl;
3254
+ constructor(source: AbstractControl);
3255
+ }
3256
+
3237
3257
  declare namespace i1 {
3238
3258
  export {
3239
3259
  ɵNgNoValidate,
@@ -4351,9 +4371,8 @@ declare type PermissiveControlConfig<T> = Array<T | FormControlState<T> | Valida
4351
4371
  /**
4352
4372
  * Event fired when the control's pristine state changes (pristine <=> dirty).
4353
4373
  *
4354
- * @publicApi
4355
- */
4356
- export declare class PristineEvent extends ControlEvent {
4374
+ * @publicApi */
4375
+ export declare class PristineChangeEvent extends ControlEvent {
4357
4376
  readonly pristine: boolean;
4358
4377
  readonly source: AbstractControl;
4359
4378
  constructor(pristine: boolean, source: AbstractControl);
@@ -4729,7 +4748,7 @@ declare const SHARED_FORM_DIRECTIVES: Type<any>[];
4729
4748
  *
4730
4749
  * @publicApi
4731
4750
  */
4732
- export declare class StatusEvent extends ControlEvent {
4751
+ export declare class StatusChangeEvent extends ControlEvent {
4733
4752
  readonly status: FormControlStatus;
4734
4753
  readonly source: AbstractControl;
4735
4754
  constructor(status: FormControlStatus, source: AbstractControl);
@@ -4742,7 +4761,7 @@ declare const TEMPLATE_DRIVEN_DIRECTIVES: Type<any>[];
4742
4761
  *
4743
4762
  * @publicApi
4744
4763
  */
4745
- export declare class TouchedEvent extends ControlEvent {
4764
+ export declare class TouchedChangeEvent extends ControlEvent {
4746
4765
  readonly touched: boolean;
4747
4766
  readonly source: AbstractControl;
4748
4767
  constructor(touched: boolean, source: AbstractControl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/forms",
3
- "version": "18.0.0-rc.1",
3
+ "version": "18.0.0-rc.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.0.0-rc.1",
15
- "@angular/common": "18.0.0-rc.1",
16
- "@angular/platform-browser": "18.0.0-rc.1",
14
+ "@angular/core": "18.0.0-rc.3",
15
+ "@angular/common": "18.0.0-rc.3",
16
+ "@angular/platform-browser": "18.0.0-rc.3",
17
17
  "rxjs": "^6.5.3 || ^7.4.0"
18
18
  },
19
19
  "repository": {