@rxap/form-system 16.0.0-dev.9 → 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 +89 -0
- package/README.md +1 -1
- package/esm2022/index.mjs +28 -19
- package/esm2022/lib/control-with-data-source.mjs +1 -1
- package/esm2022/lib/directives/array/for-form-array-items.directive.mjs +64 -0
- package/esm2022/lib/directives/array/form-array-add-item-button.directive.mjs +61 -0
- package/esm2022/lib/directives/array/form-array-item-button.mjs +71 -0
- package/esm2022/lib/directives/array/form-array-item-remove-button.directive.mjs +30 -0
- package/esm2022/lib/directives/array/form-array-item-restore-button.directive.mjs +30 -0
- package/esm2022/lib/directives/array/form-array-removable.directive.mjs +62 -0
- package/esm2022/lib/directives/input-select-options.directive.mjs +4 -13
- package/esm2022/lib/form-system-control.directive.mjs +5 -17
- package/esm2022/lib/mixins/extract-control.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-options-data-source.mixin.mjs +1 -1
- package/esm2022/lib/submit-context-form-adapter.factory.mjs +3 -6
- package/esm2022/lib/validators/is-equal-to.mjs +5 -9
- package/fesm2022/rxap-form-system.mjs +781 -519
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/index.d.ts +20 -13
- package/lib/control-with-data-source.d.ts +2 -2
- package/lib/directives/array/for-form-array-items.directive.d.ts +26 -0
- package/lib/directives/array/form-array-add-item-button.directive.d.ts +20 -0
- package/lib/directives/array/form-array-item-button.d.ts +29 -0
- package/lib/directives/array/form-array-item-remove-button.directive.d.ts +9 -0
- package/lib/directives/array/form-array-item-restore-button.directive.d.ts +9 -0
- package/lib/directives/array/form-array-removable.directive.d.ts +19 -0
- package/lib/form-system-control.directive.d.ts +1 -1
- package/lib/mixins/extract-control.mixin.d.ts +1 -1
- package/lib/mixins/extract-options-data-source.mixin.d.ts +2 -2
- package/lib/submit-context-form-adapter.factory.d.ts +1 -1
- package/lib/validators/is-equal-to.d.ts +1 -1
- package/package.json +47 -42
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ControlContainer } from '@angular/forms';
|
|
3
|
+
import { RxapFormControl, RxapFormGroup } from '@rxap/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FormArrayRemovableDirective implements AfterViewInit, OnDestroy {
|
|
6
|
+
protected readonly parent: ControlContainer;
|
|
7
|
+
protected control: RxapFormGroup<{
|
|
8
|
+
deleted: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
protected deletedControl: RxapFormControl<boolean>;
|
|
11
|
+
private _deletedControlValueSubscription?;
|
|
12
|
+
constructor(parent: ControlContainer);
|
|
13
|
+
get isDeleted(): boolean;
|
|
14
|
+
protected get isDisabled(): boolean;
|
|
15
|
+
ngAfterViewInit(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormArrayRemovableDirective, [{ optional: true; }]>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormArrayRemovableDirective, "[rxapFormArrayRemovable]", never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -33,5 +33,5 @@ export declare class FormSystemControlDirective<T> implements ControlValueAccess
|
|
|
33
33
|
private extractComponent;
|
|
34
34
|
private extractComponentProperties;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormSystemControlDirective<any>, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, { "controlId": { "alias": "controlId"; "required":
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormSystemControlDirective<any>, "[rxapFormSystemControl]", never, { "controlId": { "alias": "controlId"; "required": true; }; }, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
@@ -3,7 +3,7 @@ import { MatFormField } from '@angular/material/form-field';
|
|
|
3
3
|
import { RxapFormControl } from '@rxap/forms';
|
|
4
4
|
export declare class ExtractControlMixin {
|
|
5
5
|
protected ngControl: NgControl | null;
|
|
6
|
-
protected
|
|
6
|
+
protected matFormField?: MatFormField | null;
|
|
7
7
|
protected control?: RxapFormControl;
|
|
8
8
|
protected extractControl(ngControl?: AbstractControlDirective | null): RxapFormControl;
|
|
9
9
|
}
|
|
@@ -17,8 +17,8 @@ export interface ExtractOptionsDataSourceMixin extends ExtractFormDefinitionMixi
|
|
|
17
17
|
export declare class ExtractOptionsDataSourceMixin {
|
|
18
18
|
protected settings?: UseOptionsDataSourceSettings<any>;
|
|
19
19
|
protected readonly dataSourceLoader: DataSourceLoader;
|
|
20
|
-
metadata?: BaseDataSourceMetadata;
|
|
21
|
-
viewer?: BaseDataSourceViewer;
|
|
20
|
+
protected metadata?: BaseDataSourceMetadata;
|
|
21
|
+
protected viewer?: BaseDataSourceViewer;
|
|
22
22
|
protected dataSource?: BaseDataSource<ControlOptions | Record<string, any>>;
|
|
23
23
|
protected readonly injector: Injector;
|
|
24
24
|
protected useDataSourceValue?: UseDataSourceValue<ControlOptions | Record<string, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
import type { OpenApiRemoteMethod, OpenApiRemoteMethodParameter } from '@rxap/open-api/remote-method';
|
|
2
3
|
import { ProxyRemoteMethod } from '@rxap/remote-method';
|
|
3
|
-
import { InjectionToken } from '@angular/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare const SUBMIT_CONTEXT_FORM_ADAPTER_METHOD: InjectionToken<unknown>;
|
|
6
6
|
export declare class SubmitContextFormAdapter extends ProxyRemoteMethod<unknown, Record<string, unknown>, OpenApiRemoteMethodParameter<Record<string, unknown>>> {
|
|
@@ -13,5 +13,5 @@ export declare class IsEqualToDirective implements Validator {
|
|
|
13
13
|
*/
|
|
14
14
|
registerOnValidatorChange(fn: () => void): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<IsEqualToDirective, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<IsEqualToDirective, "[rxapIsEqualTo]", never, { "equalTo": { "alias": "rxapIsEqualTo"; "required":
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<IsEqualToDirective, "[rxapIsEqualTo]", never, { "equalTo": { "alias": "rxapIsEqualTo"; "required": true; }; }, {}, never, never, true, never>;
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "16.0.0",
|
|
2
3
|
"name": "@rxap/form-system",
|
|
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/material": "^16.1.4",
|
|
8
12
|
"@angular/router": "^16.1.4",
|
|
9
|
-
"@rxap/data-source": "^16.0.0
|
|
10
|
-
"@rxap/definition": "^16.0.0
|
|
11
|
-
"@rxap/forms": "^16.0.0
|
|
12
|
-
"@rxap/mixin": "^16.0.0
|
|
13
|
-
"@rxap/open-api": "^16.0.0
|
|
14
|
-
"@rxap/
|
|
15
|
-
"@rxap/
|
|
16
|
-
"@rxap/
|
|
17
|
-
"
|
|
13
|
+
"@rxap/data-source": "^16.0.0",
|
|
14
|
+
"@rxap/definition": "^16.0.0",
|
|
15
|
+
"@rxap/forms": "^16.0.0",
|
|
16
|
+
"@rxap/mixin": "^16.0.0",
|
|
17
|
+
"@rxap/open-api": "^16.0.0",
|
|
18
|
+
"@rxap/pattern": "^1.1.0",
|
|
19
|
+
"@rxap/reflect-metadata": "^1.0.1",
|
|
20
|
+
"@rxap/remote-method": "^16.0.0",
|
|
21
|
+
"@rxap/utilities": "^16.0.0",
|
|
22
|
+
"rxjs": "^7.8.1"
|
|
18
23
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "Merzough Münker",
|
|
26
|
+
"email": "mmuenker@digitaix.com"
|
|
22
27
|
},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
30
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
26
31
|
},
|
|
32
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/form-system",
|
|
27
33
|
"keywords": [
|
|
28
|
-
"rxap",
|
|
29
34
|
"angular",
|
|
35
|
+
"angular-form-system",
|
|
36
|
+
"form-system",
|
|
30
37
|
"ngx",
|
|
31
38
|
"packages",
|
|
32
|
-
"
|
|
39
|
+
"rxap"
|
|
33
40
|
],
|
|
34
|
-
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/form-system",
|
|
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/form-system"
|
|
44
|
-
},
|
|
45
|
-
"author": {
|
|
46
|
-
"name": "Merzough Münker",
|
|
47
|
-
"email": "mmuenker@digitaix.com"
|
|
48
|
-
},
|
|
49
41
|
"nx-migrations": {
|
|
50
42
|
"packageGroup": [
|
|
51
43
|
{
|
|
52
44
|
"package": "@rxap/data-source",
|
|
53
|
-
"version": "16.0.0
|
|
45
|
+
"version": "16.0.0"
|
|
54
46
|
},
|
|
55
47
|
{
|
|
56
48
|
"package": "@rxap/definition",
|
|
57
|
-
"version": "16.0.0
|
|
49
|
+
"version": "16.0.0"
|
|
58
50
|
},
|
|
59
51
|
{
|
|
60
52
|
"package": "@rxap/forms",
|
|
61
|
-
"version": "16.0.0
|
|
53
|
+
"version": "16.0.0"
|
|
62
54
|
},
|
|
63
55
|
{
|
|
64
56
|
"package": "@rxap/mixin",
|
|
65
|
-
"version": "16.0.0
|
|
57
|
+
"version": "16.0.0"
|
|
66
58
|
},
|
|
67
59
|
{
|
|
68
60
|
"package": "@rxap/open-api",
|
|
69
|
-
"version": "16.0.0
|
|
61
|
+
"version": "16.0.0"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"package": "@rxap/pattern",
|
|
65
|
+
"version": "1.1.0"
|
|
70
66
|
},
|
|
71
67
|
{
|
|
72
68
|
"package": "@rxap/reflect-metadata",
|
|
73
|
-
"version": "1.0.1
|
|
69
|
+
"version": "1.0.1"
|
|
74
70
|
},
|
|
75
71
|
{
|
|
76
72
|
"package": "@rxap/remote-method",
|
|
77
|
-
"version": "16.0.0
|
|
73
|
+
"version": "16.0.0"
|
|
78
74
|
},
|
|
79
75
|
{
|
|
80
76
|
"package": "@rxap/utilities",
|
|
81
|
-
"version": "16.0.0
|
|
77
|
+
"version": "16.0.0"
|
|
82
78
|
}
|
|
83
79
|
]
|
|
84
80
|
},
|
|
85
|
-
"
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public",
|
|
83
|
+
"directory": "../../../dist/packages/angular/form-system"
|
|
84
|
+
},
|
|
85
|
+
"repository": {
|
|
86
|
+
"type": "git",
|
|
87
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
88
|
+
"directory": "packages/angular/form-system"
|
|
89
|
+
},
|
|
90
|
+
"sideEffects": false,
|
|
86
91
|
"module": "fesm2022/rxap-form-system.mjs",
|
|
87
92
|
"typings": "index.d.ts",
|
|
88
93
|
"exports": {
|