@byteluck-fe/model-driven-driven 3.0.0-beta.5 → 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.
@@ -1,9 +1,8 @@
1
1
  import { ControlDesignerInstance } from '@byteluck-fe/model-driven-core';
2
- import { CONTROL_TYPE } from '@byteluck-fe/model-driven-shared';
3
2
  export declare class Builder {
4
3
  private designer;
5
4
  ListPageBuilder(): ControlDesignerInstance<'list-view'>;
6
5
  ProListPageBuilder(): ControlDesignerInstance<'list-view'>;
7
6
  FormPageBuilder(): ControlDesignerInstance<'data-view'>;
8
- VuePageBuilder(): ControlDesignerInstance<CONTROL_TYPE.VUE_PAGE>;
7
+ VuePageBuilder(): ControlDesignerInstance<'grid'>;
9
8
  }
@@ -15,8 +15,6 @@ interface DrivenOptions {
15
15
  mode?: string;
16
16
  schema: SchemaBaseType | SchemaBaseType[];
17
17
  store?: Omit<StoreOptions, 'instance'>;
18
- messagesI18n?: Object;
19
- language?: string;
20
18
  }
21
19
  /**
22
20
  * 设计器驱动
@@ -1,4 +1,5 @@
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;
4
5
  export declare function loopFormControl(control: ControlDesignerInstance<ControlsKeys>[], callback: (item: DesignerFormControl | ControlDesignerInstance<'subtable'>, children?: DesignerFormControl[]) => any): void;
@@ -1,10 +1,24 @@
1
- import { Schema, ControlsKeys, DataBindModelType, DesignerControl, DesignerFormControl, Messages } from '@byteluck-fe/model-driven-core';
1
+ import { Schema, ControlsKeys, ColumnControlsKeys, DataBindModelType, ControlDesignerInstance, DesignerColumnControl, DesignerControl, DesignerFormControl, Messages } from '@byteluck-fe/model-driven-core';
2
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
3
  export declare function getMasterFormControls(controls: DesignerControl[]): DesignerFormControl[];
3
4
  /**
4
5
  * @description 给modelBindInfoList中填充fieldCode和dataCode
5
6
  * @description 我们生成fieldCode的规则是:DataBind的控件,取`field_${id}`,ObjectDataBind的控件,取`field_${id}_${key}`, key指的是ObjectDataBind.keys()
6
7
  * */
7
8
  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>;
8
22
  /**
9
23
  * @description 将控件实例转换为schema
10
24
  * */
package/package.json CHANGED
@@ -1,35 +1,35 @@
1
- {
2
- "name": "@byteluck-fe/model-driven-driven",
3
- "version": "3.0.0-beta.5",
4
- "description": "> TODO: description",
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-controls": "3.0.0-beta.5",
30
- "@byteluck-fe/model-driven-core": "3.0.0-beta.5",
31
- "@byteluck-fe/model-driven-settings": "3.0.0-beta.5",
32
- "@byteluck-fe/model-driven-shared": "3.0.0-beta.5"
33
- },
34
- "gitHead": "dc66087ea6236693a8b08e81c417184fa60a2f90"
35
- }
1
+ {
2
+ "name": "@byteluck-fe/model-driven-driven",
3
+ "version": "4.34.0-lx1",
4
+ "description": "> TODO: description",
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-controls": "4.34.0-lx1",
30
+ "@byteluck-fe/model-driven-core": "4.34.0-lx1",
31
+ "@byteluck-fe/model-driven-settings": "4.34.0-lx1",
32
+ "@byteluck-fe/model-driven-shared": "2.9.1-beta.1"
33
+ },
34
+ "gitHead": "e025fedefd536dab28b2d153831869d6ec5b4645"
35
+ }