@byteluck-fe/model-driven-core 2.2.7-beta.1 → 2.3.1-beta.18

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.
Files changed (28) hide show
  1. package/dist/esm/api-doc-index.js +4 -0
  2. package/dist/esm/common/BaseControl/designer.js +189 -228
  3. package/dist/esm/common/BaseControl/property.js +4 -21
  4. package/dist/esm/common/BaseControl/runtime.js +5 -26
  5. package/dist/esm/common/ColumnControl/designer.js +1 -15
  6. package/dist/esm/common/ColumnControl/property.js +15 -35
  7. package/dist/esm/common/ColumnControl/runtime.js +1 -15
  8. package/dist/esm/common/FormControl/designer.js +3 -18
  9. package/dist/esm/common/FormControl/property.js +21 -45
  10. package/dist/esm/common/FormControl/runtime.js +1 -16
  11. package/dist/esm/common/LayoutControl/designer.js +70 -104
  12. package/dist/esm/common/LayoutControl/runtime.js +1 -16
  13. package/dist/esm/common/ListControl/designer.js +61 -86
  14. package/dist/esm/common/ListControl/property.js +0 -14
  15. package/dist/esm/common/ListControl/runtime.js +1 -16
  16. package/dist/esm/common/SearchViewControl/designer.js +1 -15
  17. package/dist/esm/common/SearchViewControl/property.js +0 -14
  18. package/dist/esm/common/SearchViewControl/runtime.js +1 -15
  19. package/dist/esm/common/WrapControl/designer.js +1 -15
  20. package/dist/esm/common/WrapControl/runtime.js +1 -15
  21. package/dist/esm/framework/RegisterControls.js +128 -197
  22. package/dist/esm/framework/index.js +66 -186
  23. package/dist/index.umd.js +1 -1
  24. package/dist/types/api-doc-index.d.ts +4 -0
  25. package/dist/types/common/ColumnControl/property.d.ts +39 -0
  26. package/dist/types/common/FormControl/property.d.ts +52 -0
  27. package/dist/types/framework/index.d.ts +187 -1
  28. package/package.json +3 -3
@@ -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
  }
@@ -12,6 +31,21 @@ export declare class AutoWidth {
12
31
  flex: number;
13
32
  constructor(props?: Partial<AutoWidth>);
14
33
  }
