@byteluck-fe/model-driven-core 2.3.1-beta.2 → 2.3.1-beta.23

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,8 +1,27 @@
1
1
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
2
  export * from './RegisterControls';
3
+ /**
4
+ * 数据绑定配置
5
+ * @public
6
+ */
3
7
  export declare class DataBind {
8
+ /**
9
+ * 数据模型编码
10
+ * @defaultValue ''
11
+ * @public
12
+ */
4
13
  dataCode: string;
14
+ /**
15
+ * 字段编码
16
+ * @defaultValue ''
17
+ * @public
18
+ */
5
19
  fieldCode: string;
20
+ /**
21
+ * 字段类型
22
+ * @defaultValue ''
23
+ * @public
24
+ */
6
25
  fieldType: string;
7
26
  constructor(props?: Partial<DataBind>);
8
27
  }
@@ -41,9 +60,24 @@ declare class ListBindHeaderItem {
41
60
  fieldCode: string;
42
61
  constructor(props?: Partial<ListBindHeaderItem>);
43
62
  }
63
+ /**
64
+ * 列表绑定配置
65
+ */
44
66
  export declare class ListBind {
67
+ /**
68
+ * 应用ID
69
+ * @public
70
+ */
45
71
  appId: string;
72
+ /**
73
+ * 表单ID
74
+ * @public
75
+ */
46
76
  formKey: string;
77
+ /**
78
+ * 显示字段
79
+ * @public
80
+ */
47
81
  headers: ListBindHeaderItem[];
48
82
  constructor(props?: Partial<ListBind>);
49
83
  }
@@ -98,13 +132,34 @@ export declare class FieldFilterCondition {
98
132
  rightVariableBo: RightVariable;
99
133
  constructor(props?: Partial<FieldFilterCondition>);
100
134
  }
135
+ /**
136
+ * 数据填充项
137
+ * @public
138
+ */
101
139
  export declare class MultistageFillingItem {
140
+ /**
141
+ * 控件ID
142
+ * @defaultValue ''
143
+ * @public
144
+ */
102
145
  controlId: string;
146
+ /**
147
+ * 字段
148
+ * @defaultValue ''
149
+ * @public
150
+ */
103
151
  fieldCode: string;
104
152
  /**
105
- * 事件在填充时,需要根据数据类型进行判断处理动作。
153
+ * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
154
+ * @defaultValue ''
155
+ * @public
106
156
  */
107
157
  fieldType: string;
158
+ /**
159
+ * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
160
+ * @defaultValue ''
161
+ * @public
162
+ * */
108
163
  propName: string;
109
164
  constructor(props: Partial<MultistageFillingItem>);
110
165
  }
@@ -136,14 +191,58 @@ export declare class DataSourceParamItem {
136
191
  dataSet: DataSourceDataSetValue[];
137
192
  constructor(props: Partial<DataSourceParamItem>);
138
193
  }
194
+ /**
195
+ * 数据源绑定配置
196
+ * @public
197
+ */
139
198
  export declare class DataSourceBind {
199
+ /**
200
+ * 绑定数据源id
201
+ * @defaultValue ''
202
+ * @public
203
+ */
140
204
  dataCode: string;
205
+ /**
206
+ * 存储值
207
+ * @defaultValue ''
208
+ * @public
209
+ */
141
210
  valueFieldCode: string;
211
+ /**
212
+ * 显示值
213
+ * @defaultValue []
214
+ * @public
215
+ */
142
216
  displayBoList: DisplayBoListItem[];
217
+ /**
218
+ * 绑定服务
219
+ * @defaultValue ''
220
+ * @public
221
+ */
143
222
  svcCode: string;
223
+ /**
224
+ * 应用Id
225
+ * @defaultValue ''
226
+ * @public
227
+ */
144
228
  appId?: string;
229
+ /**
230
+ * 过滤条件
231
+ * @defaultValue []
232
+ * @public
233
+ */
145
234
  filters?: Array<FieldFilterCondition | FieldFilterConditions>;
235
+ /**
236
+ * 排序
237
+ * @defaultValue []
238
+ * @public
239
+ */
146
240
  orders?: DataSourceOrderItem[];
241
+ /**
242
+ * 显示排序
243
+ * @defaultValue true
244
+ * @public
245
+ */
147
246
  showOrder?: boolean;
148
247
  constructor(props?: Partial<DataSourceBind>);
149
248
  }
