@rxap/forms 18.2.0 → 18.3.0-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.
- package/CHANGELOG.md +10 -0
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/directives/form-reset.directive.mjs +38 -0
- package/esm2022/lib/directives/form.directive.mjs +23 -10
- package/fesm2022/rxap-forms.mjs +57 -11
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/directives/form-reset.directive.d.ts +11 -0
- package/lib/directives/form.directive.d.ts +6 -6
- package/package.json +19 -19
package/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './lib/directives/form-group-name.directive';
|
|
|
24
24
|
export * from './lib/directives/form-loaded.directive';
|
|
25
25
|
export * from './lib/directives/form-loading-error.directive';
|
|
26
26
|
export * from './lib/directives/form-loading.directive';
|
|
27
|
+
export * from './lib/directives/form-reset.directive';
|
|
27
28
|
export * from './lib/directives/form-submit-failed.directive';
|
|
28
29
|
export * from './lib/directives/form-submit-invalid.directive';
|
|
29
30
|
export * from './lib/directives/form-submit-successful.directive';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ConfirmClick } from '@rxap/directives';
|
|
2
|
+
import { FormDirective } from './form.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormResetDirective extends ConfirmClick {
|
|
5
|
+
private readonly formDirective;
|
|
6
|
+
type: string;
|
|
7
|
+
constructor(formDirective: FormDirective);
|
|
8
|
+
protected execute(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormResetDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormResetDirective, "[rxapFormReset]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -10,11 +10,6 @@ import { FormLoadFailedMethod, FormLoadMethod, FormLoadSuccessfulMethod, FormSub
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class FormDirective<T = any> extends FormGroupDirective implements OnInit, OnChanges, OnDestroy {
|
|
12
12
|
readonly cdr: ChangeDetectorRef;
|
|
13
|
-
protected readonly loadMethod: FormLoadMethod | null;
|
|
14
|
-
protected readonly loadFailedMethod: FormLoadFailedMethod | null;
|
|
15
|
-
protected readonly loadSuccessfulMethod: FormLoadSuccessfulMethod | null;
|
|
16
|
-
protected readonly submitFailedMethod: FormSubmitFailedMethod | null;
|
|
17
|
-
protected readonly submitSuccessfulMethod: FormSubmitSuccessfulMethod | null;
|
|
18
13
|
protected readonly formDefinitionBuilder: RxapFormBuilder | null;
|
|
19
14
|
protected readonly loadingIndicatorService: LoadingIndicatorService | null;
|
|
20
15
|
form: RxapFormGroup<T>;
|
|
@@ -44,6 +39,11 @@ export declare class FormDirective<T = any> extends FormGroupDirective implement
|
|
|
44
39
|
readonly loadingError$: BehaviorSubject<Error | null>;
|
|
45
40
|
protected _formDefinition: FormDefinition<T>;
|
|
46
41
|
submitMethod: FormSubmitMethod<any> | null;
|
|
42
|
+
loadMethod: FormLoadMethod | null;
|
|
43
|
+
loadFailedMethod: FormLoadFailedMethod | null;
|
|
44
|
+
loadSuccessfulMethod: FormLoadSuccessfulMethod | null;
|
|
45
|
+
submitFailedMethod: FormSubmitFailedMethod | null;
|
|
46
|
+
submitSuccessfulMethod: FormSubmitSuccessfulMethod | null;
|
|
47
47
|
private _autoSubmitSubscription;
|
|
48
48
|
constructor(cdr: ChangeDetectorRef, formDefinition?: FormDefinition | null, submitMethod?: FormSubmitMethod<any> | null, loadMethod?: FormLoadMethod | null, loadFailedMethod?: FormLoadFailedMethod | null, loadSuccessfulMethod?: FormLoadSuccessfulMethod | null, submitFailedMethod?: FormSubmitFailedMethod | null, submitSuccessfulMethod?: FormSubmitSuccessfulMethod | null, formDefinitionBuilder?: RxapFormBuilder | null, loadingIndicatorService?: LoadingIndicatorService | null);
|
|
49
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -58,5 +58,5 @@ export declare class FormDirective<T = any> extends FormGroupDirective implement
|
|
|
58
58
|
protected submitSuccessful(value: any): void;
|
|
59
59
|
ngOnDestroy(): void;
|
|
60
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; }]>;
|
|
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
|
+
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; }; "loadMethod": { "alias": "loadMethod"; "required": false; }; "loadFailedMethod": { "alias": "loadFailedMethod"; "required": false; }; "loadSuccessfulMethod": { "alias": "loadSuccessfulMethod"; "required": false; }; "submitFailedMethod": { "alias": "submitFailedMethod"; "required": false; }; "submitSuccessfulMethod": { "alias": "submitSuccessfulMethod"; "required": false; }; }, { "ngSubmit": "ngSubmit"; "rxapSubmit": "rxapSubmit"; "invalidSubmit": "invalidSubmit"; "submitSuccessful$": "submitSuccessful"; }, never, never, true, never>;
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "18.
|
|
2
|
+
"version": "18.3.0-dev.0",
|
|
3
3
|
"name": "@rxap/forms",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@nx/devkit": "19.
|
|
6
|
+
"@nx/devkit": "19.7.4",
|
|
7
7
|
"tslib": "2.6.2"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@angular/core": "^18.2.0",
|
|
11
11
|
"@angular/forms": "^18.2.0",
|
|
12
12
|
"@angular/router": "^18.2.0",
|
|
13
|
-
"@rxap/definition": "^18.0.
|
|
14
|
-
"@rxap/directives": "^18.0.
|
|
15
|
-
"@rxap/pattern": "^1.1.
|
|
16
|
-
"@rxap/reflect-metadata": "^1.0.
|
|
17
|
-
"@rxap/rxjs": "^1.1.
|
|
18
|
-
"@rxap/services": "^18.0.
|
|
19
|
-
"@rxap/utilities": "^16.3.1",
|
|
20
|
-
"@rxap/validator": "^3.0.
|
|
13
|
+
"@rxap/definition": "^18.0.7-dev.0",
|
|
14
|
+
"@rxap/directives": "^18.0.7-dev.0",
|
|
15
|
+
"@rxap/pattern": "^1.1.9-dev.0",
|
|
16
|
+
"@rxap/reflect-metadata": "^1.0.11-dev.1",
|
|
17
|
+
"@rxap/rxjs": "^1.1.10-dev.1",
|
|
18
|
+
"@rxap/services": "^18.0.7-dev.0",
|
|
19
|
+
"@rxap/utilities": "^16.3.2-dev.1",
|
|
20
|
+
"@rxap/validator": "^3.0.9-dev.0",
|
|
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.
|
|
66
|
+
"version": "18.0.7-dev.0"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"package": "@rxap/directives",
|
|
70
|
-
"version": "18.0.
|
|
70
|
+
"version": "18.0.7-dev.0"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"package": "@rxap/pattern",
|
|
74
|
-
"version": "1.1.
|
|
74
|
+
"version": "1.1.9-dev.0"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"package": "@rxap/reflect-metadata",
|
|
78
|
-
"version": "1.0.
|
|
78
|
+
"version": "1.0.11-dev.1"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"package": "@rxap/rxjs",
|
|
82
|
-
"version": "1.1.
|
|
82
|
+
"version": "1.1.10-dev.1"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"package": "@rxap/services",
|
|
86
|
-
"version": "18.0.
|
|
86
|
+
"version": "18.0.7-dev.0"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"package": "@rxap/utilities",
|
|
90
|
-
"version": "16.3.1"
|
|
90
|
+
"version": "16.3.2-dev.1"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"package": "@rxap/validator",
|
|
94
|
-
"version": "3.0.
|
|
94
|
+
"version": "3.0.9-dev.0"
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
},
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"directory": "packages/angular/forms"
|
|
106
106
|
},
|
|
107
107
|
"sideEffects": false,
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "4db804102c7e9fc13ed06b4298fbcd7d7250e138",
|
|
109
109
|
"module": "fesm2022/rxap-forms.mjs",
|
|
110
110
|
"typings": "index.d.ts",
|
|
111
111
|
"exports": {
|