@byteluck-fe/model-driven-controls 2.7.0-beta.2 → 2.8.0-alpha.1
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/dist/esm/baseControls/Button/designer.js +2 -1
- package/dist/esm/baseControls/Button/property.js +4 -1
- package/dist/esm/baseControls/ExportListButton/property.js +3 -0
- package/dist/esm/baseControls/ImportRecordListButton/designer.js +2 -1
- package/dist/esm/baseControls/ImportRecordListButton/property.js +3 -0
- package/dist/esm/baseControls/Text/property.js +3 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/designer.js +140 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/index.js +11 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/property.js +127 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/runtime.js +104 -0
- package/dist/esm/columnControls/ApprovalStatusColumn/types.js +0 -0
- package/dist/esm/columnControls/ArrayColumn/designer.js +8 -1
- package/dist/esm/columnControls/ArrayColumn/property.js +10 -8
- package/dist/esm/columnControls/AutoNumberColumn/designer.js +5 -1
- package/dist/esm/columnControls/CustomColumn/designer.js +4 -0
- package/dist/esm/columnControls/CustomColumn/property.js +25 -1
- package/dist/esm/columnControls/DecimalColumn/designer.js +8 -4
- package/dist/esm/columnControls/DepartmentColumn/designer.js +4 -0
- package/dist/esm/columnControls/EmployeeColumn/designer.js +4 -0
- package/dist/esm/columnControls/FileColumn/designer.js +4 -0
- package/dist/esm/columnControls/ImageColumn/designer.js +4 -0
- package/dist/esm/columnControls/LocationColumn/designer.js +5 -1
- package/dist/esm/columnControls/OrderColumn/designer.js +4 -0
- package/dist/esm/columnControls/PeopleColumn/designer.js +4 -0
- package/dist/esm/columnControls/TextColumn/designer.js +8 -0
- package/dist/esm/columnControls/TimescopeColumn/designer.js +4 -0
- package/dist/esm/columnControls/TimestampColumn/designer.js +4 -0
- package/dist/esm/columnControls/VarcharColumn/designer.js +9 -1
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Attachment/property.js +4 -7
- package/dist/esm/formControls/DatePicker/designer.js +4 -1
- package/dist/esm/formControls/DateRange/designer.js +4 -1
- package/dist/esm/formControls/Image/designer.js +2 -9
- package/dist/esm/formControls/Image/property.js +2 -30
- package/dist/esm/formControls/SearchDateRange/designer.js +4 -1
- package/dist/esm/formControls/Select/designer.js +5 -1
- package/dist/esm/formControls/Select/property.js +38 -2
- package/dist/esm/formControls/SelectMultiple/designer.js +5 -1
- package/dist/esm/formControls/SelectMultiple/property.js +38 -2
- package/dist/esm/formControls/SelectRelation/designer.js +5 -3
- package/dist/esm/formControls/SelectRelation/property.js +19 -1
- package/dist/esm/framework.js +2 -2
- package/dist/esm/index.js +10 -2
- package/dist/esm/layoutControls/ActionBar/designer.js +156 -0
- package/dist/esm/layoutControls/ActionBar/index.js +11 -0
- package/dist/esm/layoutControls/ActionBar/property.js +111 -0
- package/dist/esm/layoutControls/ActionBar/runtime.js +125 -0
- package/dist/esm/layoutControls/ActionBar/types.js +0 -0
- package/dist/esm/layoutControls/Col/designer.js +1 -0
- package/dist/esm/layoutControls/GridLayoutContainer/designer.js +152 -0
- package/dist/esm/layoutControls/GridLayoutContainer/index.js +11 -0
- package/dist/esm/layoutControls/GridLayoutContainer/property.js +107 -0
- package/dist/esm/layoutControls/GridLayoutContainer/runtime.js +124 -0
- package/dist/esm/layoutControls/GridLayoutContainer/types.js +0 -0
- package/dist/esm/layoutControls/ListView/designer.js +4 -0
- package/dist/esm/layoutControls/ListView/property.js +89 -3
- package/dist/esm/layoutControls/index.js +2 -0
- package/dist/esm/listControls/GridTable/designer.js +4 -0
- package/dist/esm/listControls/GridTable/property.js +8 -0
- package/dist/esm/listControls/SubTable/designer.js +6 -2
- package/dist/esm/listControls/SubTable/property.js +9 -0
- package/dist/esm/searchControls/SimpleSearch/designer.js +8 -0
- package/dist/esm/searchControls/SimpleSearch/property.js +14 -0
- package/dist/esm/wrapControls/GridLayoutWrap/Setting.js +27 -0
- package/dist/esm/wrapControls/GridLayoutWrap/designer.js +144 -0
- package/dist/esm/wrapControls/GridLayoutWrap/index.js +20 -0
- package/dist/esm/wrapControls/GridLayoutWrap/property.js +101 -0
- package/dist/esm/wrapControls/GridLayoutWrap/runtime.js +130 -0
- package/dist/esm/wrapControls/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/Button/property.d.ts +2 -1
- package/dist/types/baseControls/ExportListButton/property.d.ts +1 -0
- package/dist/types/baseControls/ImportRecordListButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/columnControls/ApprovalStatusColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/ApprovalStatusColumn/index.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/property.d.ts +29 -0
- package/dist/types/columnControls/ApprovalStatusColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/ApprovalStatusColumn/types.d.ts +0 -0
- package/dist/types/columnControls/ArrayColumn/property.d.ts +3 -1
- package/dist/types/columnControls/CustomColumn/property.d.ts +8 -1
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/Attachment/property.d.ts +1 -0
- package/dist/types/formControls/Image/property.d.ts +0 -2
- package/dist/types/formControls/Select/property.d.ts +20 -1
- package/dist/types/formControls/SelectMultiple/property.d.ts +20 -1
- package/dist/types/formControls/SelectRelation/property.d.ts +8 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/layoutControls/ActionBar/designer.d.ts +13 -0
- package/dist/types/layoutControls/ActionBar/index.d.ts +12 -0
- package/dist/types/layoutControls/ActionBar/property.d.ts +9 -0
- package/dist/types/layoutControls/ActionBar/runtime.d.ts +10 -0
- package/dist/types/layoutControls/ActionBar/types.d.ts +0 -0
- package/dist/types/layoutControls/GridLayoutContainer/designer.d.ts +14 -0
- package/dist/types/layoutControls/GridLayoutContainer/index.d.ts +12 -0
- package/dist/types/layoutControls/GridLayoutContainer/property.d.ts +8 -0
- package/dist/types/layoutControls/GridLayoutContainer/runtime.d.ts +10 -0
- package/dist/types/layoutControls/GridLayoutContainer/types.d.ts +0 -0
- package/dist/types/layoutControls/ListView/property.d.ts +17 -1
- package/dist/types/layoutControls/index.d.ts +2 -0
- package/dist/types/listControls/GridTable/property.d.ts +1 -0
- package/dist/types/listControls/SubTable/property.d.ts +1 -0
- package/dist/types/searchControls/SimpleSearch/property.d.ts +12 -0
- package/dist/types/type.d.ts +9 -2
- package/dist/types/wrapControls/GridLayoutWrap/Setting.d.ts +2 -0
- package/dist/types/wrapControls/GridLayoutWrap/designer.d.ts +11 -0
- package/dist/types/wrapControls/GridLayoutWrap/index.d.ts +14 -0
- package/dist/types/wrapControls/GridLayoutWrap/property.d.ts +6 -0
- package/dist/types/wrapControls/GridLayoutWrap/runtime.d.ts +9 -0
- package/dist/types/wrapControls/index.d.ts +1 -0
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { Property, OptObject } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
declare class ButtonProperty extends Property {
|
|
3
3
|
content: string;
|
|
4
4
|
buttonType: 'primary' | 'secondary' | 'text';
|
|
@@ -8,6 +8,7 @@ declare class ButtonProperty extends Property {
|
|
|
8
8
|
defaultState: 'default' | 'readonly';
|
|
9
9
|
command: string;
|
|
10
10
|
isLoading: boolean;
|
|
11
|
+
optObj?: OptObject;
|
|
11
12
|
constructor(props?: Partial<ButtonProperty>);
|
|
12
13
|
}
|
|
13
14
|
export default ButtonProperty;
|
|
@@ -2,6 +2,7 @@ import { ButtonProperty } from '../Button';
|
|
|
2
2
|
import { ExportTemplate } from '../../framework';
|
|
3
3
|
declare class ExportListButtonProperty extends ButtonProperty {
|
|
4
4
|
templateList: ExportTemplate[];
|
|
5
|
+
templateType: 'system' | 'external';
|
|
5
6
|
constructor(props?: Partial<ExportListButtonProperty>);
|
|
6
7
|
}
|
|
7
8
|
export default ExportListButtonProperty;
|
|
@@ -5,6 +5,7 @@ declare class ImportListBind {
|
|
|
5
5
|
}
|
|
6
6
|
declare class ImportRecordListButtonProperty extends ButtonProperty {
|
|
7
7
|
canImportList: Array<ImportListBind>;
|
|
8
|
+
templateType: 'system' | 'external';
|
|
8
9
|
constructor(props?: Partial<ImportRecordListButtonProperty>);
|
|
9
10
|
}
|
|
10
11
|
export default ImportRecordListButtonProperty;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DesignerColumnControl, DesignerControl, SettingOption, ColumnControlSchema } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import ApprovalStatusColumnControlProperty from './property';
|
|
3
|
+
declare class ApprovalStatusColumnControl extends DesignerColumnControl {
|
|
4
|
+
static readonly controlType = "approval-status-column";
|
|
5
|
+
static readonly controlName = "\u5F53\u524D\u5BA1\u6279\u72B6\u6001";
|
|
6
|
+
static readonly controlIcon = "approval-status-column";
|
|
7
|
+
static excludes: never[];
|
|
8
|
+
static setting: SettingOption[];
|
|
9
|
+
readonly props: ApprovalStatusColumnControlProperty;
|
|
10
|
+
children: DesignerControl[];
|
|
11
|
+
constructor(props?: ColumnControlSchema<'approval-status-column'>);
|
|
12
|
+
}
|
|
13
|
+
export default ApprovalStatusColumnControl;
|
|
14
|
+
export { ApprovalStatusColumnControl as DesignerApprovalStatusColumnControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ColumnControlProperty, LinkOperationOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
/**
|
|
3
|
+
* ApprovalStatusColumn 审批状态列
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
declare class ApprovalStatusColumnControlProperty extends ColumnControlProperty {
|
|
7
|
+
/**
|
|
8
|
+
* 行数设置
|
|
9
|
+
* */
|
|
10
|
+
lineEllipsis: number;
|
|
11
|
+
/**
|
|
12
|
+
* 是否显示链接操作
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
showLinkOperation: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 链接操作配置
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
linkOperationOption: LinkOperationOption;
|
|
21
|
+
/**
|
|
22
|
+
* 流程状态位
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
enumType: 'process' | 'business';
|
|
26
|
+
constructor(props?: Partial<ApprovalStatusColumnControlProperty>);
|
|
27
|
+
}
|
|
28
|
+
export default ApprovalStatusColumnControlProperty;
|
|
29
|
+
export { ApprovalStatusColumnControlProperty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeColumnControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import ApprovalStatusColumnControlProperty from './property';
|
|
3
|
+
import { ColumnControlSchema } from '@byteluck-fe/model-driven-core';
|
|
4
|
+
import { RuntimeControl } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class ApprovalStatusColumnControl extends RuntimeColumnControl {
|
|
6
|
+
static readonly controlType = "approval-status-column";
|
|
7
|
+
readonly props: ApprovalStatusColumnControlProperty;
|
|
8
|
+
children: RuntimeControl[];
|
|
9
|
+
constructor(props?: ColumnControlSchema<'approval-status-column'>);
|
|
10
|
+
}
|
|
11
|
+
export default ApprovalStatusColumnControl;
|
|
12
|
+
export { ApprovalStatusColumnControl as RuntimeApprovalStatusColumnControl };
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, OptionSetting } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { ColumnControlProperty, ColumnOptionAndDataSourcePropertyRules, DataSourceBind, OptionSetting, LinkOperationOption } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
/**
|
|
3
3
|
* ArrayColumn 数组列
|
|
4
4
|
* @public
|
|
@@ -30,10 +30,12 @@ declare class ArrayColumnControlProperty extends ColumnControlProperty {
|
|
|
30
30
|
* 是否显示链接操作
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
+
showLinkOperation: boolean;
|
|
33
34
|
/**
|
|
34
35
|
* 链接操作配置
|
|
35
36
|
* @public
|
|
36
37
|
*/
|
|
38
|
+
linkOperationOption: LinkOperationOption;
|
|
37
39
|
/**
|
|
38
40
|
* 自定义选项
|
|
39
41
|
* @defaultValue []
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { ColumnControlProperty, ColumnControlPropertyRules } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { RuleItem } from 'async-validator';
|
|
3
|
+
declare class CustomColumnControlPropertyRules extends ColumnControlPropertyRules {
|
|
4
|
+
sortFieldCode: RuleItem;
|
|
5
|
+
constructor(props: CustomColumnControlProperty);
|
|
6
|
+
}
|
|
2
7
|
/**
|
|
3
8
|
* CustomColumn 自定义列
|
|
4
9
|
* @public
|
|
5
10
|
*/
|
|
6
11
|
declare class CustomColumnControlProperty extends ColumnControlProperty {
|
|
12
|
+
static readonly Rules: typeof CustomColumnControlPropertyRules;
|
|
7
13
|
fieldCodeList: string[];
|
|
14
|
+
sortFieldCode: string;
|
|
8
15
|
constructor(props?: Partial<CustomColumnControlProperty>);
|
|
9
16
|
}
|
|
10
17
|
export default CustomColumnControlProperty;
|
|
@@ -14,3 +14,4 @@ export { default as CustomColumn } from './CustomColumn';
|
|
|
14
14
|
export { default as OrderColumn } from './OrderColumn';
|
|
15
15
|
export { default as OperationColumn } from './OperationColumn';
|
|
16
16
|
export { default as EmployeeColumn } from './EmployeeColumn';
|
|
17
|
+
export { default as ApprovalStatusColumn } from './ApprovalStatusColumn';
|
|
@@ -15,6 +15,7 @@ declare class AttachmentProperty extends BaseControlProperty {
|
|
|
15
15
|
static readonly RuntimeRules: typeof AttachmentControlPropertyRuntimeRules;
|
|
16
16
|
defaultValue: string[];
|
|
17
17
|
showType: 'default' | 'table' | 'image';
|
|
18
|
+
resultShowType: 'simple' | 'table';
|
|
18
19
|
attachmentAccept: string[];
|
|
19
20
|
maxLimit: number;
|
|
20
21
|
minLimit: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem, FormBind, RuleItem } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
declare class SelectControlPropertyRules extends OptionAndDataSourcePropertyRules {
|
|
3
|
+
formBind: RuleItem;
|
|
3
4
|
constructor(props: SelectProperty);
|
|
4
5
|
}
|
|
5
6
|
declare class SelectProperty extends BaseControlProperty {
|
|
@@ -12,6 +13,24 @@ declare class SelectProperty extends BaseControlProperty {
|
|
|
12
13
|
multistageFilling: MultistageFillingItem[];
|
|
13
14
|
allowCopyOptions: boolean;
|
|
14
15
|
openMultistageFilling: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* 表单打开方式
|
|
18
|
+
* @defaultValue []
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
viewFormModelType?: string;
|
|
22
|
+
/**
|
|
23
|
+
* 查看详情
|
|
24
|
+
* @defaultValue false
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
canViewForm: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 选择表单
|
|
30
|
+
* @defaultValue 空
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
formBind?: FormBind;
|
|
15
34
|
constructor(props?: Partial<SelectProperty>);
|
|
16
35
|
}
|
|
17
36
|
export default SelectProperty;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { BaseControlProperty, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem, FormBind, RuleItem } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
declare class SelectMultipleControlPropertyRules extends OptionAndDataSourcePropertyRules {
|
|
3
|
+
formBind: RuleItem;
|
|
3
4
|
constructor(props: SelectMultipleProperty);
|
|
4
5
|
}
|
|
5
6
|
declare class SelectMultipleControlPropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
@@ -15,6 +16,24 @@ declare class SelectMultipleProperty extends BaseControlProperty {
|
|
|
15
16
|
datasourceBind: DataSourceBind;
|
|
16
17
|
multistageFilling?: MultistageFillingItem[];
|
|
17
18
|
openMultistageFilling: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 表单打开方式
|
|
21
|
+
* @defaultValue []
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
viewFormModelType?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 查看详情
|
|
27
|
+
* @defaultValue false
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
canViewForm: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 选择表单
|
|
33
|
+
* @defaultValue 空
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
formBind?: FormBind;
|
|
18
37
|
constructor(props?: Partial<SelectMultipleProperty>);
|
|
19
38
|
}
|
|
20
39
|
export default SelectMultipleProperty;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { BaseControlProperty, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem, SelectedContentConfig, ListBind } from '@byteluck-fe/model-driven-core';
|
|
1
|
+
import { BaseControlProperty, OptionAndDataSourcePropertyRules, OptionSetting, DataSourceBind, MultistageFillingItem, SelectedContentConfig, ListBind, FormBind } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
import { RuleItem } from 'async-validator';
|
|
3
3
|
declare class SelectRelationControlPropertyRules extends OptionAndDataSourcePropertyRules {
|
|
4
4
|
listPageBind: RuleItem[];
|
|
5
|
+
formBind: RuleItem;
|
|
5
6
|
constructor(props: SelectRelationProperty);
|
|
6
7
|
}
|
|
7
8
|
/**
|
|
@@ -56,6 +57,12 @@ declare class SelectRelationProperty extends BaseControlProperty {
|
|
|
56
57
|
* @public
|
|
57
58
|
*/
|
|
58
59
|
canViewForm: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 选择表单
|
|
62
|
+
* @defaultValue 空
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
formBind?: FormBind;
|
|
59
66
|
/**
|
|
60
67
|
* 数据填充-查看/编辑页面生效
|
|
61
68
|
* @defaultValue false
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,8 @@ import * as layoutControls from './layoutControls';
|
|
|
4
4
|
import * as listControls from './listControls';
|
|
5
5
|
import * as columnControls from './columnControls';
|
|
6
6
|
import * as searchControls from './searchControls';
|
|
7
|
-
|
|
7
|
+
import * as wrapControls from './wrapControls';
|
|
8
|
+
export { baseControls, formControls, layoutControls, listControls, columnControls, searchControls, wrapControls, };
|
|
8
9
|
export * from './baseControls';
|
|
9
10
|
export * from './formControls';
|
|
10
11
|
export * from './layoutControls';
|
|
@@ -13,3 +14,4 @@ export * from './columnControls';
|
|
|
13
14
|
export * from './searchControls';
|
|
14
15
|
export * from './type';
|
|
15
16
|
export * from './framework';
|
|
17
|
+
export * from './wrapControls';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DesignerLayoutControl, DesignerControl, SettingOption, LayoutControlSchema } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import ActionBarControlProperty from './property';
|
|
3
|
+
declare class ActionBarControl extends DesignerLayoutControl {
|
|
4
|
+
static get controlName(): string;
|
|
5
|
+
static get controlType(): string;
|
|
6
|
+
static get controlIcon(): string;
|
|
7
|
+
static excludes: never[];
|
|
8
|
+
static setting: SettingOption[];
|
|
9
|
+
props: ActionBarControlProperty;
|
|
10
|
+
constructor(props?: LayoutControlSchema<'action-bar', ActionBarControlProperty, DesignerControl>);
|
|
11
|
+
}
|
|
12
|
+
export default ActionBarControl;
|
|
13
|
+
export { ActionBarControl as DesignerActionBarControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class ActionBarControlProperty extends LayoutControlProperty {
|
|
3
|
+
position: 'top' | 'bottom' | 'top-fixed' | 'bottom-fixed';
|
|
4
|
+
opacity: boolean;
|
|
5
|
+
align: 'left' | 'middle' | 'right';
|
|
6
|
+
constructor(props: Partial<ActionBarControlProperty>);
|
|
7
|
+
}
|
|
8
|
+
export default ActionBarControlProperty;
|
|
9
|
+
export { ActionBarControlProperty };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RuntimeLayoutControl, RuntimeControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { LayoutControlSchema } from '@byteluck-fe/model-driven-core';
|
|
3
|
+
import ActionBarControlProperty from './property';
|
|
4
|
+
declare class ActionBarControl extends RuntimeLayoutControl {
|
|
5
|
+
static get controlType(): string;
|
|
6
|
+
props: ActionBarControlProperty;
|
|
7
|
+
constructor(props?: LayoutControlSchema<'action-bar', ActionBarControlProperty, RuntimeControl>);
|
|
8
|
+
}
|
|
9
|
+
export default ActionBarControl;
|
|
10
|
+
export { ActionBarControl as RuntimeActionBarControl };
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
2
|
+
import { DesignerLayoutControl, DesignerControl, LayoutControlSchema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
3
|
+
import GridLayoutContainerControlProperty from './property';
|
|
4
|
+
declare class GridLayoutContainerControl extends DesignerLayoutControl {
|
|
5
|
+
static get controlName(): string;
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static get controlIcon(): string;
|
|
8
|
+
static excludes: CONTROL_TYPE[];
|
|
9
|
+
props: GridLayoutContainerControlProperty;
|
|
10
|
+
static readonly setting: SettingOption[];
|
|
11
|
+
constructor(props?: Partial<LayoutControlSchema<'grid-layout-container', GridLayoutContainerControlProperty, DesignerControl>>);
|
|
12
|
+
}
|
|
13
|
+
export default GridLayoutContainerControl;
|
|
14
|
+
export { GridLayoutContainerControl as DesignerColControl };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LayoutControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class GridLayoutContainerControlProperty extends LayoutControlProperty {
|
|
3
|
+
childMinWidth: number;
|
|
4
|
+
colGap: number;
|
|
5
|
+
constructor(props?: Partial<GridLayoutContainerControlProperty>);
|
|
6
|
+
}
|
|
7
|
+
export default GridLayoutContainerControlProperty;
|
|
8
|
+
export { GridLayoutContainerControlProperty };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RuntimeControl, RuntimeLayoutControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import GridLayoutContainerControlProperty from './property';
|
|
3
|
+
import { LayoutControlSchema } from '@byteluck-fe/model-driven-core';
|
|
4
|
+
declare class GridLayoutContainerControl extends RuntimeLayoutControl {
|
|
5
|
+
static get controlType(): string;
|
|
6
|
+
props: GridLayoutContainerControlProperty;
|
|
7
|
+
constructor(props?: Partial<LayoutControlSchema<'grid-layout-container', GridLayoutContainerControlProperty, RuntimeControl>>);
|
|
8
|
+
}
|
|
9
|
+
export default GridLayoutContainerControl;
|
|
10
|
+
export { GridLayoutContainerControl as RuntimeGridLayoutContainerControl };
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RuleItem } from 'async-validator';
|
|
2
|
-
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { LayoutControlProperty, PropertyRules, PropertyRuntimeRules, DataSourceBind, SubListPageConfig, JoinRelation } from '@byteluck-fe/model-driven-core';
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
@@ -19,6 +19,7 @@ declare class ListViewControlPropertyRuntimeRules extends PropertyRuntimeRules {
|
|
|
19
19
|
declare class ListViewControlPropertyRules extends PropertyRules {
|
|
20
20
|
triggerFieldCode: RuleItem;
|
|
21
21
|
datasourceBind: RuleItem;
|
|
22
|
+
joinRelation: RuleItem[];
|
|
22
23
|
constructor(props: ListViewControlProperty);
|
|
23
24
|
}
|
|
24
25
|
/**
|
|
@@ -61,6 +62,15 @@ declare class ListViewControlProperty extends LayoutControlProperty {
|
|
|
61
62
|
* @public
|
|
62
63
|
*/
|
|
63
64
|
sublistPage: SubListPageConfig;
|
|
65
|
+
/**
|
|
66
|
+
* 显示连接表
|
|
67
|
+
*/
|
|
68
|
+
isShowJoinRelation: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 连接表配置
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
joinRelation: JoinRelation;
|
|
64
74
|
/**
|
|
65
75
|
* @internal
|
|
66
76
|
*/
|
|
@@ -101,6 +111,12 @@ declare class ListViewControlProperty extends LayoutControlProperty {
|
|
|
101
111
|
* @public
|
|
102
112
|
*/
|
|
103
113
|
countType?: 'sync' | 'async' | 'none';
|
|
114
|
+
/**
|
|
115
|
+
* 列表展示最多条数
|
|
116
|
+
* @defaultValue 100000
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
countLimit?: number;
|
|
104
120
|
constructor(props?: Partial<ListViewControlProperty>);
|
|
105
121
|
}
|
|
106
122
|
export default ListViewControlProperty;
|
|
@@ -6,6 +6,7 @@ export { default as CardGroup } from './CardGroup';
|
|
|
6
6
|
export { default as SubTableColumn } from './SubTableColumn';
|
|
7
7
|
export { default as SubTableRow } from './SubTableRow';
|
|
8
8
|
export { default as GridTableColumn } from './GridTableColumn';
|
|
9
|
+
export { default as GridLayoutContainer } from './GridLayoutContainer';
|
|
9
10
|
export { default as Tab } from './Tab';
|
|
10
11
|
export { default as TabPane } from './TabPane';
|
|
11
12
|
export { default as Toolbox } from './Toolbox';
|
|
@@ -15,3 +16,4 @@ export { default as Page } from './Page';
|
|
|
15
16
|
export { default as AdvancedContainer } from './AdvancedContainer';
|
|
16
17
|
export { default as PositioningContainer } from './PositioningContainer';
|
|
17
18
|
export { default as Position } from './Position';
|
|
19
|
+
export { default as ActionBar } from './ActionBar';
|
|
@@ -38,6 +38,7 @@ declare class GridTableControlProperty<Mode extends MODE | 'Schema', Control ext
|
|
|
38
38
|
isShowCustomColumns: boolean;
|
|
39
39
|
constructor(parent: DesignerGridTableControl | RuntimeGridTableControl, props?: Partial<GridTableControlProperty<Mode> & {
|
|
40
40
|
headers: Control[];
|
|
41
|
+
footers?: Control[];
|
|
41
42
|
}>);
|
|
42
43
|
}
|
|
43
44
|
export default GridTableControlProperty;
|
|
@@ -185,6 +185,7 @@ declare class SubTableControlProperty<Mode extends MODE | 'Schema', Control exte
|
|
|
185
185
|
mobileIsTile: Boolean;
|
|
186
186
|
constructor(parent: DesignerSubTableControl | RuntimeSubTableControl, props?: Partial<SubTableControlProperty<Mode> & {
|
|
187
187
|
headers: Control[];
|
|
188
|
+
footers?: Control[];
|
|
188
189
|
}>);
|
|
189
190
|
}
|
|
190
191
|
export default SubTableControlProperty;
|
|
@@ -54,6 +54,18 @@ declare class SimpleSearchControlProperty extends SearchControlProperty {
|
|
|
54
54
|
* @public
|
|
55
55
|
*/
|
|
56
56
|
queryTypeMap: queryTypeMap[];
|
|
57
|
+
/**
|
|
58
|
+
* 控件宽度最小值
|
|
59
|
+
* @defaultValue 230
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
childMinWidth: number;
|
|
63
|
+
/**
|
|
64
|
+
* 控件间距
|
|
65
|
+
* @defaultValue 24
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
colGap: number;
|
|
57
69
|
constructor(props?: Partial<SimpleSearchControlProperty>);
|
|
58
70
|
}
|
|
59
71
|
export default SimpleSearchControlProperty;
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton } from './baseControls';
|
|
2
2
|
import { Address, Amount, Attachment, AutoNumber, Checkbox, DatePicker, DateRange, Department, Employee, Image, Input, Number, Radio, Score, Select, SelectMultiple, Textarea, RichText, Calc, SearchNumberRange, SearchDateRange, SearchInput, VueFormItem, SelectRelation, Tree, Employee2, ElectronicSignature, WPS, Department2, OrganizationSelection } from './formControls';
|
|
3
|
-
import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position } from './layoutControls';
|
|
3
|
+
import { CardGroup, Col, Grid, GridRow, Row, SubTableColumn, SubTableRow, GridTableColumn, GridLayoutContainer, Tab, TabPane, Toolbox, ListView, DataView, Page, AdvancedContainer, PositioningContainer, Position, ActionBar } from './layoutControls';
|
|
4
4
|
import { SubTable, GridTable } from './listControls';
|
|
5
|
-
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn } from './columnControls';
|
|
5
|
+
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn, ApprovalStatusColumn } from './columnControls';
|
|
6
6
|
import { SimpleSearch } from './searchControls';
|
|
7
|
+
import { GridLayoutWrap } from './wrapControls';
|
|
7
8
|
declare module '@byteluck-fe/model-driven-core' {
|
|
8
9
|
interface BaseControls {
|
|
9
10
|
divider: typeof Divider;
|
|
@@ -72,12 +73,14 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
72
73
|
'tab-pane': typeof TabPane;
|
|
73
74
|
toolbox: typeof Toolbox;
|
|
74
75
|
'grid-table-column': typeof GridTableColumn;
|
|
76
|
+
'grid-layout-container': typeof GridLayoutContainer;
|
|
75
77
|
'list-view': typeof ListView;
|
|
76
78
|
'data-view': typeof DataView;
|
|
77
79
|
page: typeof Page;
|
|
78
80
|
'advanced-container': typeof AdvancedContainer;
|
|
79
81
|
'positioning-container': typeof PositioningContainer;
|
|
80
82
|
position: typeof Position;
|
|
83
|
+
'action-bar': typeof ActionBar;
|
|
81
84
|
}
|
|
82
85
|
interface ListControls {
|
|
83
86
|
subtable: typeof SubTable;
|
|
@@ -100,8 +103,12 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
100
103
|
'order-column': typeof OrderColumn;
|
|
101
104
|
'operation-column': typeof OperationColumn;
|
|
102
105
|
'employee-column': typeof EmployeeColumn;
|
|
106
|
+
'approval-status-column': typeof ApprovalStatusColumn;
|
|
103
107
|
}
|
|
104
108
|
interface SearchControls {
|
|
105
109
|
'simple-search': typeof SimpleSearch;
|
|
106
110
|
}
|
|
111
|
+
interface WrapControls {
|
|
112
|
+
'grid-layout-wrap': typeof GridLayoutWrap;
|
|
113
|
+
}
|
|
107
114
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DesignerWrapControl, WrapControlSchema } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import GridLayoutWrapProperty from './property';
|
|
3
|
+
declare class GridLayoutWrapControl extends DesignerWrapControl {
|
|
4
|
+
static get controlName(): string;
|
|
5
|
+
static get controlIcon(): string;
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
props: GridLayoutWrapProperty;
|
|
8
|
+
constructor(props?: WrapControlSchema<'grid-layout-wrap', GridLayoutWrapProperty, DesignerWrapControl>);
|
|
9
|
+
}
|
|
10
|
+
export default GridLayoutWrapControl;
|
|
11
|
+
export { GridLayoutWrapControl as DesignerGridLayoutWrapControl };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
Setting: import("@byteluck-fe/model-driven-settings/dist/types").DefineInstanceParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
export * from './designer';
|
|
12
|
+
export * from './runtime';
|
|
13
|
+
export * from './property';
|
|
14
|
+
export * from './Setting';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RuntimeWrapControl, WrapControlSchema } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import GridLayoutWrapProperty from './property';
|
|
3
|
+
declare class GridLayoutWrapControl extends RuntimeWrapControl {
|
|
4
|
+
static get controlType(): string;
|
|
5
|
+
readonly props: GridLayoutWrapProperty;
|
|
6
|
+
constructor(props?: WrapControlSchema<'grid-layout-wrap', GridLayoutWrapProperty, RuntimeWrapControl>);
|
|
7
|
+
}
|
|
8
|
+
export default GridLayoutWrapControl;
|
|
9
|
+
export { GridLayoutWrapControl as RuntimeGridLayoutWrapControl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GridLayoutWrap } from './GridLayoutWrap';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-core": "2.
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "2.
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "2.
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.8.0-alpha.1",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "2.8.0-alpha.1",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.36",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "27f083b7b2759db550931017aec897e0740957dd"
|
|
35
35
|
}
|