@byteluck-fe/model-driven-driven 4.38.0-lx0 → 6.1.0-1-beta.2
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/Builder.js +46 -31
- package/dist/esm/Designer.js +4 -8
- package/dist/esm/Driven.js +2 -1
- package/dist/esm/Store.js +9 -9
- package/dist/esm/constants.js +7 -6
- package/dist/esm/designerUtils.js +8 -3
- package/dist/esm/utils.js +14 -89
- package/dist/index.umd.js +3 -3
- package/dist/types/Builder.d.ts +2 -1
- package/dist/types/Driven.d.ts +2 -0
- package/dist/types/designerUtils.d.ts +0 -1
- package/dist/types/utils.d.ts +1 -15
- package/package.json +6 -6
package/dist/types/Builder.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { ControlDesignerInstance } from '@byteluck-fe/model-driven-core';
|
|
2
|
+
import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
|
|
2
3
|
export declare class Builder {
|
|
3
4
|
private designer;
|
|
4
5
|
ListPageBuilder(): ControlDesignerInstance<'list-view'>;
|
|
5
6
|
ProListPageBuilder(): ControlDesignerInstance<'list-view'>;
|
|
6
7
|
FormPageBuilder(): ControlDesignerInstance<'data-view'>;
|
|
7
|
-
VuePageBuilder(): ControlDesignerInstance<
|
|
8
|
+
VuePageBuilder(): ControlDesignerInstance<CONTROL_TYPE.VUE_PAGE>;
|
|
8
9
|
}
|
package/dist/types/Driven.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ControlsKeys, ControlDesignerInstance, DesignerFormControl, DesignerLayoutControl, DesignerControl, DesignerListControl, DesignerSearchControl, DesignerWrapControl } from '@byteluck-fe/model-driven-core';
|
|
2
2
|
export declare function hasChildrenControl(instance: DesignerControl): instance is DesignerLayoutControl | DesignerSearchControl | DesignerWrapControl;
|
|
3
3
|
export declare function hasHeaderControl(instance: DesignerControl): instance is DesignerListControl;
|
|
4
|
-
export declare function hasFooterControl(instance: DesignerControl): instance is DesignerListControl;
|
|
5
4
|
export declare function loopFormControl(control: ControlDesignerInstance<ControlsKeys>[], callback: (item: DesignerFormControl | ControlDesignerInstance<'subtable'>, children?: DesignerFormControl[]) => any): void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import { Schema, ControlsKeys,
|
|
2
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
1
|
+
import { Schema, ControlsKeys, DataBindModelType, DesignerControl, DesignerFormControl, Messages } from '@byteluck-fe/model-driven-core';
|
|
3
2
|
export declare function getMasterFormControls(controls: DesignerControl[]): DesignerFormControl[];
|
|
4
3
|
/**
|
|
5
4
|
* @description 给modelBindInfoList中填充fieldCode和dataCode
|
|
6
5
|
* @description 我们生成fieldCode的规则是:DataBind的控件,取`field_${id}`,ObjectDataBind的控件,取`field_${id}_${key}`, key指的是ObjectDataBind.keys()
|
|
7
6
|
* */
|
|
8
7
|
export declare function fillModelBindInfoListFieldCode(modelBindInfoList: DataBindModelType[], dataCode?: string): DataBindModelType[];
|
|
9
|
-
/**
|
|
10
|
-
* @description 通过fieldType获取列表表头的type
|
|
11
|
-
* */
|
|
12
|
-
export declare function getColumnTypeFromFiledType(fieldType: string): ColumnControlsKeys | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* @description 通过modelBindInfoList生成多个columns
|
|
15
|
-
* */
|
|
16
|
-
export declare function getColumnsFromModelBindInfoList(modelBindInfoList: DataBindModelType[]): DesignerColumnControl[];
|
|
17
|
-
/**
|
|
18
|
-
* @description 通过fieldType获取列实例
|
|
19
|
-
* */
|
|
20
|
-
export declare function getColumnsFromFiledType(fieldTypes: FieldTypes[]): ControlDesignerInstance<ColumnControlsKeys>[];
|
|
21
|
-
export declare function getColumnsFromFiledType(fieldType: FieldTypes): ControlDesignerInstance<ColumnControlsKeys>;
|
|
22
8
|
/**
|
|
23
9
|
* @description 将控件实例转换为schema
|
|
24
10
|
* */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-driven",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0-1-beta.2",
|
|
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-controls": "
|
|
30
|
-
"@byteluck-fe/model-driven-core": "
|
|
31
|
-
"@byteluck-fe/model-driven-settings": "
|
|
32
|
-
"@byteluck-fe/model-driven-shared": "
|
|
29
|
+
"@byteluck-fe/model-driven-controls": "6.1.0-1-beta.2",
|
|
30
|
+
"@byteluck-fe/model-driven-core": "6.1.0-1-beta.2",
|
|
31
|
+
"@byteluck-fe/model-driven-settings": "6.1.0-1-beta.2",
|
|
32
|
+
"@byteluck-fe/model-driven-shared": "6.1.0-1-beta.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "eacb8b0bb68fec8e2fd4a2ca9d137397072ab5a8"
|
|
35
35
|
}
|