@ng-formworks/core 17.2.7 → 18.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/LICENSE +21 -0
- package/README.md +834 -0
- package/esm2022/lib/framework-library/framework-library.service.mjs +175 -0
- package/esm2022/lib/framework-library/framework.mjs +15 -0
- package/esm2022/lib/framework-library/no-framework.component.mjs +18 -0
- package/esm2022/lib/framework-library/no-framework.module.mjs +27 -0
- package/esm2022/lib/framework-library/no.framework.mjs +19 -0
- package/esm2022/lib/json-schema-form.component.mjs +765 -0
- package/esm2022/lib/json-schema-form.module.mjs +26 -0
- package/esm2022/lib/json-schema-form.service.mjs +676 -0
- package/esm2022/lib/locale/de-validation-messages.mjs +60 -0
- package/esm2022/lib/locale/en-validation-messages.mjs +60 -0
- package/esm2022/lib/locale/es-validation-messages.mjs +57 -0
- package/esm2022/lib/locale/fr-validation-messages.mjs +60 -0
- package/esm2022/lib/locale/index.mjs +8 -0
- package/esm2022/lib/locale/it-validation-messages.mjs +60 -0
- package/esm2022/lib/locale/pt-validation-messages.mjs +60 -0
- package/esm2022/lib/locale/zh-validation-messages.mjs +60 -0
- package/esm2022/lib/shared/convert-schema-to-draft6.function.mjs +300 -0
- package/esm2022/lib/shared/form-group.functions.mjs +442 -0
- package/esm2022/lib/shared/format-regex.constants.mjs +54 -0
- package/esm2022/lib/shared/index.mjs +12 -0
- package/esm2022/lib/shared/json-schema.functions.mjs +784 -0
- package/esm2022/lib/shared/json.validators.mjs +884 -0
- package/esm2022/lib/shared/jsonpointer.functions.mjs +1026 -0
- package/esm2022/lib/shared/layout.functions.mjs +1158 -0
- package/esm2022/lib/shared/merge-schemas.function.mjs +345 -0
- package/esm2022/lib/shared/utility.functions.mjs +380 -0
- package/esm2022/lib/shared/validator.functions.mjs +584 -0
- package/esm2022/lib/widget-library/add-reference.component.mjs +61 -0
- package/esm2022/lib/widget-library/button.component.mjs +72 -0
- package/esm2022/lib/widget-library/checkbox.component.mjs +105 -0
- package/esm2022/lib/widget-library/checkboxes.component.mjs +147 -0
- package/esm2022/lib/widget-library/file.component.mjs +35 -0
- package/esm2022/lib/widget-library/hidden.component.mjs +54 -0
- package/esm2022/lib/widget-library/index.mjs +55 -0
- package/esm2022/lib/widget-library/input.component.mjs +119 -0
- package/esm2022/lib/widget-library/message.component.mjs +38 -0
- package/esm2022/lib/widget-library/none.component.mjs +21 -0
- package/esm2022/lib/widget-library/number.component.mjs +123 -0
- package/esm2022/lib/widget-library/one-of.component.mjs +35 -0
- package/esm2022/lib/widget-library/orderable.directive.mjs +123 -0
- package/esm2022/lib/widget-library/radios.component.mjs +153 -0
- package/esm2022/lib/widget-library/root.component.mjs +79 -0
- package/esm2022/lib/widget-library/section.component.mjs +199 -0
- package/esm2022/lib/widget-library/select-framework.component.mjs +51 -0
- package/esm2022/lib/widget-library/select-widget.component.mjs +46 -0
- package/esm2022/lib/widget-library/select.component.mjs +150 -0
- package/esm2022/lib/widget-library/submit.component.mjs +82 -0
- package/esm2022/lib/widget-library/tab.component.mjs +41 -0
- package/esm2022/lib/widget-library/tabs.component.mjs +108 -0
- package/esm2022/lib/widget-library/template.component.mjs +46 -0
- package/esm2022/lib/widget-library/textarea.component.mjs +104 -0
- package/esm2022/lib/widget-library/widget-library.module.mjs +42 -0
- package/esm2022/lib/widget-library/widget-library.service.mjs +226 -0
- package/esm2022/ng-formworks-core.mjs +5 -0
- package/esm2022/public_api.mjs +13 -0
- package/fesm2022/ng-formworks-core.mjs +10151 -0
- package/fesm2022/ng-formworks-core.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/framework-library/framework-library.service.d.ts +55 -0
- package/lib/framework-library/framework.d.ts +13 -0
- package/lib/framework-library/no-framework.component.d.ts +8 -0
- package/lib/framework-library/no-framework.module.d.ts +9 -0
- package/lib/framework-library/no.framework.d.ts +10 -0
- package/lib/json-schema-form.component.d.ts +218 -0
- package/lib/json-schema-form.module.d.ts +11 -0
- package/lib/json-schema-form.service.d.ts +115 -0
- package/lib/locale/de-validation-messages.d.ts +1 -0
- package/lib/locale/en-validation-messages.d.ts +1 -0
- package/lib/locale/es-validation-messages.d.ts +1 -0
- package/lib/locale/fr-validation-messages.d.ts +1 -0
- package/{src/lib/locale/index.ts → lib/locale/index.d.ts} +7 -7
- package/lib/locale/it-validation-messages.d.ts +1 -0
- package/lib/locale/pt-validation-messages.d.ts +1 -0
- package/lib/locale/zh-validation-messages.d.ts +1 -0
- package/lib/shared/convert-schema-to-draft6.function.d.ts +21 -0
- package/lib/shared/form-group.functions.d.ts +100 -0
- package/lib/shared/format-regex.constants.d.ts +19 -0
- package/lib/shared/index.d.ts +9 -0
- package/lib/shared/json-schema.functions.d.ts +193 -0
- package/lib/shared/json.validators.d.ts +441 -0
- package/lib/shared/jsonpointer.functions.d.ts +416 -0
- package/lib/shared/layout.functions.d.ts +83 -0
- package/lib/shared/merge-schemas.function.d.ts +19 -0
- package/lib/shared/utility.functions.d.ts +165 -0
- package/{src/lib/shared/validator.functions.ts → lib/shared/validator.functions.d.ts} +364 -601
- package/lib/widget-library/add-reference.component.d.ts +20 -0
- package/lib/widget-library/button.component.d.ts +21 -0
- package/lib/widget-library/checkbox.component.d.ts +24 -0
- package/lib/widget-library/checkboxes.component.d.ts +24 -0
- package/lib/widget-library/file.component.d.ts +21 -0
- package/lib/widget-library/hidden.component.d.ts +19 -0
- package/{src/lib/widget-library/index.ts → lib/widget-library/index.d.ts} +47 -56
- package/lib/widget-library/input.component.d.ts +22 -0
- package/lib/widget-library/message.component.d.ts +15 -0
- package/lib/widget-library/none.component.d.ts +8 -0
- package/lib/widget-library/number.component.d.ts +25 -0
- package/lib/widget-library/one-of.component.d.ts +21 -0
- package/lib/widget-library/orderable.directive.d.ts +41 -0
- package/lib/widget-library/radios.component.d.ts +23 -0
- package/lib/widget-library/root.component.d.ts +17 -0
- package/lib/widget-library/section.component.d.ts +19 -0
- package/lib/widget-library/select-framework.component.d.ts +18 -0
- package/lib/widget-library/select-widget.component.d.ts +18 -0
- package/lib/widget-library/select.component.d.ts +24 -0
- package/lib/widget-library/submit.component.d.ts +24 -0
- package/lib/widget-library/tab.component.d.ts +14 -0
- package/lib/widget-library/tabs.component.d.ts +20 -0
- package/lib/widget-library/template.component.d.ts +18 -0
- package/lib/widget-library/textarea.component.d.ts +21 -0
- package/lib/widget-library/widget-library.module.d.ts +31 -0
- package/lib/widget-library/widget-library.service.d.ts +22 -0
- package/package.json +66 -53
- package/{src/public_api.ts → public_api.d.ts} +9 -21
- package/karma.conf.js +0 -46
- package/ng-package.json +0 -11
- package/src/lib/framework-library/framework-library.service.ts +0 -195
- package/src/lib/framework-library/framework.ts +0 -11
- package/src/lib/framework-library/no-framework.component.html +0 -2
- package/src/lib/framework-library/no-framework.component.ts +0 -11
- package/src/lib/framework-library/no-framework.module.ts +0 -18
- package/src/lib/framework-library/no.framework.ts +0 -11
- package/src/lib/json-schema-form.component.html +0 -7
- package/src/lib/json-schema-form.component.ts +0 -809
- package/src/lib/json-schema-form.module.ts +0 -17
- package/src/lib/json-schema-form.service.ts +0 -907
- package/src/lib/locale/de-validation-messages.ts +0 -58
- package/src/lib/locale/en-validation-messages.ts +0 -58
- package/src/lib/locale/es-validation-messages.ts +0 -55
- package/src/lib/locale/fr-validation-messages.ts +0 -58
- package/src/lib/locale/it-validation-messages.ts +0 -58
- package/src/lib/locale/pt-validation-messages.ts +0 -58
- package/src/lib/locale/zh-validation-messages.ts +0 -58
- package/src/lib/locale-dates/en-US.ts +0 -5
- package/src/lib/shared/convert-schema-to-draft6.function.ts +0 -321
- package/src/lib/shared/form-group.functions.ts +0 -522
- package/src/lib/shared/format-regex.constants.ts +0 -73
- package/src/lib/shared/index.ts +0 -40
- package/src/lib/shared/json-schema.functions.ts +0 -788
- package/src/lib/shared/json.validators.ts +0 -878
- package/src/lib/shared/jsonpointer.functions.ts +0 -1012
- package/src/lib/shared/jspointer.functions.json.spec.ts +0 -103
- package/src/lib/shared/layout.functions.ts +0 -1233
- package/src/lib/shared/merge-schemas.function.ts +0 -329
- package/src/lib/shared/utility.functions.ts +0 -373
- package/src/lib/shared/validator.functions.spec.ts +0 -55
- package/src/lib/widget-library/add-reference.component.ts +0 -59
- package/src/lib/widget-library/button.component.ts +0 -54
- package/src/lib/widget-library/checkbox.component.ts +0 -74
- package/src/lib/widget-library/checkboxes.component.ts +0 -104
- package/src/lib/widget-library/file.component.ts +0 -36
- package/src/lib/widget-library/hidden.component.ts +0 -39
- package/src/lib/widget-library/input.component.ts +0 -76
- package/src/lib/widget-library/message.component.ts +0 -29
- package/src/lib/widget-library/none.component.ts +0 -12
- package/src/lib/widget-library/number.component.ts +0 -79
- package/src/lib/widget-library/one-of.component.ts +0 -36
- package/src/lib/widget-library/orderable.directive.ts +0 -130
- package/src/lib/widget-library/radios.component.ts +0 -101
- package/src/lib/widget-library/root.component.ts +0 -78
- package/src/lib/widget-library/section.component.ts +0 -133
- package/src/lib/widget-library/select-framework.component.ts +0 -50
- package/src/lib/widget-library/select-widget.component.ts +0 -46
- package/src/lib/widget-library/select.component.ts +0 -96
- package/src/lib/widget-library/submit.component.ts +0 -68
- package/src/lib/widget-library/tab.component.ts +0 -29
- package/src/lib/widget-library/tabs.component.ts +0 -83
- package/src/lib/widget-library/template.component.ts +0 -52
- package/src/lib/widget-library/textarea.component.ts +0 -68
- package/src/lib/widget-library/widget-library.module.ts +0 -13
- package/src/lib/widget-library/widget-library.service.ts +0 -234
- package/src/test.ts +0 -18
- package/tsconfig.lib.json +0 -25
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -11
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AddReferenceComponent implements OnInit {
|
|
5
|
+
private jsf;
|
|
6
|
+
options: any;
|
|
7
|
+
itemCount: number;
|
|
8
|
+
previousLayoutIndex: number[];
|
|
9
|
+
previousDataIndex: number[];
|
|
10
|
+
layoutNode: any;
|
|
11
|
+
layoutIndex: number[];
|
|
12
|
+
dataIndex: number[];
|
|
13
|
+
constructor(jsf: JsonSchemaFormService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
get showAddButton(): boolean;
|
|
16
|
+
addItem(event: any): void;
|
|
17
|
+
get buttonText(): string;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AddReferenceComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddReferenceComponent, "add-reference-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ButtonComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutNode: any;
|
|
14
|
+
layoutIndex: number[];
|
|
15
|
+
dataIndex: number[];
|
|
16
|
+
constructor(jsf: JsonSchemaFormService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
updateValue(event: any): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CheckboxComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
trueValue: any;
|
|
14
|
+
falseValue: any;
|
|
15
|
+
layoutNode: any;
|
|
16
|
+
layoutIndex: number[];
|
|
17
|
+
dataIndex: number[];
|
|
18
|
+
constructor(jsf: JsonSchemaFormService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
updateValue(event: any): void;
|
|
21
|
+
get isChecked(): boolean;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "checkbox-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService, TitleMapItem } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CheckboxesComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutOrientation: string;
|
|
14
|
+
formArray: AbstractControl;
|
|
15
|
+
checkboxList: TitleMapItem[];
|
|
16
|
+
layoutNode: any;
|
|
17
|
+
layoutIndex: number[];
|
|
18
|
+
dataIndex: number[];
|
|
19
|
+
constructor(jsf: JsonSchemaFormService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
updateValue(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxesComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxesComponent, "checkboxes-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FileComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutNode: any;
|
|
14
|
+
layoutIndex: number[];
|
|
15
|
+
dataIndex: number[];
|
|
16
|
+
constructor(jsf: JsonSchemaFormService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
updateValue(event: any): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "file-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HiddenComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
layoutNode: any;
|
|
13
|
+
layoutIndex: number[];
|
|
14
|
+
dataIndex: number[];
|
|
15
|
+
constructor(jsf: JsonSchemaFormService);
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HiddenComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HiddenComponent, "hidden-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -1,56 +1,47 @@
|
|
|
1
|
-
import { AddReferenceComponent } from './add-reference.component';
|
|
2
|
-
import { ButtonComponent } from './button.component';
|
|
3
|
-
import { CheckboxComponent } from './checkbox.component';
|
|
4
|
-
import { CheckboxesComponent } from './checkboxes.component';
|
|
5
|
-
import { FileComponent } from './file.component';
|
|
6
|
-
import { HiddenComponent } from './hidden.component';
|
|
7
|
-
import { InputComponent } from './input.component';
|
|
8
|
-
import { MessageComponent } from './message.component';
|
|
9
|
-
import { NoneComponent } from './none.component';
|
|
10
|
-
import { NumberComponent } from './number.component';
|
|
11
|
-
import { OneOfComponent } from './one-of.component';
|
|
12
|
-
import { RadiosComponent } from './radios.component';
|
|
13
|
-
import { RootComponent } from './root.component';
|
|
14
|
-
import { SectionComponent } from './section.component';
|
|
15
|
-
import { SelectComponent } from './select.component';
|
|
16
|
-
import { SelectFrameworkComponent } from './select-framework.component';
|
|
17
|
-
import { SelectWidgetComponent } from './select-widget.component';
|
|
18
|
-
import { SubmitComponent } from './submit.component';
|
|
19
|
-
import { TabComponent } from './tab.component';
|
|
20
|
-
import { TabsComponent } from './tabs.component';
|
|
21
|
-
import { TemplateComponent } from './template.component';
|
|
22
|
-
import { TextareaComponent } from './textarea.component';
|
|
23
|
-
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export { SelectComponent } from './select.component';
|
|
49
|
-
export { SelectFrameworkComponent } from './select-framework.component';
|
|
50
|
-
export { SelectWidgetComponent } from './select-widget.component';
|
|
51
|
-
export { SubmitComponent } from './submit.component';
|
|
52
|
-
export { TabComponent } from './tab.component';
|
|
53
|
-
export { TabsComponent } from './tabs.component';
|
|
54
|
-
export { TemplateComponent } from './template.component';
|
|
55
|
-
export { TextareaComponent } from './textarea.component';
|
|
56
|
-
export { WidgetLibraryService } from './widget-library.service';
|
|
1
|
+
import { AddReferenceComponent } from './add-reference.component';
|
|
2
|
+
import { ButtonComponent } from './button.component';
|
|
3
|
+
import { CheckboxComponent } from './checkbox.component';
|
|
4
|
+
import { CheckboxesComponent } from './checkboxes.component';
|
|
5
|
+
import { FileComponent } from './file.component';
|
|
6
|
+
import { HiddenComponent } from './hidden.component';
|
|
7
|
+
import { InputComponent } from './input.component';
|
|
8
|
+
import { MessageComponent } from './message.component';
|
|
9
|
+
import { NoneComponent } from './none.component';
|
|
10
|
+
import { NumberComponent } from './number.component';
|
|
11
|
+
import { OneOfComponent } from './one-of.component';
|
|
12
|
+
import { RadiosComponent } from './radios.component';
|
|
13
|
+
import { RootComponent } from './root.component';
|
|
14
|
+
import { SectionComponent } from './section.component';
|
|
15
|
+
import { SelectComponent } from './select.component';
|
|
16
|
+
import { SelectFrameworkComponent } from './select-framework.component';
|
|
17
|
+
import { SelectWidgetComponent } from './select-widget.component';
|
|
18
|
+
import { SubmitComponent } from './submit.component';
|
|
19
|
+
import { TabComponent } from './tab.component';
|
|
20
|
+
import { TabsComponent } from './tabs.component';
|
|
21
|
+
import { TemplateComponent } from './template.component';
|
|
22
|
+
import { TextareaComponent } from './textarea.component';
|
|
23
|
+
export declare const BASIC_WIDGETS: (typeof AddReferenceComponent | typeof ButtonComponent | typeof CheckboxComponent | typeof CheckboxesComponent | typeof FileComponent | typeof InputComponent | typeof MessageComponent | typeof NoneComponent | typeof NumberComponent | typeof OneOfComponent | typeof RadiosComponent | typeof RootComponent | typeof SectionComponent | typeof SelectComponent | typeof SelectFrameworkComponent | typeof SelectWidgetComponent | typeof SubmitComponent | typeof TabsComponent | typeof TemplateComponent | typeof TextareaComponent | typeof HiddenComponent | typeof TabComponent)[];
|
|
24
|
+
export { AddReferenceComponent } from './add-reference.component';
|
|
25
|
+
export { OneOfComponent } from './one-of.component';
|
|
26
|
+
export { ButtonComponent } from './button.component';
|
|
27
|
+
export { CheckboxComponent } from './checkbox.component';
|
|
28
|
+
export { CheckboxesComponent } from './checkboxes.component';
|
|
29
|
+
export { FileComponent } from './file.component';
|
|
30
|
+
export { HiddenComponent } from './hidden.component';
|
|
31
|
+
export { InputComponent } from './input.component';
|
|
32
|
+
export { MessageComponent } from './message.component';
|
|
33
|
+
export { NoneComponent } from './none.component';
|
|
34
|
+
export { NumberComponent } from './number.component';
|
|
35
|
+
export { OrderableDirective } from './orderable.directive';
|
|
36
|
+
export { RadiosComponent } from './radios.component';
|
|
37
|
+
export { RootComponent } from './root.component';
|
|
38
|
+
export { SectionComponent } from './section.component';
|
|
39
|
+
export { SelectComponent } from './select.component';
|
|
40
|
+
export { SelectFrameworkComponent } from './select-framework.component';
|
|
41
|
+
export { SelectWidgetComponent } from './select-widget.component';
|
|
42
|
+
export { SubmitComponent } from './submit.component';
|
|
43
|
+
export { TabComponent } from './tab.component';
|
|
44
|
+
export { TabsComponent } from './tabs.component';
|
|
45
|
+
export { TemplateComponent } from './template.component';
|
|
46
|
+
export { TextareaComponent } from './textarea.component';
|
|
47
|
+
export { WidgetLibraryService } from './widget-library.service';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class InputComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: string;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
autoCompleteList: string[];
|
|
14
|
+
layoutNode: any;
|
|
15
|
+
layoutIndex: number[];
|
|
16
|
+
dataIndex: number[];
|
|
17
|
+
constructor(jsf: JsonSchemaFormService);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
updateValue(event: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "input-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MessageComponent implements OnInit {
|
|
5
|
+
private jsf;
|
|
6
|
+
options: any;
|
|
7
|
+
message: string;
|
|
8
|
+
layoutNode: any;
|
|
9
|
+
layoutIndex: number[];
|
|
10
|
+
dataIndex: number[];
|
|
11
|
+
constructor(jsf: JsonSchemaFormService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MessageComponent, "message-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NoneComponent {
|
|
3
|
+
layoutNode: any;
|
|
4
|
+
layoutIndex: number[];
|
|
5
|
+
dataIndex: number[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoneComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoneComponent, "none-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NumberComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
allowNegative: boolean;
|
|
14
|
+
allowDecimal: boolean;
|
|
15
|
+
allowExponents: boolean;
|
|
16
|
+
lastValidNumber: string;
|
|
17
|
+
layoutNode: any;
|
|
18
|
+
layoutIndex: number[];
|
|
19
|
+
dataIndex: number[];
|
|
20
|
+
constructor(jsf: JsonSchemaFormService);
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
updateValue(event: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "number-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class OneOfComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutNode: any;
|
|
14
|
+
layoutIndex: number[];
|
|
15
|
+
dataIndex: number[];
|
|
16
|
+
constructor(jsf: JsonSchemaFormService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
updateValue(event: any): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OneOfComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OneOfComponent, "one-of-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ElementRef, NgZone, OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* OrderableDirective
|
|
6
|
+
*
|
|
7
|
+
* Enables array elements to be reordered by dragging and dropping.
|
|
8
|
+
*
|
|
9
|
+
* Only works for arrays that have at least two elements.
|
|
10
|
+
*
|
|
11
|
+
* Also detects arrays-within-arrays, and correctly moves either
|
|
12
|
+
* the child array element or the parent array element,
|
|
13
|
+
* depending on the drop targert.
|
|
14
|
+
*
|
|
15
|
+
* Listeners for movable element being dragged:
|
|
16
|
+
* - dragstart: add 'dragging' class to element, set effectAllowed = 'move'
|
|
17
|
+
* - dragover: set dropEffect = 'move'
|
|
18
|
+
* - dragend: remove 'dragging' class from element
|
|
19
|
+
*
|
|
20
|
+
* Listeners for stationary items being dragged over:
|
|
21
|
+
* - dragenter: add 'drag-target-...' classes to element
|
|
22
|
+
* - dragleave: remove 'drag-target-...' classes from element
|
|
23
|
+
* - drop: remove 'drag-target-...' classes from element, move dropped array item
|
|
24
|
+
*/
|
|
25
|
+
export declare class OrderableDirective implements OnInit {
|
|
26
|
+
private elementRef;
|
|
27
|
+
private jsf;
|
|
28
|
+
private ngZone;
|
|
29
|
+
arrayLayoutIndex: string;
|
|
30
|
+
element: any;
|
|
31
|
+
overParentElement: boolean;
|
|
32
|
+
overChildElement: boolean;
|
|
33
|
+
orderable: boolean;
|
|
34
|
+
layoutNode: any;
|
|
35
|
+
layoutIndex: number[];
|
|
36
|
+
dataIndex: number[];
|
|
37
|
+
constructor(elementRef: ElementRef, jsf: JsonSchemaFormService, ngZone: NgZone);
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderableDirective, never>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OrderableDirective, "[orderable]", never, { "orderable": { "alias": "orderable"; "required": false; }; "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RadiosComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutOrientation: string;
|
|
14
|
+
radiosList: any[];
|
|
15
|
+
layoutNode: any;
|
|
16
|
+
layoutIndex: number[];
|
|
17
|
+
dataIndex: number[];
|
|
18
|
+
constructor(jsf: JsonSchemaFormService);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
updateValue(event: any): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadiosComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadiosComponent, "radios-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class RootComponent {
|
|
4
|
+
private jsf;
|
|
5
|
+
options: any;
|
|
6
|
+
dataIndex: number[];
|
|
7
|
+
layoutIndex: number[];
|
|
8
|
+
layout: any[];
|
|
9
|
+
isOrderable: boolean;
|
|
10
|
+
isFlexItem: boolean;
|
|
11
|
+
constructor(jsf: JsonSchemaFormService);
|
|
12
|
+
isDraggable(node: any): boolean;
|
|
13
|
+
getFlexAttribute(node: any, attribute: string): any;
|
|
14
|
+
showWidget(layoutNode: any): boolean;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RootComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RootComponent, "root-widget", never, { "dataIndex": { "alias": "dataIndex"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "isOrderable": { "alias": "isOrderable"; "required": false; }; "isFlexItem": { "alias": "isFlexItem"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SectionComponent implements OnInit {
|
|
5
|
+
private jsf;
|
|
6
|
+
options: any;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
containerType: string;
|
|
9
|
+
layoutNode: any;
|
|
10
|
+
layoutIndex: number[];
|
|
11
|
+
dataIndex: number[];
|
|
12
|
+
constructor(jsf: JsonSchemaFormService);
|
|
13
|
+
get sectionTitle(): string;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
toggleExpanded(): void;
|
|
16
|
+
getFlexAttribute(attribute: string): any;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SectionComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SectionComponent, "section-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectFrameworkComponent implements OnChanges, OnInit {
|
|
5
|
+
private componentFactory;
|
|
6
|
+
private jsf;
|
|
7
|
+
newComponent: ComponentRef<any>;
|
|
8
|
+
layoutNode: any;
|
|
9
|
+
layoutIndex: number[];
|
|
10
|
+
dataIndex: number[];
|
|
11
|
+
widgetContainer: ViewContainerRef;
|
|
12
|
+
constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
updateComponent(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectFrameworkComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectFrameworkComponent, "select-framework-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectWidgetComponent implements OnChanges, OnInit {
|
|
5
|
+
private componentFactory;
|
|
6
|
+
private jsf;
|
|
7
|
+
newComponent: ComponentRef<any>;
|
|
8
|
+
layoutNode: any;
|
|
9
|
+
layoutIndex: number[];
|
|
10
|
+
dataIndex: number[];
|
|
11
|
+
widgetContainer: ViewContainerRef;
|
|
12
|
+
constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
updateComponent(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectWidgetComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectWidgetComponent, "select-widget-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { isArray } from '../shared';
|
|
3
|
+
import { OnInit } from '@angular/core';
|
|
4
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SelectComponent implements OnInit {
|
|
7
|
+
private jsf;
|
|
8
|
+
formControl: AbstractControl;
|
|
9
|
+
controlName: string;
|
|
10
|
+
controlValue: any;
|
|
11
|
+
controlDisabled: boolean;
|
|
12
|
+
boundControl: boolean;
|
|
13
|
+
options: any;
|
|
14
|
+
selectList: any[];
|
|
15
|
+
isArray: typeof isArray;
|
|
16
|
+
layoutNode: any;
|
|
17
|
+
layoutIndex: number[];
|
|
18
|
+
dataIndex: number[];
|
|
19
|
+
constructor(jsf: JsonSchemaFormService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
updateValue(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "select-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SubmitComponent implements OnInit, OnDestroy {
|
|
7
|
+
private jsf;
|
|
8
|
+
formControl: AbstractControl;
|
|
9
|
+
controlName: string;
|
|
10
|
+
controlValue: any;
|
|
11
|
+
controlDisabled: boolean;
|
|
12
|
+
boundControl: boolean;
|
|
13
|
+
options: any;
|
|
14
|
+
layoutNode: any;
|
|
15
|
+
layoutIndex: number[];
|
|
16
|
+
dataIndex: number[];
|
|
17
|
+
isValidChangesSubs: Subscription;
|
|
18
|
+
constructor(jsf: JsonSchemaFormService);
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
updateValue(event: any): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubmitComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubmitComponent, "submit-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabComponent implements OnInit {
|
|
5
|
+
private jsf;
|
|
6
|
+
options: any;
|
|
7
|
+
layoutNode: any;
|
|
8
|
+
layoutIndex: number[];
|
|
9
|
+
dataIndex: number[];
|
|
10
|
+
constructor(jsf: JsonSchemaFormService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "tab-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabsComponent implements OnInit {
|
|
5
|
+
private jsf;
|
|
6
|
+
options: any;
|
|
7
|
+
itemCount: number;
|
|
8
|
+
selectedItem: number;
|
|
9
|
+
showAddTab: boolean;
|
|
10
|
+
layoutNode: any;
|
|
11
|
+
layoutIndex: number[];
|
|
12
|
+
dataIndex: number[];
|
|
13
|
+
constructor(jsf: JsonSchemaFormService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
select(index: any): void;
|
|
16
|
+
updateControl(): void;
|
|
17
|
+
setTabTitle(item: any, index: number): string;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "tabs-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ComponentFactoryResolver, ComponentRef, OnChanges, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TemplateComponent implements OnInit, OnChanges {
|
|
5
|
+
private componentFactory;
|
|
6
|
+
private jsf;
|
|
7
|
+
newComponent: ComponentRef<any>;
|
|
8
|
+
layoutNode: any;
|
|
9
|
+
layoutIndex: number[];
|
|
10
|
+
dataIndex: number[];
|
|
11
|
+
widgetContainer: ViewContainerRef;
|
|
12
|
+
constructor(componentFactory: ComponentFactoryResolver, jsf: JsonSchemaFormService);
|
|
13
|
+
ngOnInit(): void;
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
updateComponent(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateComponent, "template-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { JsonSchemaFormService } from '../json-schema-form.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TextareaComponent implements OnInit {
|
|
6
|
+
private jsf;
|
|
7
|
+
formControl: AbstractControl;
|
|
8
|
+
controlName: string;
|
|
9
|
+
controlValue: any;
|
|
10
|
+
controlDisabled: boolean;
|
|
11
|
+
boundControl: boolean;
|
|
12
|
+
options: any;
|
|
13
|
+
layoutNode: any;
|
|
14
|
+
layoutIndex: number[];
|
|
15
|
+
dataIndex: number[];
|
|
16
|
+
constructor(jsf: JsonSchemaFormService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
updateValue(event: any): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "textarea-widget", never, { "layoutNode": { "alias": "layoutNode"; "required": false; }; "layoutIndex": { "alias": "layoutIndex"; "required": false; }; "dataIndex": { "alias": "dataIndex"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|