@byteluck-fe/model-driven-controls 5.3.0-1-beta4 → 5.3.1-2-zt
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/OperationButton/property.js +4 -1
- package/dist/esm/baseControls/Text/designer.js +4 -0
- package/dist/esm/baseControls/Text/property.js +3 -1
- package/dist/esm/baseControls/Title/designer.js +9 -4
- package/dist/esm/baseControls/Title/property.js +2 -5
- package/dist/esm/columnControls/EmployeeColumn/designer.js +1 -1
- package/dist/esm/columnControls/SignatureColumn/designer.js +120 -0
- package/dist/esm/columnControls/SignatureColumn/index.js +11 -0
- package/dist/esm/columnControls/SignatureColumn/property.js +78 -0
- package/dist/esm/columnControls/SignatureColumn/runtime.js +93 -0
- package/dist/esm/columnControls/SignatureColumn/types.js +0 -0
- package/dist/esm/columnControls/index.js +1 -0
- package/dist/esm/formControls/Address/runtime.js +1 -2
- package/dist/esm/formControls/Amount/property.js +1 -1
- package/dist/esm/formControls/Department2/designer.js +1 -1
- package/dist/esm/formControls/ElectronicSignature/property.js +0 -13
- package/dist/esm/formControls/Employee/property.js +1 -1
- package/dist/esm/formControls/Employee2/designer.js +1 -7
- package/dist/esm/formControls/Employee2/property.js +1 -1
- package/dist/esm/formControls/HandSignature/designer.js +157 -0
- package/dist/esm/formControls/HandSignature/index.js +11 -0
- package/dist/esm/formControls/HandSignature/property.js +134 -0
- package/dist/esm/formControls/HandSignature/runtime.js +114 -0
- package/dist/esm/formControls/HandSignature/types.js +0 -0
- package/dist/esm/formControls/Input/designer.js +8 -0
- package/dist/esm/formControls/Input/property.js +12 -1
- package/dist/esm/formControls/Number/property.js +1 -1
- package/dist/esm/formControls/OrganizationSelection/designer.js +1 -1
- package/dist/esm/formControls/RichText/designer.js +8 -0
- package/dist/esm/formControls/RichText/property.js +12 -1
- package/dist/esm/formControls/Textarea/designer.js +8 -0
- package/dist/esm/formControls/Textarea/property.js +24 -1
- package/dist/esm/formControls/Tree/designer.js +2 -2
- package/dist/esm/formControls/index.js +1 -0
- package/dist/esm/framework.js +0 -56
- package/dist/esm/layoutControls/AdvancedContainer/Setting.js +3 -4
- package/dist/esm/layoutControls/GridTableColumn/designer.js +1 -2
- package/dist/esm/layoutControls/Page/Setting.js +5 -6
- package/dist/esm/layoutControls/PositioningContainer/Setting.js +3 -4
- package/dist/esm/listControls/SubTable/designer.js +0 -1
- package/dist/index.umd.js +1 -1
- package/dist/types/baseControls/OperationButton/property.d.ts +1 -0
- package/dist/types/baseControls/Text/property.d.ts +1 -0
- package/dist/types/baseControls/Title/property.d.ts +0 -1
- package/dist/types/columnControls/SignatureColumn/designer.d.ts +14 -0
- package/dist/types/columnControls/SignatureColumn/index.d.ts +12 -0
- package/dist/types/columnControls/SignatureColumn/property.d.ts +6 -0
- package/dist/types/columnControls/SignatureColumn/runtime.d.ts +12 -0
- package/dist/types/columnControls/SignatureColumn/types.d.ts +0 -0
- package/dist/types/columnControls/index.d.ts +1 -0
- package/dist/types/formControls/Employee2/designer.d.ts +0 -1
- package/dist/types/formControls/HandSignature/designer.d.ts +14 -0
- package/dist/types/formControls/HandSignature/index.d.ts +12 -0
- package/dist/types/formControls/HandSignature/property.d.ts +19 -0
- package/dist/types/formControls/HandSignature/runtime.d.ts +12 -0
- package/dist/types/formControls/HandSignature/types.d.ts +0 -0
- package/dist/types/formControls/Input/property.d.ts +11 -0
- package/dist/types/formControls/RichText/property.d.ts +11 -0
- package/dist/types/formControls/Textarea/property.d.ts +11 -0
- package/dist/types/formControls/index.d.ts +1 -0
- package/dist/types/framework.d.ts +0 -44
- package/dist/types/layoutControls/GridTableColumn/designer.d.ts +1 -1
- package/dist/types/type.d.ts +4 -2
- package/package.json +5 -5
|
@@ -19,6 +19,7 @@ declare class OperationButtonProperty extends Property {
|
|
|
19
19
|
defaultState: 'default' | 'readonly';
|
|
20
20
|
priorityProcess?: boolean;
|
|
21
21
|
isLoading: boolean;
|
|
22
|
+
isSyncDelete: boolean;
|
|
22
23
|
constructor(props?: Partial<OperationButtonProperty>);
|
|
23
24
|
}
|
|
24
25
|
export default OperationButtonProperty;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DesignerColumnControl, ColumnControlSchema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import SignatureColumnControlProperty from './property';
|
|
3
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
4
|
+
declare class SignatureColumnControl extends DesignerColumnControl {
|
|
5
|
+
static readonly controlType = "signature-column";
|
|
6
|
+
static readonly controlName = "\u56FE\u7247";
|
|
7
|
+
static readonly controlIcon = "signature-column";
|
|
8
|
+
static readonly controlFieldType = FieldTypes.SIGNATURE;
|
|
9
|
+
static setting: SettingOption[];
|
|
10
|
+
readonly props: SignatureColumnControlProperty;
|
|
11
|
+
constructor(props?: ColumnControlSchema<'image-column'>);
|
|
12
|
+
}
|
|
13
|
+
export default SignatureColumnControl;
|
|
14
|
+
export { SignatureColumnControl as DesignerSignatureColumnControl };
|
|
@@ -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,6 @@
|
|
|
1
|
+
import { ColumnControlProperty } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class SignatureColumnControlProperty extends ColumnControlProperty {
|
|
3
|
+
constructor(props?: Partial<SignatureColumnControlProperty>);
|
|
4
|
+
}
|
|
5
|
+
export default SignatureColumnControlProperty;
|
|
6
|
+
export { SignatureColumnControlProperty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeColumnControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import SignatureColumnControlProperty from './property';
|
|
3
|
+
import { ColumnControlSchema } from '@byteluck-fe/model-driven-core';
|
|
4
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
5
|
+
declare class SignatureColumnControl extends RuntimeColumnControl {
|
|
6
|
+
static readonly controlType = "signature-column";
|
|
7
|
+
static readonly controlFieldType = FieldTypes.SIGNATURE;
|
|
8
|
+
readonly props: SignatureColumnControlProperty;
|
|
9
|
+
constructor(props?: ColumnControlSchema<'signature-column'>);
|
|
10
|
+
}
|
|
11
|
+
export default SignatureColumnControl;
|
|
12
|
+
export { SignatureColumnControl as RuntimeSignatureColumnControl };
|
|
File without changes
|
|
@@ -8,6 +8,7 @@ export { default as DepartmentColumn } from './DepartmentColumn';
|
|
|
8
8
|
export { default as AutoNumberColumn } from './AutoNumberColumn';
|
|
9
9
|
export { default as FileColumn } from './FileColumn';
|
|
10
10
|
export { default as ImageColumn } from './ImageColumn';
|
|
11
|
+
export { default as SignatureColumn } from './SignatureColumn';
|
|
11
12
|
export { default as PeopleColumn } from './PeopleColumn';
|
|
12
13
|
export { default as LocationColumn } from './LocationColumn';
|
|
13
14
|
export { default as CustomColumn } from './CustomColumn';
|
|
@@ -11,7 +11,6 @@ declare class Employee2Control extends DesignerFormControl {
|
|
|
11
11
|
required: boolean;
|
|
12
12
|
}[];
|
|
13
13
|
static controlFieldType: FieldTypes;
|
|
14
|
-
static readonly controlEventKeys: string[];
|
|
15
14
|
static readonly setting: SettingOption[];
|
|
16
15
|
readonly props: Employee2Property;
|
|
17
16
|
constructor(props?: Partial<Schema<'employee2'>>);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DesignerFormControl, Schema, SettingOption } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
3
|
+
import HandSignatureProperty from './property';
|
|
4
|
+
declare class HandSignatureControl extends DesignerFormControl {
|
|
5
|
+
static get controlName(): string;
|
|
6
|
+
static get controlIcon(): string;
|
|
7
|
+
static get controlType(): string;
|
|
8
|
+
static controlFieldType: FieldTypes;
|
|
9
|
+
static readonly setting: SettingOption[];
|
|
10
|
+
readonly props: HandSignatureProperty;
|
|
11
|
+
constructor(props?: Partial<Schema<'signature'>>);
|
|
12
|
+
}
|
|
13
|
+
export default HandSignatureControl;
|
|
14
|
+
export { HandSignatureControl as DesignerHandSignatureControl };
|
|
@@ -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,19 @@
|
|
|
1
|
+
import { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
declare class HandSignaturePropertyRules extends BaseControlPropertyRules {
|
|
3
|
+
constructor(props: HandSignatureProperty);
|
|
4
|
+
}
|
|
5
|
+
declare class HandSignatureControlPropertyRuntimeRules extends BaseControlPropertyRuntimeRules {
|
|
6
|
+
constructor(props: HandSignatureProperty);
|
|
7
|
+
}
|
|
8
|
+
declare class HandSignatureProperty extends BaseControlProperty {
|
|
9
|
+
static readonly Rules: typeof HandSignaturePropertyRules;
|
|
10
|
+
static readonly RuntimeRules: typeof HandSignatureControlPropertyRuntimeRules;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
maxWidth: number;
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
penColor: string;
|
|
15
|
+
labelPosition: 'top' | 'left';
|
|
16
|
+
constructor(props?: Partial<HandSignatureProperty>);
|
|
17
|
+
}
|
|
18
|
+
export default HandSignatureProperty;
|
|
19
|
+
export { HandSignatureProperty };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RuntimeFormControl } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import HandSignatureProperty from './property';
|
|
3
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
4
|
+
import { Schema } from '@byteluck-fe/model-driven-core';
|
|
5
|
+
declare class HandSignatureControl extends RuntimeFormControl {
|
|
6
|
+
static get controlType(): string;
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly props: HandSignatureProperty;
|
|
9
|
+
constructor(props?: Partial<Schema<'signature'>>);
|
|
10
|
+
}
|
|
11
|
+
export default HandSignatureControl;
|
|
12
|
+
export { HandSignatureControl as RuntimeHandSignatureControl };
|
|
File without changes
|
|
@@ -51,6 +51,17 @@ declare class InputProperty extends BaseControlProperty {
|
|
|
51
51
|
* @public
|
|
52
52
|
*/
|
|
53
53
|
encryptedMode: string;
|
|
54
|
+
/**
|
|
55
|
+
* 在明细子表中自动高度
|
|
56
|
+
* @defaultValue false
|
|
57
|
+
*/
|
|
58
|
+
autoHeight: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* 在明细子表中行数设置
|
|
61
|
+
* @defaultValue 1
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
lineEllipsis: number;
|
|
54
65
|
constructor(props?: Partial<InputProperty>);
|
|
55
66
|
}
|
|
56
67
|
export default InputProperty;
|
|
@@ -15,6 +15,17 @@ declare class RichTextProperty extends BaseControlProperty {
|
|
|
15
15
|
maxLength: number;
|
|
16
16
|
minLength: number;
|
|
17
17
|
defaultValue: string;
|
|
18
|
+
/**
|
|
19
|
+
* 在明细子表中自动高度
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
autoHeight: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 在明细子表中行数设置
|
|
25
|
+
* @defaultValue 1
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
lineEllipsis: number;
|
|
18
29
|
constructor(props?: Partial<RichTextProperty>);
|
|
19
30
|
}
|
|
20
31
|
export default RichTextProperty;
|
|
@@ -40,6 +40,17 @@ declare class TextareaProperty extends BaseControlProperty {
|
|
|
40
40
|
* @public
|
|
41
41
|
*/
|
|
42
42
|
rowHeightSetting: MetaRowHeight;
|
|
43
|
+
/**
|
|
44
|
+
* 在明细子表中自动高度
|
|
45
|
+
* @defaultValue false
|
|
46
|
+
*/
|
|
47
|
+
autoHeight: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 在明细子表中行数设置
|
|
50
|
+
* @defaultValue 1
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
lineEllipsis: number;
|
|
43
54
|
constructor(props?: Partial<TextareaProperty>);
|
|
44
55
|
}
|
|
45
56
|
export default TextareaProperty;
|
|
@@ -24,6 +24,7 @@ export { default as SelectRelation } from './SelectRelation';
|
|
|
24
24
|
export { default as SearchInput } from './SearchInput';
|
|
25
25
|
export { default as Tree } from './Tree';
|
|
26
26
|
export { default as Employee2 } from './Employee2';
|
|
27
|
+
export { default as HandSignature } from './HandSignature';
|
|
27
28
|
export { default as ElectronicSignature } from './ElectronicSignature';
|
|
28
29
|
export { default as WPS } from './WPS';
|
|
29
30
|
export { default as Department2 } from './Department2';
|
|
@@ -81,50 +81,6 @@ export declare class UndersignedPerson {
|
|
|
81
81
|
* 公司名称
|
|
82
82
|
* */
|
|
83
83
|
company: RightVariable;
|
|
84
|
-
/**
|
|
85
|
-
* 签署位置 自由签署 指定签署
|
|
86
|
-
* */
|
|
87
|
-
signaturePosition: 'free' | 'index';
|
|
88
|
-
/**
|
|
89
|
-
* 指定位置
|
|
90
|
-
* */
|
|
91
|
-
indexSignature: RightVariable;
|
|
92
|
-
/**
|
|
93
|
-
* 指定X轴位置
|
|
94
|
-
* */
|
|
95
|
-
posX?: number;
|
|
96
|
-
/**
|
|
97
|
-
* 指定Y轴位置
|
|
98
|
-
* */
|
|
99
|
-
posY?: number;
|
|
100
|
-
/**
|
|
101
|
-
* 平台是否自动签署
|
|
102
|
-
* */
|
|
103
|
-
platformAutoSign: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* 是否需要添加签署日期 0-禁止 1-必须 2-不限制,默认0
|
|
106
|
-
* */
|
|
107
|
-
signDateBeanType: 0 | 1 | 2;
|
|
108
|
-
/**
|
|
109
|
-
* 签署日期字体大小
|
|
110
|
-
* */
|
|
111
|
-
signDateFontSize?: number;
|
|
112
|
-
/**
|
|
113
|
-
* 签署日期格式
|
|
114
|
-
* */
|
|
115
|
-
signDateFormat?: string;
|
|
116
|
-
/**
|
|
117
|
-
* 签署顺序
|
|
118
|
-
* */
|
|
119
|
-
signOrder: number;
|
|
120
|
-
/**
|
|
121
|
-
* 强制阅读时间
|
|
122
|
-
* */
|
|
123
|
-
forceReadTime?: number;
|
|
124
|
-
/**
|
|
125
|
-
* 印章ID
|
|
126
|
-
* */
|
|
127
|
-
seal: RightVariable;
|
|
128
84
|
/**
|
|
129
85
|
* 备注
|
|
130
86
|
* */
|
|
@@ -2,7 +2,7 @@ import { DesignerControl, DesignerLayoutControl, COMMON_SETTING_TYPE, LayoutCont
|
|
|
2
2
|
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
3
3
|
import GridTableColumnControlProperty from './property';
|
|
4
4
|
declare class GridTableColumnControl extends DesignerLayoutControl {
|
|
5
|
-
static readonly controlName
|
|
5
|
+
static readonly controlName = "\u5217\u8868\u5355\u5143\u683C";
|
|
6
6
|
static readonly controlType = "gridtable-column";
|
|
7
7
|
static readonly controlIcon = "gridtable-column";
|
|
8
8
|
static childrenMaxLength: number;
|
package/dist/types/type.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Divider, Text, Link, Button, Title, CreateFormListButton, BatchSubmissionListButton, SubmissionRecordListButton, ImportRecordListButton, ExportRecordListButton, ExportListButton, FormSelectButton, ListSelectButton, Pagination, Dashboard, ListViewSelect, TextOcrButton, InvoiceCheckButton, BatchPrintListButton, BatchPrintRecordListButton, OperationButton, ReferenceList } from './baseControls';
|
|
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, VuePage } from './formControls';
|
|
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, VuePage, HandSignature } from './formControls';
|
|
3
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, ApprovalStatusColumn } from './columnControls';
|
|
5
|
+
import { VarcharColumn, TextColumn, DecimalColumn, TimescopeColumn, TimestampColumn, ArrayColumn, DepartmentColumn, AutoNumberColumn, FileColumn, ImageColumn, SignatureColumn, PeopleColumn, LocationColumn, CustomColumn, OrderColumn, OperationColumn, EmployeeColumn, ApprovalStatusColumn } from './columnControls';
|
|
6
6
|
import { SimpleSearch } from './searchControls';
|
|
7
7
|
import { GridLayoutWrap } from './wrapControls';
|
|
8
8
|
declare module '@byteluck-fe/model-driven-core' {
|
|
@@ -62,6 +62,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
62
62
|
department2: typeof Department2;
|
|
63
63
|
'organization-selection': typeof OrganizationSelection;
|
|
64
64
|
'vue-page': typeof VuePage;
|
|
65
|
+
'signature': typeof HandSignature;
|
|
65
66
|
}
|
|
66
67
|
interface LayoutControls {
|
|
67
68
|
'subtable-column': typeof SubTableColumn;
|
|
@@ -99,6 +100,7 @@ declare module '@byteluck-fe/model-driven-core' {
|
|
|
99
100
|
'auto-number-column': typeof AutoNumberColumn;
|
|
100
101
|
'file-column': typeof FileColumn;
|
|
101
102
|
'image-column': typeof ImageColumn;
|
|
103
|
+
'signature-column': typeof SignatureColumn;
|
|
102
104
|
'people-column': typeof PeopleColumn;
|
|
103
105
|
'location-column': typeof LocationColumn;
|
|
104
106
|
'custom-column': typeof CustomColumn;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-controls",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1-2-zt",
|
|
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": "
|
|
30
|
-
"@byteluck-fe/model-driven-settings": "
|
|
31
|
-
"@byteluck-fe/model-driven-shared": "
|
|
29
|
+
"@byteluck-fe/model-driven-core": "2.23.0-beta.26-zt",
|
|
30
|
+
"@byteluck-fe/model-driven-settings": "2.23.0-beta.26-zt",
|
|
31
|
+
"@byteluck-fe/model-driven-shared": "2.23.0-beta.23-zt",
|
|
32
32
|
"async-validator": "3.5.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "863173a36f3466aef72aaa1a902f40f1db35d322"
|
|
35
35
|
}
|