@@ -176,13 +275,42 @@ declare class FillBind {
176
275
  fillList: MultistageFillingItem[];
177
276
  constructor(props?: Partial<FillBind>);
178
277
  }
278
+ /**
279
+ * FillPayloadBind 填充配置
280
+ * 填充的配置和需要携带的数据
281
+ * @public
282
+ * */
179
283
  export declare class FillPayloadBind extends FillBind {
284
+ /**
285
+ * 数据源过滤条件
286
+ * @defaultValue []
287
+ * @public
288
+ **/
180
289
  filters: Array<FieldFilterCondition | FieldFilterConditions>;
290
+ /**
291
+ * 数据源排序条件
292
+ * @defaultValue []
293
+ * @public
294
+ **/
181
295
  orders: DataSourceOrderItem[];
182
296
  constructor(props?: Partial<FillPayloadBind>);
183
297
  }
298
+ /**
299
+ * FillBackBind 回填需要的配置和参数
300
+ * @public
301
+ */
184
302
  export declare class FillBackBind extends FillBind {
303
+ /**
304
+ * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
305
+ * @defaultValue 'current'
306
+ * @public
307
+ * */
185
308
  mode: 'current' | 'subtable';
309
+ /**
310
+ * 多选
311
+ * @defaultValue false
312
+ * @public
313
+ */
186
314
  multiple: boolean;
187
315
  constructor(props?: Partial<FillBackBind>);
188
316
  }
@@ -206,9 +334,23 @@ export declare class RegularRules {
206
334
  errMessage: string;
207
335
  constructor(props?: Partial<RegularRules>);
208
336
  }
337
+ /**
338
+ * 选项设置-自定义选项
339
+ * @public
340
+ */
209
341
  export declare class OptionSetting {
210
342
  readonly id: string;
343
+ /**
344
+ * 显示值
345
+ * @defaultValue ''
346
+ * @public
347
+ */
211
348
  label: string;
349
+ /**
350
+ * 选项ID
351
+ * @defaultValue this.label
352
+ * @public
353
+ */
212
354
  value: string;
213
355
  constructor(props?: Partial<OptionSetting>);
214
356
  }
@@ -334,11 +476,40 @@ export declare enum PAGE_STATUS {
334
476
  EDITABLE = 2,
335
477
  PRINT = 5
336
478
  }
