@rxap/forms 16.0.0-dev.8 → 16.0.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 +82 -0
- package/README.md +1 -1
- package/esm2022/lib/directives/form-control-error.directive.mjs +9 -13
- package/esm2022/lib/directives/form.directive.mjs +3 -8
- package/esm2022/lib/form-control.mjs +10 -4
- package/esm2022/lib/model.mjs +1 -1
- package/fesm2022/rxap-forms.mjs +16 -17
- package/fesm2022/rxap-forms.mjs.map +1 -1
- package/lib/directives/form-control-error.directive.d.ts +1 -1
- package/lib/form-control.d.ts +1 -1
- package/lib/model.d.ts +4 -2
- package/package.json +42 -42
|
@@ -18,5 +18,5 @@ export declare class FormControlErrorDirective implements OnInit, OnDestroy {
|
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
ngOnDestroy(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, [null, { host: true; skipSelf: true; }, null]>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required":
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; }; }, {}, never, never, true, never>;
|
|
22
22
|
}
|
package/lib/form-control.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UntypedFormControl } from '@angular/forms';
|
|
2
|
-
import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, OrBoxedValue, Validator } from './types';
|
|
3
2
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
4
3
|
import { FormDefinition, FormType, RxapAbstractControlOptions, SetValueFn } from './model';
|
|
4
|
+
import { AsyncValidator, ControlEventOptions, ControlOptions, ControlState, EmitEvent, ExtractStrings, OnlySelf, OrBoxedValue, Validator } from './types';
|
|
5
5
|
export declare class RxapFormControl<T = any, E extends object = any, Parent extends object = any> extends UntypedFormControl {
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
package/lib/model.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AbstractType, InjectionToken, StaticProvider, Type } from '@angular/core';
|
|
2
2
|
import { AbstractControlOptions, AsyncValidatorFn, ValidatorFn } from '@angular/forms';
|
|
3
3
|
import { BaseDefinitionMetadata } from '@rxap/definition';
|
|
4
|
-
import { Constructor } from '@rxap/utilities';
|
|
4
|
+
import { Constructor, NonEmpty } from '@rxap/utilities';
|
|
5
5
|
import { RxapFormArray } from './form-array';
|
|
6
6
|
import { RxapFormControl } from './form-control';
|
|
7
7
|
import type { RxapFormGroup } from './form-group';
|
|
@@ -17,6 +17,8 @@ export interface _RxapAbstractControlOptions extends AbstractControlOptions {
|
|
|
17
17
|
state?: any | (() => any);
|
|
18
18
|
injectValidators?: Array<Type<InjectableValidator> | InjectionToken<InjectableValidator> | AbstractType<InjectableValidator>>;
|
|
19
19
|
controlType?: Constructor<RxapFormControl>;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export type RxapAbstractControlOptions<T extends Record<string, any> = Record<string, any>> = _RxapAbstractControlOptions & T;
|
|
22
24
|
export interface RxapAbstractControlOptionsWithDefinition extends RxapAbstractControlOptions {
|
|
@@ -48,7 +50,7 @@ export interface FormDefinitionArray<T> extends Array<T> {
|
|
|
48
50
|
rxapFormArray: RxapFormArray;
|
|
49
51
|
}
|
|
50
52
|
export type FormType<T> = Partial<FormDefinition<T>> & {
|
|
51
|
-
[K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | FormDefinitionArray<RxapFormControl<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<T[K]
|
|
53
|
+
[K in keyof T]: T[K] extends (infer U)[] ? FormDefinitionArray<FormType<U>> | FormDefinitionArray<RxapFormControl<U>> | RxapFormControl<T[K]> | RxapFormArray<U> : T[K] extends Record<string, any> ? (FormType<T[K]> & Partial<FormDefinition<T[K]>>) | RxapFormControl<T[K]> : RxapFormControl<NonEmpty<T[K]>>;
|
|
52
54
|
};
|
|
53
55
|
export interface FormOptions extends RxapAbstractControlOptions {
|
|
54
56
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "16.0.0",
|
|
2
3
|
"name": "@rxap/forms",
|
|
3
|
-
"
|
|
4
|
+
"license": "GPL-3.0-or-later",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"tslib": "2.6.2"
|
|
7
|
+
},
|
|
4
8
|
"peerDependencies": {
|
|
5
9
|
"@angular/core": "^16.1.4",
|
|
6
10
|
"@angular/forms": "^16.1.4",
|
|
7
11
|
"@angular/router": "^16.1.4",
|
|
8
|
-
"@rxap/definition": "^16.0.0
|
|
9
|
-
"@rxap/directives": "^16.0.0
|
|
10
|
-
"@rxap/pattern": "^1.
|
|
11
|
-
"@rxap/reflect-metadata": "^1.0.1
|
|
12
|
-
"@rxap/rxjs": "^1.
|
|
13
|
-
"@rxap/services": "^16.0.0
|
|
14
|
-
"@rxap/utilities": "^16.0.0
|
|
15
|
-
"@rxap/validator": "^3.0.0
|
|
16
|
-
"rxjs": "^7.8.
|
|
12
|
+
"@rxap/definition": "^16.0.0",
|
|
13
|
+
"@rxap/directives": "^16.0.0",
|
|
14
|
+
"@rxap/pattern": "^1.1.0",
|
|
15
|
+
"@rxap/reflect-metadata": "^1.0.1",
|
|
16
|
+
"@rxap/rxjs": "^1.1.0",
|
|
17
|
+
"@rxap/services": "^16.0.0",
|
|
18
|
+
"@rxap/utilities": "^16.0.0",
|
|
19
|
+
"@rxap/validator": "^3.0.0",
|
|
20
|
+
"rxjs": "^7.8.1",
|
|
17
21
|
"@angular/platform-browser": "16.1.4"
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
23
|
+
"author": {
|
|
24
|
+
"name": "Merzough Münker",
|
|
25
|
+
"email": "mmuenker@digitaix.com"
|
|
22
26
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
29
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
26
30
|
},
|
|
31
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/forms",
|
|
27
32
|
"keywords": [
|
|
28
|
-
"rxap",
|
|
29
33
|
"angular",
|
|
34
|
+
"angular-forms",
|
|
35
|
+
"forms",
|
|
30
36
|
"ngx",
|
|
31
37
|
"packages",
|
|
32
|
-
"
|
|
38
|
+
"rxap"
|
|
33
39
|
],
|
|
34
|
-
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/forms",
|
|
35
|
-
"bugs": {
|
|
36
|
-
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
37
|
-
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
38
|
-
},
|
|
39
|
-
"license": "GPL-3.0-or-later",
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "https://gitlab.com/rxap/packages.git",
|
|
43
|
-
"directory": "packages/angular/forms"
|
|
44
|
-
},
|
|
45
|
-
"author": {
|
|
46
|
-
"name": "Merzough Münker",
|
|
47
|
-
"email": "mmuenker@digitaix.com"
|
|
48
|
-
},
|
|
49
40
|
"nx-migrations": {
|
|
50
41
|
"packageGroup": [
|
|
51
42
|
{
|
|
52
43
|
"package": "@rxap/definition",
|
|
53
|
-
"version": "16.0.0
|
|
44
|
+
"version": "16.0.0"
|
|
54
45
|
},
|
|
55
46
|
{
|
|
56
47
|
"package": "@rxap/directives",
|
|
57
|
-
"version": "16.0.0
|
|
48
|
+
"version": "16.0.0"
|
|
58
49
|
},
|
|
59
50
|
{
|
|
60
51
|
"package": "@rxap/pattern",
|
|
61
|
-
"version": "1.
|
|
52
|
+
"version": "1.1.0"
|
|
62
53
|
},
|
|
63
54
|
{
|
|
64
55
|
"package": "@rxap/reflect-metadata",
|
|
65
|
-
"version": "1.0.1
|
|
56
|
+
"version": "1.0.1"
|
|
66
57
|
},
|
|
67
58
|
{
|
|
68
59
|
"package": "@rxap/rxjs",
|
|
69
|
-
"version": "1.
|
|
60
|
+
"version": "1.1.0"
|
|
70
61
|
},
|
|
71
62
|
{
|
|
72
63
|
"package": "@rxap/services",
|
|
73
|
-
"version": "16.0.0
|
|
64
|
+
"version": "16.0.0"
|
|
74
65
|
},
|
|
75
66
|
{
|
|
76
67
|
"package": "@rxap/utilities",
|
|
77
|
-
"version": "16.0.0
|
|
68
|
+
"version": "16.0.0"
|
|
78
69
|
},
|
|
79
70
|
{
|
|
80
71
|
"package": "@rxap/validator",
|
|
81
|
-
"version": "3.0.0
|
|
72
|
+
"version": "3.0.0"
|
|
82
73
|
}
|
|
83
74
|
]
|
|
84
75
|
},
|
|
85
|
-
"
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public",
|
|
78
|
+
"directory": "../../../dist/packages/angular/forms"
|
|
79
|
+
},
|
|
80
|
+
"repository": {
|
|
81
|
+
"type": "git",
|
|
82
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
83
|
+
"directory": "packages/angular/forms"
|
|
84
|
+
},
|
|
85
|
+
"sideEffects": false,
|
|
86
86
|
"module": "fesm2022/rxap-forms.mjs",
|
|
87
87
|
"typings": "index.d.ts",
|
|
88
88
|
"exports": {
|