34
+ export declare class MetaWidth extends AutoWidth {
35
+ width: number;
36
+ widthType: 'px' | 'auto';
37
+ constructor(props?: Partial<MetaWidth>);
38
+ }
39
+ export declare class MetaAutoWidth {
40
+ pc: MetaWidth;
41
+ mobile: MetaWidth;
42
+ constructor(props?: Partial<MetaAutoWidth>);
43
+ }
44
+ export declare class DataStorageDoc {
45
+ type: 'firstThree' | 'custom';
46
+ customOptions: string[];
47
+ constructor(props?: Partial<DataStorageDoc>);
48
+ }
15
49
  export declare class FormBind {
16
50
  dataCode: string;
17
51
  formKey: string;
@@ -26,9 +60,24 @@ declare class ListBindHeaderItem {
26
60
  fieldCode: string;
27
61
  constructor(props?: Partial<ListBindHeaderItem>);
28
62
  }
63
+ /**
64
+ * 列表绑定配置
65
+ */
29
66
  export declare class ListBind {
67
+ /**
68
+ * 应用ID
69
+ * @public
70
+ */
30
71
  appId: string;
72
+ /**
73
+ * 表单ID
74
+ * @public
75
+ */
31
76
  formKey: string;
77
+ /**
78
+ * 显示字段
79
+ * @public
80
+ */
32
81
  headers: ListBindHeaderItem[];
33
82
  constructor(props?: Partial<ListBind>);
34
83
  }
@@ -83,13 +132,34 @@ export declare class FieldFilterCondition {
83
132
  rightVariableBo: RightVariable;
84
133
  constructor(props?: Partial<FieldFilterCondition>);
85
134
  }
135
+ /**
136
+ * 数据填充项
137
+ * @public
138
+ */
86
139
  export declare class MultistageFillingItem {
140
+ /**
141
+ * 控件ID
142
+ * @defaultValue ''
143
+ * @public
144
+ */
87
145
  controlId: string;
146
+ /**
147
+ * 字段
148
+ * @defaultValue ''
149
+ * @public
150
+ */
88
151
  fieldCode: string;
89
152
  /**
90
- * 事件在填充时,需要根据数据类型进行判断处理动作。
153
+ * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
154
+ * @defaultValue ''
155
+ * @public
91
156
  */
92
157
  fieldType: string;
158
+ /**
159
+ * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
160
+ * @defaultValue ''
161
+ * @public
162
+ * */
93
163
  propName: string;
94
164
  constructor(props: Partial<MultistageFillingItem>);
95
165
  }
@@ -121,14 +191,58 @@ export declare class DataSourceParamItem {
121
191
  dataSet: DataSourceDataSetValue[];
122
192
  constructor(props: Partial<DataSourceParamItem>);
123
193
  }
194
+ /**
195
+ * 数据源绑定配置
196
+ * @public
197
+ */
124
198
  export declare class DataSourceBind {
199
+ /**
200
+ * 绑定数据源id
201
+ * @defaultValue ''
202
+ * @public
203
+ */
125
204
  dataCode: string;
205
+ /**
206
+ * 存储值
207
+ * @defaultValue ''
208
+ * @public
209
+ */
126
210
  valueFieldCode: string;
211
+ /**
212
+ * 显示值
213
+ * @defaultValue []
214
+ * @public
215
+ */
127
216
  displayBoList: DisplayBoListItem[];
217
+ /**
218
+ * 绑定服务
219
+ * @defaultValue ''
220
+ * @public
221
+ */
128
222
  svcCode: string;
223
+ /**
224
+ * 应用Id
225
+ * @defaultValue ''
226
+ * @public
227
+ */
129
228
  appId?: string;
229
+ /**
230
+ * 过滤条件
231
+ * @defaultValue []
232
+ * @public
233
+ */
130
234
  filters?: Array<FieldFilterCondition | FieldFilterConditions>;
235
+ /**
236
+ * 排序
237
+ * @defaultValue []
238
+ * @public
239
+ */
131
240
  orders?: DataSourceOrderItem[];
241
+ /**
242
+ * 显示排序
243
+ * @defaultValue true
244
+ * @public
245
+ */
132
246
  showOrder?: boolean;
133
247
  constructor(props?: Partial<DataSourceBind>);
134
248
  }
@@ -161,13 +275,42 @@ declare class FillBind {
161
275
  fillList: MultistageFillingItem[];
162
276
  constructor(props?: Partial<FillBind>);
163
277
  }
278
+ /**
279
+ * FillPayloadBind 填充配置
280
+ * 填充的配置和需要携带的数据
281
+ * @public
282
+ * */
164
283
  export declare class FillPayloadBind extends FillBind {
284
+ /**
285
+ * 数据源过滤条件
286
+ * @defaultValue []
287
+ * @public
288
+ **/
165
289
  filters: Array<FieldFilterCondition | FieldFilterConditions>;
290
+ /**
291
+ * 数据源排序条件
292
+ * @defaultValue []
293
+ * @public
294
+ **/
166
295
  orders: DataSourceOrderItem[];
167
296
  constructor(props?: Partial<FillPayloadBind>);
168
297
  }
298
+ /**
299
+ * FillBackBind 回填需要的配置和参数
300
+ * @public
301
+ */
169
302
  export declare class FillBackBind extends FillBind {
303
+ /**
304
+ * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
305
+ * @defaultValue 'current'
306
+ * @public
307
+ * */
170
308
  mode: 'current' | 'subtable';
309
+ /**
310
+ * 多选
311
+ * @defaultValue false
312
+ * @public
313
+ */
171
314
  multiple: boolean;
172
315
  constructor(props?: Partial<FillBackBind>);
173
316
  }
@@ -191,9 +334,23 @@ export declare class RegularRules {
191
334
  errMessage: string;
192
335
  constructor(props?: Partial<RegularRules>);
193
336
  }
337
+ /**
338
+ * 选项设置-自定义选项
339
+ * @public
340
+ */
194
341
  export declare class OptionSetting {
195
342
  readonly id: string;
343
+ /**
344
+ * 显示值
345
+ * @defaultValue ''
346
+ * @public
347
+ */
196
348
  label: string;
349
+ /**
350
+ * 选项ID
351
+ * @defaultValue this.label
352
+ * @public
353
+ */
197
354
  value: string;
198
355
  constructor(props?: Partial<OptionSetting>);
199
356
  }
@@ -319,11 +476,40 @@ export declare enum PAGE_STATUS {
319
476
  EDITABLE = 2,
320
477
  PRINT = 5
321
478
  }
479
+ /**
480
+ * 操作按钮
481
+ * @public
482
+ */
322
483
  export declare class OperationItem {
484
+ /**
485
+ * 是否显示
486
+ * @defaultValue true
487
+ * @public
488
+ */
323
489
  isShow: boolean;
490
+ /**
491
+ * 优先访问流程表单
492
+ * @defaultValue false
493
+ * @public
494
+ */
324
495
  priorityProcess: boolean;
496
+ /**
497
+ * 表单ID
498
+ * @defaultValue ''
499
+ * @public
500
+ */
325
501
  formKey: string;
502
+ /**
503
+ * 显示文字
504
+ * @defaultValue ''
505
+ * @public
506
+ */
326
507
  content: string;
508
+ /**
509
+ * 打开方式
510
+ * @defaultValue 'modal'
511
+ * @public
512
+ */
327
513
  openType: 'modal' | 'window' | 'dialog' | 'tab';
328
514
  readonly type: string;
329
515
  constructor(props?: Partial<OperationItem>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.2.7-beta.1",
3
+ "version": "2.3.1-beta.18",
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.2.7-beta.1",
29
+ "@byteluck-fe/model-driven-shared": "2.3.1-beta.18",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "7dd52e97a6d1b1d25256673d74bc0c20bd8ef3b9"
33
+ "gitHead": "9fac0b8211e339ed54237f7d6642a642fbf4b45e"
34
34
  }