@rxap/forms 18.0.4-dev.0 → 18.0.5-dev.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.
@@ -19,6 +19,7 @@ export declare class FormDirective<T = any> extends FormGroupDirective implement
19
19
  protected readonly loadingIndicatorService: LoadingIndicatorService | null;
20
20
  form: RxapFormGroup<T>;
21
21
  initial?: T;
22
+ readonly context: import("@angular/core").InputSignal<Record<string, unknown>>;
22
23
  /**
23
24
  * Emits when the submit method is executed without errors. The result of the
24
25
  * submit method is passed as event object.
@@ -57,5 +58,5 @@ export declare class FormDirective<T = any> extends FormGroupDirective implement
57
58
  protected submitSuccessful(value: any): void;
58
59
  ngOnDestroy(): void;
59
60
  static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective<any>, [null, { optional: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; }]>;
60
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective<any>, "form[rxapForm]:not([formGroup]):not([ngForm]),rxap-form,form[rxapForm]", ["rxapForm"], { "initial": { "alias": "initial"; "required": false; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "useFormDefinition": { "alias": "rxapForm"; "required": false; }; "submitMethod": { "alias": "submitMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
61
62
  }
@@ -1,17 +1,17 @@
1
- import { Method } from '@rxap/pattern';
2
- export interface FormSubmitMethod<T> extends Method<any, T> {
3
- call(parameters: T): any | Promise<any>;
1
+ import { Method, MethodWithParameters } from '@rxap/pattern';
2
+ export interface FormSubmitMethod<T> extends MethodWithParameters<any, T> {
3
+ call(parameters: T, context?: Record<string, unknown>): any | Promise<any>;
4
4
  }
5
5
  export interface FormLoadMethod<T = any> extends Method<T> {
6
6
  call(): T | Promise<T>;
7
7
  }
8
- export interface FormLoadFailedMethod extends Method {
8
+ export interface FormLoadFailedMethod extends MethodWithParameters {
9
9
  call(error: Error): Promise<any> | any;
10
10
  }
11
11
  export interface FormLoadSuccessfulMethod<T = any> extends Method {
12
12
  call(value: T): Promise<any> | any;
13
13
  }
14
- export interface FormSubmitFailedMethod extends Method {
14
+ export interface FormSubmitFailedMethod extends MethodWithParameters {
15
15
  call(error: Error): Promise<any> | any;
16
16
  }
17
17
  export interface FormSubmitSuccessfulMethod<T = any> extends Method {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "18.0.4-dev.0",
2
+ "version": "18.0.5-dev.0",
3
3
  "name": "@rxap/forms",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "dependencies": {
@@ -10,14 +10,14 @@
10
10
  "@angular/core": "^18.0.1",
11
11
  "@angular/forms": "^18.0.1",
12
12
  "@angular/router": "^18.0.1",
13
- "@rxap/definition": "^18.0.3",
14
- "@rxap/directives": "^18.0.3",
15
- "@rxap/pattern": "^1.1.5",
16
- "@rxap/reflect-metadata": "^1.0.7",
17
- "@rxap/rxjs": "^1.1.6",
18
- "@rxap/services": "^18.0.3",
19
- "@rxap/utilities": "^16.2.4",
20
- "@rxap/validator": "^3.0.5",
13
+ "@rxap/definition": "^18.0.4",
14
+ "@rxap/directives": "^18.0.4",
15
+ "@rxap/pattern": "^1.1.7-dev.0",
16
+ "@rxap/reflect-metadata": "^1.0.9-dev.1",
17
+ "@rxap/rxjs": "^1.1.8-dev.1",
18
+ "@rxap/services": "^18.0.4",
19
+ "@rxap/utilities": "^16.3.0-dev.1",
20
+ "@rxap/validator": "^3.0.6",
21
21
  "rxjs": "^7.8.1"
22
22
  },
23
23
  "author": {
@@ -63,35 +63,35 @@
63
63
  },
64
64
  {
65
65
  "package": "@rxap/definition",
66
- "version": "18.0.3"
66
+ "version": "18.0.4"
67
67
  },
68
68
  {
69
69
  "package": "@rxap/directives",
70
- "version": "18.0.3"
70
+ "version": "18.0.4"
71
71
  },
72
72
  {
73
73
  "package": "@rxap/pattern",
74
- "version": "1.1.5"
74
+ "version": "1.1.7-dev.0"
75
75
  },
76
76
  {
77
77
  "package": "@rxap/reflect-metadata",
78
- "version": "1.0.7"
78
+ "version": "1.0.9-dev.1"
79
79
  },
80
80
  {
81
81
  "package": "@rxap/rxjs",
82
- "version": "1.1.6"
82
+ "version": "1.1.8-dev.1"
83
83
  },
84
84
  {
85
85
  "package": "@rxap/services",
86
- "version": "18.0.3"
86
+ "version": "18.0.4"
87
87
  },
88
88
  {
89
89
  "package": "@rxap/utilities",
90
- "version": "16.2.4"
90
+ "version": "16.3.0-dev.1"
91
91
  },
92
92
  {
93
93
  "package": "@rxap/validator",
94
- "version": "3.0.5"
94
+ "version": "3.0.6"
95
95
  }
96
96
  ]
97
97
  },
@@ -105,7 +105,7 @@
105
105
  "directory": "packages/angular/forms"
106
106
  },
107
107
  "sideEffects": false,
108
- "gitHead": "3e7af3f80900d5672e0dade95eb6a1c22835c6e0",
108
+ "gitHead": "931a4c874f915c0e9622185bdbaf478a1b0e9617",
109
109
  "module": "fesm2022/rxap-forms.mjs",
110
110
  "typings": "index.d.ts",
111
111
  "exports": {