@byteluck-fe/model-driven-core 2.3.1 → 2.4.1-beta.0
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 +57 -57
- package/dist/esm/common/BaseControl/property.js +55 -55
- package/dist/esm/common/BaseControl/runtime.js +17 -17
- package/dist/esm/common/ColumnControl/designer.js +25 -25
- package/dist/esm/common/ColumnControl/property.js +44 -44
- package/dist/esm/common/ColumnControl/runtime.js +25 -25
- package/dist/esm/common/ControlArray.js +12 -12
- package/dist/esm/common/FormControl/designer.js +27 -27
- package/dist/esm/common/FormControl/property.js +57 -55
- package/dist/esm/common/FormControl/runtime.js +26 -26
- package/dist/esm/common/LayoutControl/designer.js +61 -61
- package/dist/esm/common/LayoutControl/property.js +22 -22
- package/dist/esm/common/LayoutControl/runtime.js +27 -27
- package/dist/esm/common/ListControl/designer.js +58 -58
- package/dist/esm/common/ListControl/property.js +25 -25
- package/dist/esm/common/ListControl/runtime.js +30 -30
- package/dist/esm/common/SearchViewControl/designer.js +25 -25
- package/dist/esm/common/SearchViewControl/property.js +24 -24
- package/dist/esm/common/SearchViewControl/runtime.js +25 -25
- package/dist/esm/common/WrapControl/designer.js +25 -25
- package/dist/esm/common/WrapControl/property.js +22 -22
- package/dist/esm/common/WrapControl/runtime.js +25 -25
- package/dist/esm/framework/RegisterControls.js +12 -12
- package/dist/esm/framework/index.js +372 -223
- package/dist/index.umd.js +1 -1
- package/dist/types/common/BaseControl/property.d.ts +14 -0
- package/dist/types/common/FormControl/property.d.ts +4 -0
- package/dist/types/framework/index.d.ts +205 -0
- package/package.json +2 -2
|
@@ -56,7 +56,15 @@ export declare class FormSelectBind extends FormBind {
|
|
|
56
56
|
primaryControlId: string;
|
|
57
57
|
constructor(props?: Partial<FormSelectBind>);
|
|
58
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* 列表绑定字段项
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
59
63
|
declare class ListBindHeaderItem {
|
|
64
|
+
/**
|
|
65
|
+
* 字段
|
|
66
|
+
* @defaultValue ''
|
|
67
|
+
*/
|
|
60
68
|
fieldCode: string;
|
|
61
69
|
constructor(props?: Partial<ListBindHeaderItem>);
|
|
62
70
|
}
|
|
@@ -112,23 +120,76 @@ export declare class RightVariable {
|
|
|
112
120
|
displayBos: Record<string, unknown>[];
|
|
113
121
|
constructor(props?: Partial<RightVariable>);
|
|
114
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* 连接符条件
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
115
127
|
export declare class FieldFilterConditions {
|
|
128
|
+
/**
|
|
129
|
+
* 编号
|
|
130
|
+
* @defaultValue ''
|
|
131
|
+
*/
|
|
116
132
|
id: string;
|
|
133
|
+
/**
|
|
134
|
+
* 规则编号
|
|
135
|
+
* @defaultValue Timestamp
|
|
136
|
+
*/
|
|
117
137
|
ruleId: number;
|
|
138
|
+
/**
|
|
139
|
+
* 类型:连接符条件
|
|
140
|
+
* @defaultValue 'conditions'
|
|
141
|
+
*/
|
|
118
142
|
type: string;
|
|
143
|
+
/**
|
|
144
|
+
* 深度
|
|
145
|
+
* @defaultValue 0
|
|
146
|
+
*/
|
|
119
147
|
level: number;
|
|
148
|
+
/**
|
|
149
|
+
* 连接符值
|
|
150
|
+
* @defaultValue 'and'
|
|
151
|
+
*/
|
|
120
152
|
value: 'and' | 'or';
|
|
153
|
+
/**
|
|
154
|
+
* 包含子项
|
|
155
|
+
* @defaultValue []
|
|
156
|
+
*/
|
|
121
157
|
children: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
122
158
|
constructor(props?: Partial<FieldFilterConditions>);
|
|
123
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* 字段过滤条件
|
|
162
|
+
* @public
|
|
163
|
+
*/
|
|
124
164
|
export declare class FieldFilterCondition {
|
|
165
|
+
/**
|
|
166
|
+
* 唯一编号
|
|
167
|
+
* @defaultValue ''
|
|
168
|
+
*/
|
|
125
169
|
id: string;
|
|
170
|
+
/**
|
|
171
|
+
* 规则编号
|
|
172
|
+
* @defaultValue Timestamp
|
|
173
|
+
*/
|
|
126
174
|
ruleId: number;
|
|
175
|
+
/**
|
|
176
|
+
* 类型
|
|
177
|
+
* @defaultValue 'condition'
|
|
178
|
+
*/
|
|
127
179
|
type: string;
|
|
180
|
+
/**
|
|
181
|
+
* 符号
|
|
182
|
+
*/
|
|
128
183
|
symbol: string;
|
|
129
184
|
checked: boolean;
|
|
130
185
|
describe: string;
|
|
186
|
+
/**
|
|
187
|
+
* 左值
|
|
188
|
+
*/
|
|
131
189
|
leftVariableBo: LeftVariable;
|
|
190
|
+
/**
|
|
191
|
+
* 右值
|
|
192
|
+
*/
|
|
132
193
|
rightVariableBo: RightVariable;
|
|
133
194
|
constructor(props?: Partial<FieldFilterCondition>);
|
|
134
195
|
}
|
|
@@ -163,14 +224,41 @@ export declare class MultistageFillingItem {
|
|
|
163
224
|
propName: string;
|
|
164
225
|
constructor(props: Partial<MultistageFillingItem>);
|
|
165
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* 显示项
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
166
231
|
export declare class DisplayBoListItem {
|
|
232
|
+
/**
|
|
233
|
+
* 显示项类型:字段 | 符号
|
|
234
|
+
* @defaultValue 'FIELD'
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
167
237
|
type: 'FIELD' | 'MOSAICS';
|
|
238
|
+
/**
|
|
239
|
+
* 值
|
|
240
|
+
*/
|
|
168
241
|
value: string;
|
|
242
|
+
/**
|
|
243
|
+
* 字段数据类型
|
|
244
|
+
*/
|
|
169
245
|
fieldType?: FieldTypes;
|
|
170
246
|
constructor(props?: Partial<DisplayBoListItem>);
|
|
171
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* 数据源排序项
|
|
250
|
+
* @public
|
|
251
|
+
*/
|
|
172
252
|
export declare class DataSourceOrderItem {
|
|
253
|
+
/**
|
|
254
|
+
* 列名
|
|
255
|
+
* @defaultValue ''
|
|
256
|
+
*/
|
|
173
257
|
columnName: string;
|
|
258
|
+
/**
|
|
259
|
+
* 倒序
|
|
260
|
+
* @defaultValue false
|
|
261
|
+
*/
|
|
174
262
|
desc: boolean;
|
|
175
263
|
constructor(props: Partial<DataSourceOrderItem>);
|
|
176
264
|
}
|
|
@@ -328,9 +416,25 @@ export declare class Language {
|
|
|
328
416
|
ja: string;
|
|
329
417
|
constructor(props?: Partial<Language>);
|
|
330
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* 正则校验
|
|
421
|
+
* @public
|
|
422
|
+
*/
|
|
331
423
|
export declare class RegularRules {
|
|
424
|
+
/**
|
|
425
|
+
* 内置模版
|
|
426
|
+
* @defaultValue ''
|
|
427
|
+
*/
|
|
332
428
|
stencilName: string;
|
|
429
|
+
/**
|
|
430
|
+
* 正则表达式
|
|
431
|
+
* @defaultValue ''
|
|
432
|
+
*/
|
|
333
433
|
expression: string;
|
|
434
|
+
/**
|
|
435
|
+
* 校验错误提示信息
|
|
436
|
+
* @defaultValue ''
|
|
437
|
+
*/
|
|
334
438
|
errMessage: string;
|
|
335
439
|
constructor(props?: Partial<RegularRules>);
|
|
336
440
|
}
|
|
@@ -361,45 +465,146 @@ export declare class ImageOptionSetting extends OptionSetting {
|
|
|
361
465
|
}
|
|
362
466
|
export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
|
|
363
467
|
export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
|
|
468
|
+
/**
|
|
469
|
+
* 对象类型数据绑定配置
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
364
472
|
export declare class ObjectDataBind {
|
|
473
|
+
/**
|
|
474
|
+
* 绑定配置
|
|
475
|
+
*/
|
|
365
476
|
[key: string]: DataBind;
|
|
366
477
|
}
|
|
478
|
+
/**
|
|
479
|
+
* 金额控件数据绑定配置
|
|
480
|
+
* @public
|
|
481
|
+
*/
|
|
367
482
|
export declare class AmountDataBind extends ObjectDataBind {
|
|
483
|
+
/**
|
|
484
|
+
* 金额字段绑定配置
|
|
485
|
+
*/
|
|
368
486
|
amount: DataBind;
|
|
487
|
+
/**
|
|
488
|
+
* 币种字段绑定配置
|
|
489
|
+
*/
|
|
369
490
|
currency: DataBind;
|
|
370
491
|
constructor(props?: Partial<AmountDataBind>);
|
|
371
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* 金额控件值
|
|
495
|
+
* @public
|
|
496
|
+
*/
|
|
372
497
|
export declare class AmountValue {
|
|
498
|
+
/**
|
|
499
|
+
* 金额值
|
|
500
|
+
* @defaultValue ''
|
|
501
|
+
*/
|
|
373
502
|
amount: number | '';
|
|
503
|
+
/**
|
|
504
|
+
* 货币值
|
|
505
|
+
* @defaultValue 'CNY'
|
|
506
|
+
*/
|
|
374
507
|
currency: AMOUNT_TYPE;
|
|
375
508
|
constructor(props?: Partial<AmountValue>);
|
|
376
509
|
}
|
|
510
|
+
/**
|
|
511
|
+
* 日期区间数据绑定项
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
377
514
|
export declare class RangeDataBind extends ObjectDataBind {
|
|
515
|
+
/**
|
|
516
|
+
* 开始日期字段绑定项
|
|
517
|
+
*/
|
|
378
518
|
min: DataBind;
|
|
519
|
+
/**
|
|
520
|
+
* 结束日期字段绑定项
|
|
521
|
+
*/
|
|
379
522
|
max: DataBind;
|
|
380
523
|
constructor(props?: Partial<AmountDataBind>);
|
|
381
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* 日期区间值
|
|
527
|
+
* @public
|
|
528
|
+
*/
|
|
382
529
|
export declare class RangeDateValue {
|
|
530
|
+
/**
|
|
531
|
+
* 开始日期值
|
|
532
|
+
* @defaultValue ''
|
|
533
|
+
*/
|
|
383
534
|
min: string;
|
|
535
|
+
/**
|
|
536
|
+
* 结束日期值
|
|
537
|
+
* @defaultValue ''
|
|
538
|
+
*/
|
|
384
539
|
max: string;
|
|
385
540
|
constructor(props?: Partial<RangeDateValue>);
|
|
386
541
|
}
|
|
542
|
+
/**
|
|
543
|
+
* 地址值
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
387
546
|
export declare class AddressValue {
|
|
547
|
+
/**
|
|
548
|
+
* 市编码
|
|
549
|
+
* @defaultValue ''
|
|
550
|
+
*/
|
|
388
551
|
city?: string;
|
|
552
|
+
/**
|
|
553
|
+
* 市显示文字
|
|
554
|
+
* @defaultValue ''
|
|
555
|
+
*/
|
|
389
556
|
cityDisplay?: string;
|
|
557
|
+
/**
|
|
558
|
+
* 区编码
|
|
559
|
+
* @defaultValue ''
|
|
560
|
+
*/
|
|
390
561
|
district?: string;
|
|
562
|
+
/**
|
|
563
|
+
* 区显示文字
|
|
564
|
+
* @defaultValue ''
|
|
565
|
+
*/
|
|
391
566
|
districtDisplay?: string;
|
|
567
|
+
/**
|
|
568
|
+
* 省编码
|
|
569
|
+
* @defaultValue ''
|
|
570
|
+
*/
|
|
392
571
|
province?: string;
|
|
572
|
+
/**
|
|
573
|
+
* 省显示文字
|
|
574
|
+
* @defaultValue ''
|
|
575
|
+
*/
|
|
393
576
|
provinceDisplay?: string;
|
|
394
577
|
constructor(props?: Partial<AddressValue>);
|
|
395
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* 计算公式数据绑定项
|
|
581
|
+
* @public
|
|
582
|
+
*/
|
|
396
583
|
export declare class CalcDataBind extends ObjectDataBind {
|
|
584
|
+
/**
|
|
585
|
+
* 计算结果字段绑定项
|
|
586
|
+
*/
|
|
397
587
|
result: DataBind;
|
|
588
|
+
/**
|
|
589
|
+
* 单位字段绑定项
|
|
590
|
+
*/
|
|
398
591
|
unit: DataBind;
|
|
399
592
|
constructor(props?: Partial<CalcDataBind>);
|
|
400
593
|
}
|
|
594
|
+
/**
|
|
595
|
+
* 计算公式值
|
|
596
|
+
* @public
|
|
597
|
+
*/
|
|
401
598
|
export declare class CalcValue {
|
|
599
|
+
/**
|
|
600
|
+
* 计算结果值
|
|
601
|
+
* @defaultValue 0
|
|
602
|
+
*/
|
|
402
603
|
result: number | 0;
|
|
604
|
+
/**
|
|
605
|
+
* 单位
|
|
606
|
+
* @defaultValue ''
|
|
607
|
+
*/
|
|
403
608
|
unit: string;
|
|
404
609
|
constructor(props?: Partial<CalcValue>);
|
|
405
610
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1-beta.0",
|
|
4
4
|
"description": "model engine core",
|
|
5
5
|
"author": "郝晨光 <2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2bf75338fe83c9cdc46a15d2ab7dcc910064cebf"
|
|
34
34
|
}
|