@byteluck-fe/model-driven-core 2.6.0-alpha.8 → 2.7.0-alpha.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.
@@ -23,6 +23,12 @@ export declare class DataBind {
23
23
  * @public
24
24
  */
25
25
  fieldType: string;
26
+ /**
27
+ * 表别名
28
+ * @defaultValue undefined
29
+ * @public
30
+ */
31
+ aliasCode?: string;
26
32
  constructor(props?: Partial<DataBind>);
27
33
  }
28
34
  export declare class AutoWidth {
@@ -56,7 +62,15 @@ export declare class FormSelectBind extends FormBind {
56
62
  primaryControlId: string;
57
63
  constructor(props?: Partial<FormSelectBind>);
58
64
  }
65
+ /**
66
+ * 列表绑定字段项
67
+ * @public
68
+ */
59
69
  declare class ListBindHeaderItem {
70
+ /**
71
+ * 字段
72
+ * @defaultValue ''
73
+ */
60
74
  fieldCode: string;
61
75
  constructor(props?: Partial<ListBindHeaderItem>);
62
76
  }
@@ -107,31 +121,93 @@ export declare class LeftVariable {
107
121
  constructor(props?: Partial<LeftVariable>);
108
122
  }
109
123
  export declare class RightVariable {
110
- type: 'form' | 'system' | 'custom';
124
+ type: 'form' | 'system' | 'custom' | 'gv';
111
125
  value: string[];
112
126
  displayBos: Record<string, unknown>[];
113
127
  constructor(props?: Partial<RightVariable>);
114
128
  }
129
+ /**
130
+ * 连接符条件
131
+ * @public
132
+ */
115
133
  export declare class FieldFilterConditions {
134
+ /**
135
+ * 编号
136
+ * @defaultValue ''
137
+ */
116
138
  id: string;
139
+ /**
140
+ * 规则编号
141
+ * @defaultValue Timestamp
142
+ */
117
143
  ruleId: number;
144
+ /**
145
+ * 类型:连接符条件
146
+ * @defaultValue 'conditions'
147
+ */
118
148
  type: string;
149
+ /**
150
+ * 深度
151
+ * @defaultValue 0
152
+ */
119
153
  level: number;
154
+ /**
155
+ * 连接符值
156
+ * @defaultValue 'and'
157
+ */
120
158
  value: 'and' | 'or';
159
+ /**
160
+ * 包含子项
161
+ * @defaultValue []
162
+ */
121
163
  children: Array<FieldFilterCondition | FieldFilterConditions>;
122
164
  constructor(props?: Partial<FieldFilterConditions>);
123
165
  }
166
+ /**
167
+ * 字段过滤条件
168
+ * @public
169
+ */
124
170
  export declare class FieldFilterCondition {
171
+ /**
172
+ * 唯一编号
173
+ * @defaultValue ''
174
+ */
125
175
  id: string;
176
+ /**
177
+ * 规则编号
178
+ * @defaultValue Timestamp
179
+ */
126
180
  ruleId: number;
181
+ /**
182
+ * 类型
183
+ * @defaultValue 'condition'
184
+ */
127
185
  type: string;
186
+ /**
187
+ * 符号
188
+ */
128
189
  symbol: string;
129
190
  checked: boolean;
130
191
  describe: string;
192
+ /**
193
+ * 左值
194
+ */
131
195
  leftVariableBo: LeftVariable;
196
+ /**
197
+ * 右值
198
+ */
132
199
  rightVariableBo: RightVariable;
133
200
  constructor(props?: Partial<FieldFilterCondition>);
134
201
  }
202
+ export declare class JoinRelation {
203
+ aliasCode: string;
204
+ datasourceBind: DataSourceBind;
205
+ relationFields: {
206
+ main_field_code: string;
207
+ join_field_code: string;
208
+ }[];
209
+ constructor(props?: Partial<JoinRelation>);
210
+ }
135
211
  /**
136
212
  * 数据填充项
137
213
  * @public
@@ -163,14 +239,41 @@ export declare class MultistageFillingItem {
163
239
  propName: string;
164
240
  constructor(props: Partial<MultistageFillingItem>);
165
241
  }
242
+ /**
243
+ * 显示项
244
+ * @public
245
+ */
166
246
  export declare class DisplayBoListItem {
247
+ /**
248
+ * 显示项类型:字段 | 符号
249
+ * @defaultValue 'FIELD'
250
+ * @public
251
+ */
167
252
  type: 'FIELD' | 'MOSAICS';
253
+ /**
254
+ * 值
255
+ */
168
256
  value: string;
257
+ /**
258
+ * 字段数据类型
259
+ */
169
260
  fieldType?: FieldTypes;
170
261
  constructor(props?: Partial<DisplayBoListItem>);
171
262
  }
263
+ /**
264
+ * 数据源排序项
265
+ * @public
266
+ */
172
267
  export declare class DataSourceOrderItem {
268
+ /**
269
+ * 列名
270
+ * @defaultValue ''
271
+ */
173
272
  columnName: string;
273
+ /**
274
+ * 倒序
275
+ * @defaultValue false
276
+ */
174
277
  desc: boolean;
175
278
  constructor(props: Partial<DataSourceOrderItem>);
176
279
  }
@@ -214,6 +317,12 @@ export declare class DataSourceBind {
214
317
  * @public
215
318
  */
216
319
  displayBoList: DisplayBoListItem[];
320
+ /**
321
+ * 查询关键字参数映射
322
+ * @defaultValue ''
323
+ * @public
324
+ */
325
+ keywordMapping?: string;
217
326
  /**
218
327
  * 绑定服务
219
328
  * @defaultValue ''
@@ -382,9 +491,25 @@ export declare class Language {
382
491
  ja: string;
383
492
  constructor(props?: Partial<Language>);
384
493
  }
494
+ /**
495
+ * 正则校验
496
+ * @public
497
+ */
385
498
  export declare class RegularRules {
499
+ /**
500
+ * 内置模版
501
+ * @defaultValue ''
502
+ */
386
503
  stencilName: string;
504
+ /**
505
+ * 正则表达式
506
+ * @defaultValue ''
507
+ */
387
508
  expression: string;
509
+ /**
510
+ * 校验错误提示信息
511
+ * @defaultValue ''
512
+ */
388
513
  errMessage: string;
389
514
  constructor(props?: Partial<RegularRules>);
390
515
  }
@@ -415,45 +540,146 @@ export declare class ImageOptionSetting extends OptionSetting {
415
540
  }
416
541
  export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
417
542
  export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
543
+ /**
544
+ * 对象类型数据绑定配置
545
+ * @public
546
+ */
418
547
  export declare class ObjectDataBind {
548
+ /**
549
+ * 绑定配置
550
+ */
419
551
  [key: string]: DataBind;
420
552
  }
553
+ /**
554
+ * 金额控件数据绑定配置
555
+ * @public
556
+ */
421
557
  export declare class AmountDataBind extends ObjectDataBind {
558
+ /**
559
+ * 金额字段绑定配置
560
+ */
422
561
  amount: DataBind;
562
+ /**
563
+ * 币种字段绑定配置
564
+ */
423
565
  currency: DataBind;
424
566
  constructor(props?: Partial<AmountDataBind>);
425
567
  }
568
+ /**
569
+ * 金额控件值
570
+ * @public
571
+ */
426
572
  export declare class AmountValue {
573
+ /**
574
+ * 金额值
575
+ * @defaultValue ''
576
+ */
427
577
  amount: number | '';
578
+ /**
579
+ * 货币值
580
+ * @defaultValue 'CNY'
581
+ */
428
582
  currency: AMOUNT_TYPE;
429
583
  constructor(props?: Partial<AmountValue>);
430
584
  }
585
+ /**
586
+ * 日期区间数据绑定项
587
+ * @public
588
+ */
431
589
  export declare class RangeDataBind extends ObjectDataBind {
590
+ /**
591
+ * 开始日期字段绑定项
592
+ */
432
593
  min: DataBind;
594
+ /**
595
+ * 结束日期字段绑定项
596
+ */
433
597
  max: DataBind;
434
598
  constructor(props?: Partial<AmountDataBind>);
435
599
  }
600
+ /**
601
+ * 日期区间值
602
+ * @public
603
+ */
436
604
  export declare class RangeDateValue {
605
+ /**
606
+ * 开始日期值
607
+ * @defaultValue ''
608
+ */
437
609
  min: string;
610
+ /**
611
+ * 结束日期值
612
+ * @defaultValue ''
613
+ */
438
614
  max: string;
439
615
  constructor(props?: Partial<RangeDateValue>);
440
616
  }
617
+ /**
618
+ * 地址值
619
+ * @public
620
+ */
441
621
  export declare class AddressValue {
622
+ /**
623
+ * 市编码
624
+ * @defaultValue ''
625
+ */
442
626
  city?: string;
627
+ /**
628
+ * 市显示文字
629
+ * @defaultValue ''
630
+ */
443
631
  cityDisplay?: string;
632
+ /**
633
+ * 区编码
634
+ * @defaultValue ''
635
+ */
444
636
  district?: string;
637
+ /**
638
+ * 区显示文字
639
+ * @defaultValue ''
640
+ */
445
641
  districtDisplay?: string;
642
+ /**
643
+ * 省编码
644
+ * @defaultValue ''
645
+ */
446
646
  province?: string;
647
+ /**
648
+ * 省显示文字
649
+ * @defaultValue ''
650
+ */
447
651
  provinceDisplay?: string;
448
652
  constructor(props?: Partial<AddressValue>);
449
653
  }
654
+ /**
655
+ * 计算公式数据绑定项
656
+ * @public
657
+ */
450
658
  export declare class CalcDataBind extends ObjectDataBind {
659
+ /**
660
+ * 计算结果字段绑定项
661
+ */
451
662
  result: DataBind;
663
+ /**
664
+ * 单位字段绑定项
665
+ */
452
666
  unit: DataBind;
453
667
  constructor(props?: Partial<CalcDataBind>);
454
668
  }
669
+ /**
670
+ * 计算公式值
671
+ * @public
672
+ */
455
673
  export declare class CalcValue {
674
+ /**
675
+ * 计算结果值
676
+ * @defaultValue 0
677
+ */
456
678
  result: number | 0;
679
+ /**
680
+ * 单位
681
+ * @defaultValue ''
682
+ */
457
683
  unit: string;
458
684
  constructor(props?: Partial<CalcValue>);
459
685
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/model-driven-core",
3
- "version": "2.6.0-alpha.8",
3
+ "version": "2.7.0-alpha.0",
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.6.0-alpha.8",
29
+ "@byteluck-fe/model-driven-shared": "2.7.0-alpha.0",
30
30
  "async-validator": "3.5.1",
31
31
  "tslib": "^2.1.0"
32
32
  },
33
- "gitHead": "c5d5b083b6ddcef1b76656ed36bb92632d718947"
33
+ "gitHead": "1f71ece061d5febd6e6d9809b2ee8d35aa74c41f"
34
34
  }