@dignite-ng/expand.dynamic-form 0.0.8 → 0.0.11
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/esm2022/lib/components/dynamic/dynamic.component.mjs +3 -3
- package/esm2022/lib/components/from/ck-editor/ck-editor-config.component.mjs +2 -2
- package/esm2022/lib/components/from/file-explorer/file-explorer-config.component.mjs +2 -2
- package/esm2022/lib/components/from/file-explorer/file-explorer-config.mjs +3 -2
- package/esm2022/lib/components/from/form-control-group.mjs +1 -17
- package/esm2022/lib/components/from/index.mjs +1 -3
- package/esm2022/lib/dynamic-form.module.mjs +7 -22
- package/esm2022/lib/services/create-dynamic-components.service.mjs +51 -0
- package/esm2022/lib/services/index.mjs +2 -1
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs +61 -709
- package/fesm2022/dignite-ng-expand.dynamic-form.mjs.map +1 -1
- package/lib/components/dynamic/dynamic.component.d.ts +1 -1
- package/lib/components/from/index.d.ts +0 -2
- package/lib/dynamic-form.module.d.ts +8 -11
- package/lib/services/create-dynamic-components.service.d.ts +13 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/components/from/matrix/index.mjs +0 -4
- package/esm2022/lib/components/from/matrix/matrix-config.component.mjs +0 -225
- package/esm2022/lib/components/from/matrix/matrix-config.mjs +0 -50
- package/esm2022/lib/components/from/matrix/matrix-control.component.mjs +0 -110
- package/esm2022/lib/components/from/table/index.mjs +0 -4
- package/esm2022/lib/components/from/table/table-config.component.mjs +0 -171
- package/esm2022/lib/components/from/table/table-config.mjs +0 -38
- package/esm2022/lib/components/from/table/table-control.component.mjs +0 -112
- package/lib/components/from/matrix/index.d.ts +0 -3
- package/lib/components/from/matrix/matrix-config.component.d.ts +0 -72
- package/lib/components/from/matrix/matrix-config.d.ts +0 -24
- package/lib/components/from/matrix/matrix-control.component.d.ts +0 -39
- package/lib/components/from/table/index.d.ts +0 -3
- package/lib/components/from/table/table-config.component.d.ts +0 -57
- package/lib/components/from/table/table-config.d.ts +0 -18
- package/lib/components/from/table/table-control.component.d.ts +0 -36
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { DfApiService } from '../../../services';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MatrixConfigComponent {
|
|
6
|
-
private fb;
|
|
7
|
-
private _DfApiService;
|
|
8
|
-
constructor(fb: FormBuilder, _DfApiService: DfApiService);
|
|
9
|
-
/**表单控件组 */
|
|
10
|
-
_FieldControlGroup: any[];
|
|
11
|
-
/**表单控件类型 */
|
|
12
|
-
_type: any;
|
|
13
|
-
set type(v: any);
|
|
14
|
-
/**表单实体 */
|
|
15
|
-
_Entity: FormGroup | undefined;
|
|
16
|
-
set Entity(v: FormGroup);
|
|
17
|
-
/**选择的表单信息 */
|
|
18
|
-
_selected: any;
|
|
19
|
-
set selected(v: any);
|
|
20
|
-
submitclick: ElementRef;
|
|
21
|
-
dataLoaded(): Promise<void>;
|
|
22
|
-
AfterInit(): Promise<unknown>;
|
|
23
|
-
setSelectValue(): Promise<unknown>;
|
|
24
|
-
/**获取表单配置 */
|
|
25
|
-
get formConfiguration(): FormGroup<any>;
|
|
26
|
-
/**获取表单配置下的矩阵块表单数组 */
|
|
27
|
-
get MatrixBlockTypes(): FormArray<any>;
|
|
28
|
-
/**模态框-状态 */
|
|
29
|
-
matrixModalOpen: boolean;
|
|
30
|
-
/**模态框-是否正在编辑 */
|
|
31
|
-
isMatrixModalEdit: any;
|
|
32
|
-
/**模态框-用于确定模态的繁忙状态是否为真 */
|
|
33
|
-
modalBusy: boolean;
|
|
34
|
-
/**模态框-表单 */
|
|
35
|
-
matrixModalForm: FormGroup | undefined;
|
|
36
|
-
/**表单控件模板-用于在form外提交submit */
|
|
37
|
-
matrixModalModalSubmit: ElementRef;
|
|
38
|
-
/**矩阵块-选择的下标 */
|
|
39
|
-
selectMatrixBlockIndex: any;
|
|
40
|
-
/**矩阵块-选择的矩阵下字段的下标 */
|
|
41
|
-
selectMatrixFieldIndex: any;
|
|
42
|
-
/**模态框-状态改变 */
|
|
43
|
-
matrixModalVisibleChange(event: any): void;
|
|
44
|
-
/**矩阵块--新增-打开模态框 */
|
|
45
|
-
addMatrixBlockType(): void;
|
|
46
|
-
/**模态框--矩阵表单保存提交 */
|
|
47
|
-
createOrEditSave(): void;
|
|
48
|
-
/**新增矩阵块-向数组表单中增加项 */
|
|
49
|
-
addMatrixBlockTypeItem(input: any): void;
|
|
50
|
-
/**编辑矩阵块 */
|
|
51
|
-
EditMatrixBlock(input: any): void;
|
|
52
|
-
/**删除矩阵块 */
|
|
53
|
-
DeleteMatrixBlock(index: any): void;
|
|
54
|
-
/**矩阵块-选择 */
|
|
55
|
-
selectMatrixBlockChange(index: any): void;
|
|
56
|
-
/**矩阵字段-新增 */
|
|
57
|
-
addMatrixField(): void;
|
|
58
|
-
/**矩阵字段-新增矩阵字段项 */
|
|
59
|
-
addMatrixFieldItem(input: any, selectMatrixBlockIndex: any): void;
|
|
60
|
-
/**删除矩阵字段项 */
|
|
61
|
-
deleteMatrixField(MatrixFieldForm: any, index: any): void;
|
|
62
|
-
/**矩阵字段-选择 */
|
|
63
|
-
selectMatrixFieldChange(MatrixBlockIndex: any, MatrixFieldIndex: any): void;
|
|
64
|
-
get nameInput(): import("@angular/forms").AbstractControl<any, any>;
|
|
65
|
-
get FieldnameInput(): import("@angular/forms").AbstractControl<any, any>;
|
|
66
|
-
/**矩阵displayNameInput字段失去焦点 */
|
|
67
|
-
displayNameInputBlur(event: any): void;
|
|
68
|
-
/**矩阵displayNameInput字段失去焦点 */
|
|
69
|
-
MatrixFieldDisplayNameInputBlur(event: any): void;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatrixConfigComponent, never>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixConfigComponent, "df-matrix-config", never, { "type": { "alias": "type"; "required": false; }; "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, {}, never, never, false, never>;
|
|
72
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from "@angular/forms";
|
|
2
|
-
export declare class MatrixConfig {
|
|
3
|
-
'MatrixBlockTypes': any;
|
|
4
|
-
constructor(data?: MatrixConfig);
|
|
5
|
-
}
|
|
6
|
-
export declare class MatrixItemConfig {
|
|
7
|
-
displayName: any;
|
|
8
|
-
/**字段名字 */
|
|
9
|
-
name: any;
|
|
10
|
-
constructor(data?: MatrixConfig);
|
|
11
|
-
}
|
|
12
|
-
export declare class matrixFieldInputBase {
|
|
13
|
-
/**字段名称 Display name of this field */
|
|
14
|
-
displayName: any;
|
|
15
|
-
/**字段唯一名称 Unique Name*/
|
|
16
|
-
name: any;
|
|
17
|
-
/**描述 说明 */
|
|
18
|
-
description: any;
|
|
19
|
-
/**FieldType字段类型 表单控件名称 */
|
|
20
|
-
formControlName: any;
|
|
21
|
-
/**动态表单配置 */
|
|
22
|
-
formConfiguration: FormGroup | undefined;
|
|
23
|
-
constructor(data?: matrixFieldInputBase);
|
|
24
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MatrixControlComponent {
|
|
5
|
-
private fb;
|
|
6
|
-
constructor(fb: FormBuilder);
|
|
7
|
-
/**表单实体 */
|
|
8
|
-
_entity: FormGroup | undefined;
|
|
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
|
-
/**语言 */
|
|
20
|
-
_culture: any;
|
|
21
|
-
set culture(v: any);
|
|
22
|
-
submitclick: ElementRef;
|
|
23
|
-
/** 获取父级字段代表的表单组*/
|
|
24
|
-
extraProperties: FormGroup | undefined;
|
|
25
|
-
/**数据加载完成 */
|
|
26
|
-
dataLoaded(): Promise<void>;
|
|
27
|
-
formConfiguration: any;
|
|
28
|
-
/**获取表格字段代表的控件 */
|
|
29
|
-
fieldNameControl: FormArray | undefined;
|
|
30
|
-
AfterInit(): Promise<unknown>;
|
|
31
|
-
/**矩阵列表 */
|
|
32
|
-
MatrixBlockTypesList: any[];
|
|
33
|
-
/**增加指定矩阵控件项 */
|
|
34
|
-
addMatrixControl(item: any): void;
|
|
35
|
-
/**删除矩阵控件 */
|
|
36
|
-
deleteMatrixControl(index: any): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatrixControlComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatrixControlComponent, "df-matrix-control", never, { "entity": { "alias": "entity"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "parentFiledName": { "alias": "parentFiledName"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "culture": { "alias": "culture"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
3
|
-
import { DfApiService } from '../../../services';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TableConfigComponent {
|
|
6
|
-
private fb;
|
|
7
|
-
private _DfApiService;
|
|
8
|
-
constructor(fb: FormBuilder, _DfApiService: DfApiService);
|
|
9
|
-
/**表单实体 */
|
|
10
|
-
_Entity: FormGroup | undefined;
|
|
11
|
-
set Entity(v: FormGroup);
|
|
12
|
-
/**选择的表单信息 */
|
|
13
|
-
_selected: any;
|
|
14
|
-
set selected(v: any);
|
|
15
|
-
/**表单控件组 */
|
|
16
|
-
_fieldControlGroup: any[];
|
|
17
|
-
/**表单控件类型 */
|
|
18
|
-
_type: any;
|
|
19
|
-
set type(v: any);
|
|
20
|
-
get formConfiguration(): FormGroup<any>;
|
|
21
|
-
get TableColumns(): FormArray<any>;
|
|
22
|
-
submitclick: ElementRef;
|
|
23
|
-
dataLoaded(): Promise<void>;
|
|
24
|
-
/**增加选项 */
|
|
25
|
-
addTableColumns(): void;
|
|
26
|
-
/**删除某个选项 */
|
|
27
|
-
deleteTableColumns(index: any): void;
|
|
28
|
-
AfterInit(): Promise<unknown>;
|
|
29
|
-
itemForm: any;
|
|
30
|
-
/**选择表格的表单控件 */
|
|
31
|
-
selectTableControl(event: any, i: any, item: any): void;
|
|
32
|
-
CurrentSelectionTableControlName: any;
|
|
33
|
-
/**正在创建或编辑的表格项下标 */
|
|
34
|
-
TableColumnsIndex: any;
|
|
35
|
-
/**创建站点模态框状态 */
|
|
36
|
-
tableSelectOpen: boolean;
|
|
37
|
-
/**用于确定模态的繁忙状态是否为真 */
|
|
38
|
-
modalBusy: boolean;
|
|
39
|
-
/**创建站点表单 */
|
|
40
|
-
tableSelectForm: FormGroup | undefined;
|
|
41
|
-
/**表格已选择数据 */
|
|
42
|
-
_tableSelected: any;
|
|
43
|
-
/**表单控件模板-动态赋值表单控件 */
|
|
44
|
-
tableSelectModalSubmit: ElementRef;
|
|
45
|
-
/**创建站点模态框状态改变 */
|
|
46
|
-
tableSelectVisibleChange(event: any): void;
|
|
47
|
-
/**表单保存提交 */
|
|
48
|
-
createOrEditSave(): void;
|
|
49
|
-
/**编辑站点按钮 */
|
|
50
|
-
EditSitesBtn(rows: any, i: any): void;
|
|
51
|
-
/**调整表格位置 */
|
|
52
|
-
TableArrowUpOrDown(type: any, index: any): void;
|
|
53
|
-
/**字段标签input失去标点生成字段名字 */
|
|
54
|
-
disPlayNameInputBlur(event: any, item: any): void;
|
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableConfigComponent, never>;
|
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableConfigComponent, "df-table-config", never, { "Entity": { "alias": "Entity"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
57
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class TableConfig {
|
|
2
|
-
TableColumns: any;
|
|
3
|
-
constructor(data?: TableConfig);
|
|
4
|
-
}
|
|
5
|
-
export declare class TableFormControl {
|
|
6
|
-
/**列标题 */
|
|
7
|
-
displayName: any;
|
|
8
|
-
/**空间配置 */
|
|
9
|
-
formConfiguration: any;
|
|
10
|
-
/**列名 */
|
|
11
|
-
name: any;
|
|
12
|
-
formControlName: any;
|
|
13
|
-
/**是否必填 */
|
|
14
|
-
required: any;
|
|
15
|
-
/**描述 */
|
|
16
|
-
description: any;
|
|
17
|
-
constructor(data?: TableConfig);
|
|
18
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class TableControlComponent {
|
|
5
|
-
constructor();
|
|
6
|
-
private fb;
|
|
7
|
-
/**表单实体 */
|
|
8
|
-
_entity: FormGroup | undefined;
|
|
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
|
-
/** 获取父级字段代表的表单组*/
|
|
21
|
-
extraProperties: FormGroup | undefined;
|
|
22
|
-
/**数据加载完成 */
|
|
23
|
-
dataLoaded(): Promise<void>;
|
|
24
|
-
formConfiguration: any;
|
|
25
|
-
/**获取表格字段代表的控件 */
|
|
26
|
-
fieldNameControl: FormArray | undefined;
|
|
27
|
-
AfterInit(): Promise<unknown>;
|
|
28
|
-
/**增加表格项 */
|
|
29
|
-
addTableControlItem(): void;
|
|
30
|
-
/**删除表格项 */
|
|
31
|
-
minusTableControlItem(index: any): void;
|
|
32
|
-
/**调整表格位置 */
|
|
33
|
-
TableArrowUpOrDown(type: any, index: any): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableControlComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableControlComponent, "df-table-control", 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>;
|
|
36
|
-
}
|