@byteluck-fe/model-driven-core 2.7.0-beta.4 → 2.8.0-alpha.1a
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 +4 -1
- package/dist/esm/common/BaseControl/property.js +1 -0
- package/dist/esm/common/BaseControl/runtime.js +1 -0
- package/dist/esm/common/ControlArray.js +14 -12
- package/dist/esm/common/FormControl/property.js +13 -15
- package/dist/esm/common/LayoutControl/designer.js +1 -1
- package/dist/esm/common/LayoutControl/runtime.js +1 -1
- package/dist/esm/common/ListControl/designer.js +11 -2
- package/dist/esm/common/ListControl/property.js +15 -2
- package/dist/esm/common/ListControl/runtime.js +2 -2
- package/dist/esm/framework/RegisterControls.js +104 -11
- package/dist/esm/framework/index.js +45 -17
- package/dist/esm/framework/isDataBind.js +7 -0
- package/dist/esm/index.js +1 -0
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/designer.d.ts +2 -1
- package/dist/types/common/BaseControl/property.d.ts +2 -0
- package/dist/types/common/BaseControl/runtime.d.ts +2 -1
- package/dist/types/common/ColumnControl/property.d.ts +1 -1
- package/dist/types/common/ControlArray.d.ts +4 -3
- package/dist/types/common/ListControl/property.d.ts +6 -1
- package/dist/types/framework/RegisterControls.d.ts +5 -1
- package/dist/types/framework/index.d.ts +32 -2
- package/dist/types/framework/isDataBind.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/type.d.ts +1 -1
- package/package.json +3 -3
|
@@ -23,6 +23,12 @@ export declare class DataBind {
|
|
|
23
23
|
* @public
|
|
24
24
|
*/
|
|
25
25
|
fieldType: string;
|
|
26
|
+
/**
|
|
27
|
+
* 表别名
|
|
28
|
+
* @defaultValue undefined
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
aliasCode?: string;
|
|
26
32
|
constructor(props?: Partial<DataBind>);
|
|
27
33
|
}
|
|
28
34
|
export declare class AutoWidth {
|
|
@@ -193,6 +199,15 @@ export declare class FieldFilterCondition {
|
|
|
193
199
|
rightVariableBo: RightVariable;
|
|
194
200
|
constructor(props?: Partial<FieldFilterCondition>);
|
|
195
201
|
}
|
|
202
|
+
export declare class JoinRelation {
|
|
203
|
+
aliasCode: string;
|
|
204
|
+
datasourceBind: DataSourceBind;
|
|
205
|
+
relationFields: {
|
|
206
|
+
main_field_code: string;
|
|
207
|
+
join_field_code: string;
|
|
208
|
+
}[];
|
|
209
|
+
constructor(props?: Partial<JoinRelation>);
|
|
210
|
+
}
|
|
196
211
|
/**
|
|
197
212
|
* 数据填充项
|
|
198
213
|
* @public
|
|
@@ -379,6 +394,7 @@ export declare class LinkOperationOption {
|
|
|
379
394
|
confirmMessage: undefined;
|
|
380
395
|
defaultState: string;
|
|
381
396
|
formKey: undefined | string;
|
|
397
|
+
formType?: string;
|
|
382
398
|
icon: string;
|
|
383
399
|
needConfirm: boolean;
|
|
384
400
|
openType: string;
|
|
@@ -580,7 +596,7 @@ export declare class RangeDataBind extends ObjectDataBind {
|
|
|
580
596
|
* 结束日期字段绑定项
|
|
581
597
|
*/
|
|
582
598
|
max: DataBind;
|
|
583
|
-
constructor(props?: Partial<
|
|
599
|
+
constructor(props?: Partial<RangeDataBind>);
|
|
584
600
|
}
|
|
585
601
|
/**
|
|
586
602
|
* 日期区间值
|
|
@@ -732,7 +748,6 @@ export declare enum COMMON_SETTING_TYPE {
|
|
|
732
748
|
VIEW_FORM_MODEL_TYPE = "viewFormModelType",
|
|
733
749
|
SERVER_PAGINATION = "serverPagination",
|
|
734
750
|
IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
|
|
735
|
-
IS_SHOW_WATERMARK = "isShowWatermark",
|
|
736
751
|
ENCRYPTED = "encrypted",
|
|
737
752
|
IS_INLINE_EDIT = "isInlineEdit",
|
|
738
753
|
REVISIONS_MODE = "revisionsMode",
|
|
@@ -812,3 +827,18 @@ export declare class BaseStyle {
|
|
|
812
827
|
heightConfig: 'px' | '%' | 'fill' | 'hug';
|
|
813
828
|
constructor(props?: Partial<BaseStyle>);
|
|
814
829
|
}
|
|
830
|
+
export declare class OptObject {
|
|
831
|
+
/**
|
|
832
|
+
* 操作项编码
|
|
833
|
+
* @defaultValue ''
|
|
834
|
+
* @public
|
|
835
|
+
*/
|
|
836
|
+
optCode: string;
|
|
837
|
+
/**
|
|
838
|
+
* 操作项类型
|
|
839
|
+
* @defaultValue ''
|
|
840
|
+
* @public
|
|
841
|
+
*/
|
|
842
|
+
optType: string;
|
|
843
|
+
constructor(props?: Partial<OptObject>);
|
|
844
|
+
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/type.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface WrapControlSchema<K extends WrapControlsKeys, T extends WrapCon
|
|
|
85
85
|
controlType: 'wrap';
|
|
86
86
|
children: R[];
|
|
87
87
|
}
|
|
88
|
-
export type Schema<K extends ControlsKeys, T extends Property = InstanceType<Controls[K]['Property']>> = K extends FormControlsKeys ? FormControlSchema<K, T extends BaseControlProperty ? T : BaseControlProperty> : K extends LayoutControlsKeys ? LayoutControlSchema<K, T extends LayoutControlProperty ? T : LayoutControlProperty> : K extends ListControlsKeys ? ListControlSchema<K, T extends ListControlProperty<any> ? T : ListControlProperty<any>> : K extends ColumnControlsKeys ? ColumnControlSchema<K, T extends ColumnControlProperty ? T : ColumnControlProperty> : K extends SearchControlsKeys ? SearchControlSchema<K, T extends SearchControlProperty ? T : SearchControlProperty> : K extends BaseControlsKeys ? BaseControlSchema<K, T extends Property ? T : Property> : BaseControlSchema<K, T extends Property ? T : Property>;
|
|
88
|
+
export type Schema<K extends ControlsKeys, T extends Property = InstanceType<Controls[K]['Property']>> = K extends FormControlsKeys ? FormControlSchema<K, T extends BaseControlProperty ? T : BaseControlProperty> : K extends LayoutControlsKeys ? LayoutControlSchema<K, T extends LayoutControlProperty ? T : LayoutControlProperty> : K extends ListControlsKeys ? ListControlSchema<K, T extends ListControlProperty<any> ? T : ListControlProperty<any>> : K extends ColumnControlsKeys ? ColumnControlSchema<K, T extends ColumnControlProperty ? T : ColumnControlProperty> : K extends SearchControlsKeys ? SearchControlSchema<K, T extends SearchControlProperty ? T : SearchControlProperty> : K extends WrapControlsKeys ? WrapControlSchema<K, T extends WrapControlProperty ? T : WrapControlProperty> : K extends BaseControlsKeys ? BaseControlSchema<K, T extends Property ? T : Property> : BaseControlSchema<K, T extends Property ? T : Property>;
|
|
89
89
|
export type DeepPartial<T> = {
|
|
90
90
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
91
91
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha.1a",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"postpublish": "node ../../scripts/postpublish.js"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@byteluck-fe/model-driven-shared": "2.7.0-
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.7.0-alpha.38a",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "94f33265fbf14e4859f865af60018c9ec820550d"
|
|
34
34
|
}
|