@byteluck-fe/model-driven-core 3.0.0-beta.2 → 4.34.0-lx1
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/common/BaseControl/designer.js +1 -7
- package/dist/esm/common/BaseControl/property.js +0 -5
- package/dist/esm/common/ColumnControl/property.js +6 -6
- package/dist/esm/common/FormControl/property.js +32 -15
- package/dist/esm/common/ListControl/designer.js +10 -8
- package/dist/esm/common/initLinkOperationRules.js +2 -2
- package/dist/esm/common/initOptionAndDataSourceRules.js +30 -31
- package/dist/esm/framework/RegisterControls.js +13 -13
- package/dist/esm/framework/index.js +17 -127
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +0 -8
- package/dist/types/common/BaseControl/property.d.ts +0 -6
- package/dist/types/common/FormControl/property.d.ts +18 -0
- package/dist/types/framework/index.d.ts +13 -77
- package/dist/types/framework/isDataBind.d.ts +1 -1
- package/package.json +34 -34
|
@@ -37,18 +37,6 @@ export declare class AutoWidth {
|
|
|
37
37
|
flex: number;
|
|
38
38
|
constructor(props?: Partial<AutoWidth>);
|
|
39
39
|
}
|
|
40
|
-
export declare class RowHeight {
|
|
41
|
-
rowHeightType: 'auto' | 'fixed';
|
|
42
|
-
minRows: number;
|
|
43
|
-
maxRows?: number;
|
|
44
|
-
fiexdRow: number;
|
|
45
|
-
constructor(props?: Partial<RowHeight>);
|
|
46
|
-
}
|
|
47
|
-
export declare class MetaRowHeight {
|
|
48
|
-
pc: RowHeight;
|
|
49
|
-
mobile: RowHeight;
|
|
50
|
-
constructor(props?: Partial<MetaRowHeight>);
|
|
51
|
-
}
|
|
52
40
|
export declare class MetaWidth extends AutoWidth {
|
|
53
41
|
width: number;
|
|
54
42
|
widthType: 'px' | 'auto';
|
|
@@ -111,7 +99,7 @@ export declare class ListBind {
|
|
|
111
99
|
export declare class FieldBindItem {
|
|
112
100
|
fieldName: string;
|
|
113
101
|
fieldCode: string;
|
|
114
|
-
fieldType:
|
|
102
|
+
fieldType: FieldTypes;
|
|
115
103
|
constructor(props?: Partial<FieldBindItem>);
|
|
116
104
|
}
|
|
117
105
|
export declare class SubListItem extends FormBind {
|
|
@@ -271,20 +259,9 @@ export declare class DisplayBoListItem {
|
|
|
271
259
|
/**
|
|
272
260
|
* 字段数据类型
|
|
273
261
|
*/
|
|
274
|
-
fieldType?:
|
|
262
|
+
fieldType?: FieldTypes;
|
|
275
263
|
constructor(props?: Partial<DisplayBoListItem>);
|
|
276
264
|
}
|
|
277
|
-
export declare class OptionDisplayConfigItem {
|
|
278
|
-
/**
|
|
279
|
-
* 标题
|
|
280
|
-
*/
|
|
281
|
-
title: string;
|
|
282
|
-
/**
|
|
283
|
-
* 字段数据类型
|
|
284
|
-
*/
|
|
285
|
-
displayBoList: DisplayBoListItem[];
|
|
286
|
-
constructor(props?: Partial<OptionDisplayConfigItem>);
|
|
287
|
-
}
|
|
288
265
|
/**
|
|
289
266
|
* 数据源排序项
|
|
290
267
|
* @public
|
|
@@ -390,18 +367,6 @@ export declare class DataSourceBind {
|
|
|
390
367
|
* @public
|
|
391
368
|
*/
|
|
392
369
|
showOrder?: boolean;
|
|
393
|
-
/**
|
|
394
|
-
* 部门或者人员指定部门配置
|
|
395
|
-
* @defaultValue {}
|
|
396
|
-
* @public
|
|
397
|
-
*/
|
|
398
|
-
assignDepartment?: RightVariable;
|
|
399
|
-
/**
|
|
400
|
-
* 部门或者人员指定部门配置是否开启
|
|
401
|
-
* @defaultValue {}
|
|
402
|
-
* @public
|
|
403
|
-
*/
|
|
404
|
-
openAssignDepartment?: boolean;
|
|
405
370
|
constructor(props?: Partial<DataSourceBind>);
|
|
406
371
|
}
|
|
407
372
|
export declare class SelectedContentConfig {
|
|
@@ -576,14 +541,8 @@ export declare class ImageOptionSetting extends OptionSetting {
|
|
|
576
541
|
type: 'attachment' | 'src';
|
|
577
542
|
constructor(props?: Partial<ImageOptionSetting>);
|
|
578
543
|
}
|
|
579
|
-
export declare class AiOptionSetting extends OptionSetting {
|
|
580
|
-
cueWord: string;
|
|
581
|
-
checked: boolean;
|
|
582
|
-
constructor(props?: Partial<AiOptionSetting>);
|
|
583
|
-
}
|
|
584
544
|
export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
|
|
585
545
|
export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
|
|
586
|
-
export declare function initAiOptions(options?: Partial<AiOptionSetting>[]): AiOptionSetting[];
|
|
587
546
|
/**
|
|
588
547
|
* 对象类型数据绑定配置
|
|
589
548
|
* @public
|
|
@@ -796,11 +755,7 @@ export declare enum COMMON_SETTING_TYPE {
|
|
|
796
755
|
IS_INLINE_EDIT = "isInlineEdit",
|
|
797
756
|
REVISIONS_MODE = "revisionsMode",
|
|
798
757
|
ALLOW_COPY_OPTIONS = "allowCopyOptions",
|
|
799
|
-
IS_PASTE = "isPaste"
|
|
800
|
-
SORTABLE = "sortable",
|
|
801
|
-
IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
|
|
802
|
-
IS_SHOW_TOOL_BAE = "isShowToolbar",
|
|
803
|
-
MAIN_DEPT_FLAG = "mainDeptFlag"
|
|
758
|
+
IS_PASTE = "isPaste"
|
|
804
759
|
}
|
|
805
760
|
export declare enum PAGE_STATUS {
|
|
806
761
|
UNKNOWN = 0,
|
|
@@ -903,17 +858,6 @@ export declare class RowStyleRule {
|
|
|
903
858
|
* @public
|
|
904
859
|
*/
|
|
905
860
|
name: string;
|
|
906
|
-
settings: RowStyleSettings[];
|
|
907
|
-
/**
|
|
908
|
-
* 过滤条件
|
|
909
|
-
* @defaultValue []
|
|
910
|
-
* @public
|
|
911
|
-
*/
|
|
912
|
-
filters?: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
913
|
-
script?: string;
|
|
914
|
-
constructor(props?: Partial<RowStyleRule>);
|
|
915
|
-
}
|
|
916
|
-
export declare class RowStyleSettings {
|
|
917
861
|
/**
|
|
918
862
|
* 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
|
|
919
863
|
* @defaultValue 'theme'
|
|
@@ -921,24 +865,16 @@ export declare class RowStyleSettings {
|
|
|
921
865
|
*/
|
|
922
866
|
color: string;
|
|
923
867
|
/**
|
|
924
|
-
*
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* 样式类型,background单元格背景色,fontColor单元格字体色
|
|
929
|
-
*/
|
|
930
|
-
type: 'background' | 'fontColor';
|
|
931
|
-
/**
|
|
932
|
-
* 作用范围,row整行,col整列
|
|
868
|
+
* 过滤条件
|
|
869
|
+
* @defaultValue []
|
|
870
|
+
* @public
|
|
933
871
|
*/
|
|
934
|
-
|
|
935
|
-
constructor(props
|
|
872
|
+
filters?: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
873
|
+
constructor(props?: Partial<RowStyleRule>);
|
|
936
874
|
}
|
|
937
|
-
export declare class
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
rules: RowStyleRule[];
|
|
943
|
-
constructor(props?: Partial<RowStyle>);
|
|
875
|
+
export declare class RowStyleRuleScript {
|
|
876
|
+
id: string;
|
|
877
|
+
script: string;
|
|
878
|
+
color: string;
|
|
879
|
+
constructor(props: Partial<RowStyleRuleScript>);
|
|
944
880
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DataBind, ObjectDataBind } from
|
|
1
|
+
import { DataBind, ObjectDataBind } from "framework";
|
|
2
2
|
export declare function isDataBind(dataBind: DataBind | ObjectDataBind): boolean;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "model engine core",
|
|
5
|
-
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
|
-
"homepage": "",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"main": "dist/esm/index.js",
|
|
9
|
-
"module": "dist/esm/index.js",
|
|
10
|
-
"umd": "dist/index.umd.js",
|
|
11
|
-
"types": "dist/types",
|
|
12
|
-
"files": [
|
|
13
|
-
"bin",
|
|
14
|
-
"dist",
|
|
15
|
-
"types"
|
|
16
|
-
],
|
|
17
|
-
"publishConfig": {
|
|
18
|
-
"registry": "https://registry.npmjs.org/",
|
|
19
|
-
"access": "public"
|
|
20
|
-
},
|
|
21
|
-
"scripts": {
|
|
22
|
-
"compiler": "tsc --emitDeclarationOnly && swc src -d dist/esm -C jsc.target=es5 -D",
|
|
23
|
-
"cleanup": "rimraf ./dist",
|
|
24
|
-
"prepublish": "npm run cleanup && npm run compiler && npm run build",
|
|
25
|
-
"build": "rollup -c",
|
|
26
|
-
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
|
-
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-shared": "2.
|
|
30
|
-
"async-validator": "3.5.1",
|
|
31
|
-
"tslib": "^2.1.0"
|
|
32
|
-
},
|
|
33
|
-
"gitHead": "
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
+
"version": "4.34.0-lx1",
|
|
4
|
+
"description": "model engine core",
|
|
5
|
+
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"main": "dist/esm/index.js",
|
|
9
|
+
"module": "dist/esm/index.js",
|
|
10
|
+
"umd": "dist/index.umd.js",
|
|
11
|
+
"types": "dist/types",
|
|
12
|
+
"files": [
|
|
13
|
+
"bin",
|
|
14
|
+
"dist",
|
|
15
|
+
"types"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"registry": "https://registry.npmjs.org/",
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"compiler": "tsc --emitDeclarationOnly && swc src -d dist/esm -C jsc.target=es5 -D",
|
|
23
|
+
"cleanup": "rimraf ./dist",
|
|
24
|
+
"prepublish": "npm run cleanup && npm run compiler && npm run build",
|
|
25
|
+
"build": "rollup -c",
|
|
26
|
+
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.9.1-beta.1",
|
|
30
|
+
"async-validator": "3.5.1",
|
|
31
|
+
"tslib": "^2.1.0"
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "e025fedefd536dab28b2d153831869d6ec5b4645"
|
|
34
|
+
}
|