479
+ /**
480
+ * 操作按钮
481
+ * @public
482
+ */
337
483
  export declare class OperationItem {
484
+ /**
485
+ * 是否显示
486
+ * @defaultValue true
487
+ * @public
488
+ */
338
489
  isShow: boolean;
490
+ /**
491
+ * 优先访问流程表单
492
+ * @defaultValue false
493
+ * @public
494
+ */
339
495
  priorityProcess: boolean;
496
+ /**
497
+ * 表单ID
498
+ * @defaultValue ''
499
+ * @public
500
+ */
340
501
  formKey: string;
502
+ /**
503
+ * 显示文字
504
+ * @defaultValue ''
505
+ * @public
506
+ */
341
507
  content: string;
508
+ /**
509
+ * 打开方式
510
+ * @defaultValue 'modal'
511
+ * @public
512
+ */
342
513
  openType: 'modal' | 'window' | 'dialog' | 'tab';
343
514
  readonly type: string;
344
515
  constructor(props?: Partial<OperationItem>);
@@ -2,7 +2,7 @@ import { BaseControlProperty, LayoutControlProperty, Property, DesignerControl,
2
2
  import { PAGE_STATUS } from './framework';
3
3
  import { FieldTypes } from '@byteluck-fe/model-driven-shared';
4
4
  import { WrapControlProperty } from './common/WrapControl';
5
- export declare type SchemaUpgradeFunction = (schemaJSON: any, newVersion: string, oldVersion: string, payload?: any) => any;
5
+ export type SchemaUpgradeFunction = (schemaJSON: any, newVersion: string, oldVersion: string, payload?: any) => any;
6
6
  export interface ExportedControl {
7
7
  Property: typeof Property;
8
8
  Designer: typeof DesignerControl;
@@ -32,26 +32,26 @@ export interface WrapControls {
32
32
  }
33
33
  export interface Controls extends BaseControls, FormControls, LayoutControls, ListControls, ColumnControls, SearchControls, WrapControls {
34
34
  }
35
- export declare type GetKeys<T extends string> = T extends never ? string : T;
36
- export declare type MODE = 'Designer' | 'Runtime';
37
- export declare type BaseControlsKeys = GetKeys<keyof BaseControls>;
38
- export declare type FormControlsKeys = GetKeys<keyof FormControls>;
39
- export declare type LayoutControlsKeys = GetKeys<keyof LayoutControls>;
40
- export declare type ListControlsKeys = GetKeys<keyof ListControls>;
41
- export declare type ColumnControlsKeys = GetKeys<keyof ColumnControls>;
42
- export declare type SearchControlsKeys = GetKeys<keyof SearchControls>;
43
- export declare type WrapControlsKeys = GetKeys<keyof WrapControls>;
44
- export declare type ControlsKeys = GetKeys<keyof Controls>;
45
- export declare type ControlExport = ExportedControl;
46
- export declare type ControlDesigner<T extends ControlsKeys> = Controls[T]['Designer'];
47
- export declare type ControlDesignerInstance<T extends ControlsKeys> = InstanceType<ControlDesigner<T>>;
48
- export declare type ControlRuntime<T extends ControlsKeys> = Controls[T]['Runtime'];
49
- export declare type ControlRuntimeInstance<T extends ControlsKeys> = InstanceType<ControlRuntime<T>>;
50
- export declare type ControlProperty<T extends ControlsKeys> = Controls[T]['Property'];
51
- export declare type ControlPropertyInstance<T extends ControlsKeys> = InstanceType<ControlProperty<T>>;
52
- export declare type ControlsConstructor<T extends ControlsKeys, P extends MODE> = Controls[T][P];
53
- export declare type ControlsInstance<T extends ControlsKeys, P extends MODE> = InstanceType<ControlsConstructor<T, P>>;
54
- export declare type BaseControlTypes = 'layout' | 'form' | 'base' | 'list' | 'column' | 'search' | 'wrap';
35
+ export type GetKeys<T extends string> = T extends never ? string : T;
36
+ export type MODE = 'Designer' | 'Runtime';
37
+ export type BaseControlsKeys = GetKeys<keyof BaseControls>;
38
+ export type FormControlsKeys = GetKeys<keyof FormControls>;
39
+ export type LayoutControlsKeys = GetKeys<keyof LayoutControls>;
40
+ export type ListControlsKeys = GetKeys<keyof ListControls>;
41
+ export type ColumnControlsKeys = GetKeys<keyof ColumnControls>;
42
+ export type SearchControlsKeys = GetKeys<keyof SearchControls>;
43
+ export type WrapControlsKeys = GetKeys<keyof WrapControls>;
44
+ export type ControlsKeys = GetKeys<keyof Controls>;
45
+ export type ControlExport = ExportedControl;
46
+ export type ControlDesigner<T extends ControlsKeys> = Controls[T]['Designer'];
47
+ export type ControlDesignerInstance<T extends ControlsKeys> = InstanceType<ControlDesigner<T>>;
48
+ export type ControlRuntime<T extends ControlsKeys> = Controls[T]['Runtime'];
49
+ export type ControlRuntimeInstance<T extends ControlsKeys> = InstanceType<ControlRuntime<T>>;
50
+ export type ControlProperty<T extends ControlsKeys> = Controls[T]['Property'];
51
+ export type ControlPropertyInstance<T extends ControlsKeys> = InstanceType<ControlProperty<T>>;
52
+ export type ControlsConstructor<T extends ControlsKeys, P extends MODE> = Controls[T][P];
53
+ export type ControlsInstance<T extends ControlsKeys, P extends MODE> = InstanceType<ControlsConstructor<T, P>>;
54
+ export type BaseControlTypes = 'layout' | 'form' | 'base' | 'list' | 'column' | 'search' | 'wrap';
55
55
  export interface BaseControlSchema<K extends ControlsKeys, T extends Property> {
56
56
  id: string;
57
57
  type: K;
@@ -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 declare 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>;
89
- export declare type DeepPartial<T> = {
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>;
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.1-beta.2",
3
+ "version": "2.3.1-beta.23",
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.3.1-beta.2",
29
+ "@byteluck-fe/model-driven-shared": "2.3.1-beta.23",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "7327a79615276a22409097664726fb74867a7d89"
33
+ "gitHead": "ae14e16a974498394d4d7a496cfc151eaa166b58"
34
34
  }