@dignite-ng/expand.dynamic-form 3.0.0-rc.4 → 3.0.0-rc.40
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/README.md +117 -13
- package/esm2022/dignite-ng-expand.dynamic-form.mjs +1 -1
- package/esm2022/lib/components/dynamic/dynamic-config.component.mjs +11 -0
- package/esm2022/lib/components/dynamic/dynamic-control.component.mjs +11 -0
- package/esm2022/lib/components/dynamic/dynamic-search.component.mjs +66 -0
- package/esm2022/lib/components/dynamic/dynamic-view.component.mjs +58 -0
- package/esm2022/lib/components/dynamic/dynamic.component.mjs +10 -9
- package/esm2022/lib/components/dynamic/index.mjs +5 -1
- package/esm2022/lib/components/form/date-edit/date-edit-config.component.mjs +5 -4
- package/esm2022/lib/components/form/date-edit/date-edit-config.mjs +1 -1
- package/esm2022/lib/components/form/date-edit/date-edit-control.component.mjs +5 -5
- package/esm2022/lib/components/form/date-edit/date-edit-view.component.mjs +40 -0
- package/esm2022/lib/components/form/date-edit/index.mjs +2 -1
- package/esm2022/lib/components/form/form-control-group.mjs +27 -8
- package/esm2022/lib/components/form/index.mjs +1 -1
- package/esm2022/lib/components/form/numeric-edit/index.mjs +1 -1
- package/esm2022/lib/components/form/numeric-edit/numberic-edit-config.component.mjs +5 -4
- package/esm2022/lib/components/form/numeric-edit/numberic-edit-config.mjs +4 -3
- package/esm2022/lib/components/form/numeric-edit/numberic-edit-control.component.mjs +24 -16
- package/esm2022/lib/components/form/numeric-edit/numeric-edit-search.component.mjs +107 -0
- package/esm2022/lib/components/form/numeric-edit/numeric-edit-view.component.mjs +40 -0
- package/esm2022/lib/components/form/select/index.mjs +3 -1
- package/esm2022/lib/components/form/select/select-config.component.mjs +26 -12
- package/esm2022/lib/components/form/select/select-config.mjs +1 -1
- package/esm2022/lib/components/form/select/select-control.component.mjs +27 -19
- package/esm2022/lib/components/form/select/select-search.component.mjs +94 -0
- package/esm2022/lib/components/form/select/select-view.component.mjs +44 -0
- package/esm2022/lib/components/form/switch/index.mjs +3 -1
- package/esm2022/lib/components/form/switch/switch-config.component.mjs +5 -4
- package/esm2022/lib/components/form/switch/switch-config.mjs +1 -1
- package/esm2022/lib/components/form/switch/switch-control.component.mjs +5 -5
- package/esm2022/lib/components/form/switch/switch-search.component.mjs +79 -0
- package/esm2022/lib/components/form/switch/switch-view.component.mjs +40 -0
- package/esm2022/lib/components/form/text-edit/index.mjs +3 -1
- package/esm2022/lib/components/form/text-edit/text-edit-config.component.mjs +9 -5
- package/esm2022/lib/components/form/text-edit/text-edit-config.mjs +1 -1
- package/esm2022/lib/components/form/text-edit/text-edit-search.component.mjs +81 -0
- package/esm2022/lib/components/form/text-edit/text-edit-view.component.mjs +39 -0
- package/esm2022/lib/components/form/text-edit/text-edit.component.mjs +8 -7
- package/esm2022/lib/components/index.mjs +1 -1
- package/esm2022/lib/dynamic-form.module.mjs +82 -6
- package/esm2022/lib/enums/date-edit-interfaces.mjs +1 -1
- package/esm2022/lib/enums/text-edit-mode.mjs +1 -1
- package/esm2022/lib/interfaces/form-config-interfaces.mjs +1 -1
- package/esm2022/lib/interfaces/index.mjs +1 -1
- package/esm2022/lib/services/df-api.service.mjs +1 -1
- package/esm2022/lib/services/form-control.service.mjs +33 -0
- package/esm2022/lib/services/index.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs +867 -79
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
- package/lib/components/dynamic/dynamic-config.component.d.ts +5 -0
- package/lib/components/dynamic/dynamic-control.component.d.ts +5 -0
- package/lib/components/dynamic/dynamic-search.component.d.ts +28 -0
- package/lib/components/dynamic/dynamic-view.component.d.ts +24 -0
- package/lib/components/dynamic/dynamic.component.d.ts +1 -1
- package/lib/components/dynamic/index.d.ts +4 -0
- package/lib/components/form/date-edit/date-edit-view.component.d.ts +17 -0
- package/lib/components/form/date-edit/index.d.ts +1 -0
- package/lib/components/form/numeric-edit/numberic-edit-control.component.d.ts +2 -1
- package/lib/components/form/numeric-edit/numeric-edit-search.component.d.ts +35 -0
- package/lib/components/form/numeric-edit/numeric-edit-view.component.d.ts +18 -0
- package/lib/components/form/select/index.d.ts +2 -0
- package/lib/components/form/select/select-config.component.d.ts +2 -0
- package/lib/components/form/select/select-control.component.d.ts +2 -2
- package/lib/components/form/select/select-search.component.d.ts +30 -0
- package/lib/components/form/select/select-view.component.d.ts +17 -0
- package/lib/components/form/switch/index.d.ts +2 -0
- package/lib/components/form/switch/switch-control.component.d.ts +1 -1
- package/lib/components/form/switch/switch-search.component.d.ts +28 -0
- package/lib/components/form/switch/switch-view.component.d.ts +17 -0
- package/lib/components/form/text-edit/index.d.ts +2 -0
- package/lib/components/form/text-edit/text-edit-config.component.d.ts +2 -0
- package/lib/components/form/text-edit/text-edit-search.component.d.ts +30 -0
- package/lib/components/form/text-edit/text-edit-view.component.d.ts +17 -0
- package/lib/dynamic-form.module.d.ts +21 -5
- package/lib/interfaces/form-config-interfaces.d.ts +8 -4
- package/lib/services/form-control.service.d.ts +9 -0
- package/package.json +11 -9
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DynamicConfigComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicConfigComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicConfigComponent, "df-dynamic-config", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DynamicControlComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicControlComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicControlComponent, "df-dynamic-control", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormControlService } from '../../services/form-control.service';
|
|
3
|
+
import { FieldControlGroupInterfaces } from '../../interfaces';
|
|
4
|
+
import { FormGroup } from '@angular/forms';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DynamicSearchComponent {
|
|
7
|
+
private _FormControlService;
|
|
8
|
+
constructor(_FormControlService: FormControlService);
|
|
9
|
+
/**语言 */
|
|
10
|
+
_culture: FormGroup | any;
|
|
11
|
+
set culture(v: any);
|
|
12
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
13
|
+
_parentFiledName: any;
|
|
14
|
+
set parentFiledName(v: any);
|
|
15
|
+
/**字段配置列表 */
|
|
16
|
+
_fields: any;
|
|
17
|
+
set fields(v: any);
|
|
18
|
+
/**表单实体 */
|
|
19
|
+
_entity: FormGroup | undefined;
|
|
20
|
+
set entity(v: any);
|
|
21
|
+
/**表单控件模板-动态表单配置组件 */
|
|
22
|
+
FormSearchTemplateRef?: ViewContainerRef;
|
|
23
|
+
ngAfterContentInit(): void;
|
|
24
|
+
/**加载动态展示组件 */
|
|
25
|
+
loadComponent(FieldControlItem?: FieldControlGroupInterfaces): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicSearchComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicSearchComponent, "df-dynamic-search", never, { "culture": { "alias": "culture"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { FormControlService } from '../../services/form-control.service';
|
|
3
|
+
import { FieldControlGroupInterfaces } from '../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DynamicViewComponent {
|
|
6
|
+
private _FormControlService;
|
|
7
|
+
constructor(_FormControlService: FormControlService);
|
|
8
|
+
/**是否显示再列表 */
|
|
9
|
+
showInList: boolean;
|
|
10
|
+
/**表单字段数据 */
|
|
11
|
+
fields: any;
|
|
12
|
+
/**表单控件类型 */
|
|
13
|
+
type: any;
|
|
14
|
+
/**表单控件Value */
|
|
15
|
+
_value: any;
|
|
16
|
+
set value(v: any);
|
|
17
|
+
/**表单控件模板-动态表单配置组件 */
|
|
18
|
+
FormTemplateRef?: ViewContainerRef;
|
|
19
|
+
ngAfterContentInit(): void;
|
|
20
|
+
/**加载动态展示组件 */
|
|
21
|
+
loadViewComponent(FieldControlItem?: FieldControlGroupInterfaces): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicViewComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicViewComponent, "df-dynamic-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
@@ -26,7 +26,7 @@ export declare class DynamicComponent {
|
|
|
26
26
|
FormControlRef?: ViewContainerRef;
|
|
27
27
|
/**表单控件模板-动态表单组件 */
|
|
28
28
|
FormComponentsRef?: ViewContainerRef;
|
|
29
|
-
constructor(mergedConfig: any);
|
|
29
|
+
constructor(mergedConfig: any[]);
|
|
30
30
|
/**数据加载完成 */
|
|
31
31
|
dataLoaded(val: any): Promise<void>;
|
|
32
32
|
/**加载动态表单配置组件 */
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DateEditViewComponent {
|
|
3
|
+
/**展示则内容 */
|
|
4
|
+
showValue: any;
|
|
5
|
+
/**是否显示再列表 */
|
|
6
|
+
showInList: boolean;
|
|
7
|
+
/**表单字段数据 */
|
|
8
|
+
fields: any;
|
|
9
|
+
/**表单控件类型 */
|
|
10
|
+
type: any;
|
|
11
|
+
/**表单控件Value */
|
|
12
|
+
_value: any;
|
|
13
|
+
set value(v: any);
|
|
14
|
+
ngAfterContentInit(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateEditViewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateEditViewComponent, "df-date-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -18,13 +18,14 @@ export declare class NumbericEditControlComponent {
|
|
|
18
18
|
_selected: any;
|
|
19
19
|
set selected(v: any);
|
|
20
20
|
/**表单实体 */
|
|
21
|
-
_entity: FormGroup |
|
|
21
|
+
_entity: FormGroup | any;
|
|
22
22
|
set entity(v: any);
|
|
23
23
|
submitclick: ElementRef;
|
|
24
24
|
get extraProperties(): FormGroup;
|
|
25
25
|
get fieldInput(): AbstractControl<any, any>;
|
|
26
26
|
/**数据加载完成 */
|
|
27
27
|
dataLoaded(): Promise<void>;
|
|
28
|
+
formConfiguration: any;
|
|
28
29
|
AfterInit(): Promise<unknown>;
|
|
29
30
|
ngOnDestroy(): void;
|
|
30
31
|
/**数字框输入 */
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NumericEditSearchComponent {
|
|
5
|
+
private fb;
|
|
6
|
+
constructor(fb: FormBuilder);
|
|
7
|
+
/**字段配置列表 */
|
|
8
|
+
_fields: any;
|
|
9
|
+
set fields(v: any);
|
|
10
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
11
|
+
_parentFiledName: any;
|
|
12
|
+
set parentFiledName(v: any);
|
|
13
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
14
|
+
_selected: any;
|
|
15
|
+
set selected(v: any);
|
|
16
|
+
/**表单实体 */
|
|
17
|
+
_entity: FormGroup | undefined;
|
|
18
|
+
set entity(v: any);
|
|
19
|
+
submitclick: ElementRef;
|
|
20
|
+
get extraProperties(): FormGroup;
|
|
21
|
+
private cdr;
|
|
22
|
+
/**数据加载完成 */
|
|
23
|
+
dataLoaded(): Promise<void>;
|
|
24
|
+
/**定义动态字符 */
|
|
25
|
+
get numberInput(): FormControl;
|
|
26
|
+
/**定义number表单用于获取最小值最大值 */
|
|
27
|
+
numberForm: FormGroup;
|
|
28
|
+
get minInput(): FormControl;
|
|
29
|
+
get maxInput(): FormControl;
|
|
30
|
+
formConfiguration: any;
|
|
31
|
+
AfterInit(): Promise<unknown>;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericEditSearchComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericEditSearchComponent, "df-numeric-edit-search", never, { "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AfterContentInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NumericEditViewComponent implements AfterContentInit {
|
|
4
|
+
/**展示则内容 */
|
|
5
|
+
showValue: any;
|
|
6
|
+
/**是否显示再列表 */
|
|
7
|
+
showInList: boolean;
|
|
8
|
+
/**表单字段数据 */
|
|
9
|
+
fields: any;
|
|
10
|
+
/**表单控件类型 */
|
|
11
|
+
type: any;
|
|
12
|
+
/**表单控件Value */
|
|
13
|
+
_value: any;
|
|
14
|
+
set value(v: any);
|
|
15
|
+
ngAfterContentInit(): Promise<void>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumericEditViewComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumericEditViewComponent, "df-numeric-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -26,6 +26,8 @@ export declare class SelectConfigComponent {
|
|
|
26
26
|
deleteSelectOptions(index: any): void;
|
|
27
27
|
AfterInit(): Promise<unknown>;
|
|
28
28
|
textChange(event: any, index: any): void;
|
|
29
|
+
/**调整表格位置 */
|
|
30
|
+
drop(event: any): void;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectConfigComponent, never>;
|
|
30
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectConfigComponent, "df-select-config", never, { "type": { "alias": "type"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
33
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SelectControlComponent {
|
|
4
|
+
export declare class SelectControlComponent implements OnDestroy {
|
|
5
5
|
private fb;
|
|
6
6
|
constructor(fb: FormBuilder);
|
|
7
7
|
/**字段配置列表 */
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectSearchComponent {
|
|
5
|
+
private fb;
|
|
6
|
+
constructor(fb: FormBuilder);
|
|
7
|
+
/**字段配置列表 */
|
|
8
|
+
_fields: any;
|
|
9
|
+
set fields(v: any);
|
|
10
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
11
|
+
_parentFiledName: any;
|
|
12
|
+
set parentFiledName(v: any);
|
|
13
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
14
|
+
_selected: any;
|
|
15
|
+
set selected(v: any);
|
|
16
|
+
/**表单实体 */
|
|
17
|
+
_entity: FormGroup | undefined;
|
|
18
|
+
set entity(v: any);
|
|
19
|
+
submitclick: ElementRef;
|
|
20
|
+
get extraProperties(): FormGroup;
|
|
21
|
+
private cdr;
|
|
22
|
+
/**数据加载完成 */
|
|
23
|
+
dataLoaded(): Promise<void>;
|
|
24
|
+
formConfiguration: any;
|
|
25
|
+
AfterInit(): Promise<unknown>;
|
|
26
|
+
changeValue(event: any): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectSearchComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectSearchComponent, "df-select-search", never, { "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SelectViewComponent {
|
|
3
|
+
/**展示则内容 */
|
|
4
|
+
showValue: any;
|
|
5
|
+
/**是否显示再列表 */
|
|
6
|
+
showInList: boolean;
|
|
7
|
+
/**表单字段数据 */
|
|
8
|
+
fields: any;
|
|
9
|
+
/**表单控件类型 */
|
|
10
|
+
type: any;
|
|
11
|
+
/**表单控件Value */
|
|
12
|
+
_value: any;
|
|
13
|
+
set value(v: any);
|
|
14
|
+
ngAfterContentInit(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectViewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectViewComponent, "df-select-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SwitchSearchComponent {
|
|
5
|
+
private fb;
|
|
6
|
+
constructor(fb: FormBuilder);
|
|
7
|
+
/**表单实体 */
|
|
8
|
+
_entity: FormGroup | any;
|
|
9
|
+
set entity(v: any);
|
|
10
|
+
/**字段配置列表 */
|
|
11
|
+
_fields: any;
|
|
12
|
+
set fields(v: any);
|
|
13
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
14
|
+
_parentFiledName: any;
|
|
15
|
+
set parentFiledName(v: any);
|
|
16
|
+
/** */
|
|
17
|
+
_selected: any;
|
|
18
|
+
set selected(v: any);
|
|
19
|
+
submitclick: ElementRef;
|
|
20
|
+
get extraProperties(): FormGroup;
|
|
21
|
+
private cdr;
|
|
22
|
+
/**数据加载完成 */
|
|
23
|
+
dataLoaded(): Promise<void>;
|
|
24
|
+
AfterInit(): Promise<unknown>;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchSearchComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchSearchComponent, "df-switch-search", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SwitchViewComponent {
|
|
3
|
+
/**展示则内容 */
|
|
4
|
+
showValue: any;
|
|
5
|
+
/**是否显示再列表 */
|
|
6
|
+
showInList: boolean;
|
|
7
|
+
/**表单字段数据 */
|
|
8
|
+
fields: any;
|
|
9
|
+
/**表单控件类型 */
|
|
10
|
+
type: any;
|
|
11
|
+
/**表单控件Value */
|
|
12
|
+
_value: any;
|
|
13
|
+
set value(v: any);
|
|
14
|
+
ngAfterContentInit(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchViewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchViewComponent, "df-switch-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -19,6 +19,8 @@ export declare class TextEditConfigComponent {
|
|
|
19
19
|
submitclick: ElementRef;
|
|
20
20
|
private cdr;
|
|
21
21
|
dataLoaded(): Promise<void>;
|
|
22
|
+
RadioIndex1: any;
|
|
23
|
+
RadioIndex2: any;
|
|
22
24
|
AfterInit(): Promise<unknown>;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditConfigComponent, never>;
|
|
24
26
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditConfigComponent, "df-text-edit-config", never, { "type": { "alias": "type"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
+
import { TextEditMode } from '../../../enums/text-edit-mode';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TextEditSearchComponent {
|
|
6
|
+
private fb;
|
|
7
|
+
constructor(fb: FormBuilder);
|
|
8
|
+
_TextEditMode: typeof TextEditMode;
|
|
9
|
+
/**表单实体 */
|
|
10
|
+
_entity: FormGroup | undefined;
|
|
11
|
+
set entity(v: any);
|
|
12
|
+
/**字段配置列表 */
|
|
13
|
+
_fields: any;
|
|
14
|
+
set fields(v: any);
|
|
15
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
16
|
+
_parentFiledName: any;
|
|
17
|
+
set parentFiledName(v: any);
|
|
18
|
+
/**父级字段名称,用于为表单设置控件赋值 */
|
|
19
|
+
_selected: any;
|
|
20
|
+
set selected(v: any);
|
|
21
|
+
submitclick: ElementRef;
|
|
22
|
+
extraProperties: FormGroup | undefined;
|
|
23
|
+
private cdr;
|
|
24
|
+
dataLoaded(): Promise<void>;
|
|
25
|
+
AfterInit(): Promise<unknown>;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
isObjEmpty: (obj: any) => boolean;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditSearchComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditSearchComponent, "df-text-edit-search", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TextEditViewComponent {
|
|
3
|
+
/**展示则内容 */
|
|
4
|
+
showValue: any;
|
|
5
|
+
/**是否显示再列表 */
|
|
6
|
+
showInList: boolean;
|
|
7
|
+
/**表单字段数据 */
|
|
8
|
+
fields: any;
|
|
9
|
+
/**表单控件类型 */
|
|
10
|
+
type: any;
|
|
11
|
+
/**表单控件Value */
|
|
12
|
+
_value: any;
|
|
13
|
+
set value(v: any);
|
|
14
|
+
ngAfterContentInit(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditViewComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditViewComponent, "df-text-edit-view", never, { "showInList": { "alias": "showInList"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -11,13 +11,29 @@ import * as i8 from "./components/form/date-edit/date-edit-control.component";
|
|
|
11
11
|
import * as i9 from "./components/form/select/select-config.component";
|
|
12
12
|
import * as i10 from "./components/form/select/select-control.component";
|
|
13
13
|
import * as i11 from "./components/dynamic/dynamic.component";
|
|
14
|
-
import * as i12 from "
|
|
15
|
-
import * as i13 from "
|
|
16
|
-
import * as i14 from "
|
|
17
|
-
import * as i15 from "
|
|
14
|
+
import * as i12 from "./components/dynamic/dynamic-config.component";
|
|
15
|
+
import * as i13 from "./components/dynamic/dynamic-view.component";
|
|
16
|
+
import * as i14 from "./components/dynamic/dynamic-control.component";
|
|
17
|
+
import * as i15 from "./components/form/select/select-view.component";
|
|
18
|
+
import * as i16 from "./components/form/switch/switch-view.component";
|
|
19
|
+
import * as i17 from "./components/form/text-edit/text-edit-view.component";
|
|
20
|
+
import * as i18 from "./components/form/date-edit/date-edit-view.component";
|
|
21
|
+
import * as i19 from "./components/form/numeric-edit/numeric-edit-view.component";
|
|
22
|
+
import * as i20 from "./components/dynamic/dynamic-search.component";
|
|
23
|
+
import * as i21 from "./components/form/select/select-search.component";
|
|
24
|
+
import * as i22 from "./components/form/text-edit/text-edit-search.component";
|
|
25
|
+
import * as i23 from "./components/form/switch/switch-search.component";
|
|
26
|
+
import * as i24 from "./components/form/numeric-edit/numeric-edit-search.component";
|
|
27
|
+
import * as i25 from "@angular/forms";
|
|
28
|
+
import * as i26 from "@abp/ng.core";
|
|
29
|
+
import * as i27 from "@abp/ng.theme.shared";
|
|
30
|
+
import * as i28 from "@ng-bootstrap/ng-bootstrap";
|
|
31
|
+
import * as i29 from "ng-zorro-antd/select";
|
|
32
|
+
import * as i30 from "@angular/cdk/drag-drop";
|
|
33
|
+
import * as i31 from "@abp/ng.components/extensible";
|
|
18
34
|
export declare class DynamicFormModule {
|
|
19
35
|
static forRoot(config?: any): ModuleWithProviders<DynamicFormModule>;
|
|
20
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicFormModule, [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i11.DynamicComponent], [typeof
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DynamicFormModule, [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent, typeof i15.SelectViewComponent, typeof i16.SwitchViewComponent, typeof i17.TextEditViewComponent, typeof i18.DateEditViewComponent, typeof i19.NumericEditViewComponent, typeof i20.DynamicSearchComponent, typeof i21.SelectSearchComponent, typeof i22.TextEditSearchComponent, typeof i23.SwitchSearchComponent, typeof i24.NumericEditSearchComponent], [typeof i25.FormsModule, typeof i26.CoreModule, typeof i27.ThemeSharedModule, typeof i25.ReactiveFormsModule, typeof i28.NgbDropdownModule, typeof i29.NzSelectModule, typeof i30.DragDropModule, typeof i28.NgbDatepickerModule, typeof i31.ExtensibleModule], [typeof i1.TextEditConfigComponent, typeof i2.TextEditComponent, typeof i17.TextEditViewComponent, typeof i3.SwitchConfigComponent, typeof i4.SwitchControlComponent, typeof i16.SwitchViewComponent, typeof i5.NumbericEditConfigComponent, typeof i6.NumbericEditControlComponent, typeof i7.DateEditConfigComponent, typeof i8.DateEditControlComponent, typeof i18.DateEditViewComponent, typeof i9.SelectConfigComponent, typeof i10.SelectControlComponent, typeof i15.SelectViewComponent, typeof i21.SelectSearchComponent, typeof i11.DynamicComponent, typeof i12.DynamicConfigComponent, typeof i13.DynamicViewComponent, typeof i14.DynamicControlComponent, typeof i20.DynamicSearchComponent]>;
|
|
22
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<DynamicFormModule>;
|
|
23
39
|
}
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { Type } from
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
2
|
export interface FieldControlGroupInterfaces {
|
|
3
3
|
displayName: string;
|
|
4
4
|
name: string;
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* 动态表单控件
|
|
7
|
+
*/
|
|
8
8
|
fieldComponent?: Type<any>;
|
|
9
9
|
/**
|
|
10
10
|
* 表单控件配置组件
|
|
11
11
|
*/
|
|
12
12
|
fieldConfigComponent?: Type<any>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* 表单控件显示的组件
|
|
15
15
|
*/
|
|
16
16
|
fieldViewComponent?: Type<any>;
|
|
17
|
+
/**
|
|
18
|
+
* 表单控件查询的组件
|
|
19
|
+
*/
|
|
20
|
+
fieldSearchComponent?: Type<any>;
|
|
17
21
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormControlService {
|
|
3
|
+
private mergedConfig;
|
|
4
|
+
constructor(mergedConfig: any[]);
|
|
5
|
+
_FieldControlGroup: import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
|
|
6
|
+
AddFieldControlGroup(): import("@dignite-ng/expand.dynamic-form").FieldControlGroupInterfaces[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormControlService>;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dignite-ng/expand.dynamic-form",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"
|
|
3
|
+
"version": "3.0.0-rc.40",
|
|
4
|
+
"homepage": "https://abp.io",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/abpframework/abp.git"
|
|
7
8
|
},
|
|
8
9
|
"dependencies": {
|
|
9
|
-
"tslib": "^2.
|
|
10
|
+
"tslib": "^2.0.0"
|
|
10
11
|
},
|
|
11
|
-
"sideEffects": false,
|
|
12
12
|
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
"registry": "https://registry.npmjs.org/"
|
|
13
|
+
"access": "public"
|
|
15
14
|
},
|
|
15
|
+
"license": "LGPL-3.0",
|
|
16
|
+
"keywords": [],
|
|
16
17
|
"module": "fesm2022/dignite-ng-expand.dynamic-form.mjs",
|
|
17
18
|
"typings": "index.d.ts",
|
|
18
19
|
"exports": {
|
|
@@ -25,5 +26,6 @@
|
|
|
25
26
|
"esm": "./esm2022/dignite-ng-expand.dynamic-form.mjs",
|
|
26
27
|
"default": "./fesm2022/dignite-ng-expand.dynamic-form.mjs"
|
|
27
28
|
}
|
|
28
|
-
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false
|
|
29
31
|
}
|