@byteluck-fe/model-driven-core 2.5.0-alpha.9 → 2.5.0-beta.4
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/api-doc-index.js +4 -4
- package/dist/esm/common/BaseControl/designer.js +96 -215
- package/dist/esm/common/BaseControl/index.js +7 -7
- package/dist/esm/common/BaseControl/property.js +13 -30
- package/dist/esm/common/BaseControl/runtime.js +20 -41
- package/dist/esm/common/ColumnControl/designer.js +5 -19
- package/dist/esm/common/ColumnControl/index.js +6 -6
- package/dist/esm/common/ColumnControl/property.js +47 -95
- package/dist/esm/common/ColumnControl/runtime.js +5 -19
- package/dist/esm/common/ControlArray.js +8 -8
- package/dist/esm/common/FormControl/designer.js +10 -25
- package/dist/esm/common/FormControl/index.js +6 -6
- package/dist/esm/common/FormControl/property.js +89 -152
- package/dist/esm/common/FormControl/runtime.js +5 -20
- package/dist/esm/common/LayoutControl/designer.js +30 -158
- package/dist/esm/common/LayoutControl/index.js +6 -6
- package/dist/esm/common/LayoutControl/property.js +3 -3
- package/dist/esm/common/LayoutControl/runtime.js +7 -22
- package/dist/esm/common/ListControl/designer.js +26 -151
- package/dist/esm/common/ListControl/index.js +6 -6
- package/dist/esm/common/ListControl/property.js +5 -19
- package/dist/esm/common/ListControl/runtime.js +7 -22
- package/dist/esm/common/SearchViewControl/designer.js +5 -19
- package/dist/esm/common/SearchViewControl/index.js +6 -6
- package/dist/esm/common/SearchViewControl/property.js +4 -18
- package/dist/esm/common/SearchViewControl/runtime.js +5 -19
- package/dist/esm/common/Validator.js +5 -5
- package/dist/esm/common/WrapControl/designer.js +5 -19
- package/dist/esm/common/WrapControl/index.js +6 -6
- package/dist/esm/common/WrapControl/property.js +3 -3
- package/dist/esm/common/WrapControl/runtime.js +5 -19
- package/dist/esm/common/controlHooksEmitter.js +1 -1
- package/dist/esm/common/index.js +12 -12
- package/dist/esm/common/initLinkOperationRules.js +6 -6
- package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
- package/dist/esm/framework/RegisterControls.js +15 -27
- package/dist/esm/framework/index.js +399 -613
- package/dist/esm/index.js +3 -3
- 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/common/Validator.d.ts +1 -1
- package/dist/types/common/controlHooksEmitter.d.ts +1 -1
- package/dist/types/framework/index.d.ts +239 -1
- package/dist/types/type.d.ts +23 -23
- package/package.json +3 -3
|
@@ -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
|
}
|
|
@@ -107,28 +115,81 @@ export declare class LeftVariable {
|
|
|
107
115
|
constructor(props?: Partial<LeftVariable>);
|
|
108
116
|
}
|
|
109
117
|
export declare class RightVariable {
|
|
110
|
-
type: 'form' | 'system' | 'custom';
|
|
118
|
+
type: 'form' | 'system' | 'custom' | 'gv';
|
|
111
119
|
value: string[];
|
|
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
|
}
|
|
@@ -214,6 +302,12 @@ export declare class DataSourceBind {
|
|
|
214
302
|
* @public
|
|
215
303
|
*/
|
|
216
304
|
displayBoList: DisplayBoListItem[];
|
|
305
|
+
/**
|
|
306
|
+
* 查询关键字参数映射
|
|
307
|
+
* @defaultValue ''
|
|
308
|
+
* @public
|
|
309
|
+
*/
|
|
310
|
+
keywordMapping?: string;
|
|
217
311
|
/**
|
|
218
312
|
* 绑定服务
|
|
219
313
|
* @defaultValue ''
|
|
@@ -232,6 +326,18 @@ export declare class DataSourceBind {
|
|
|
232
326
|
* @public
|
|
233
327
|
*/
|
|
234
328
|
filters?: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
329
|
+
/**
|
|
330
|
+
* 过滤条件-查看过滤
|
|
331
|
+
* @defaultValue []
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
viewFilters?: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
335
|
+
/**
|
|
336
|
+
* 是否开启查看过滤
|
|
337
|
+
* @defaultValue 0:未开启;1:开启
|
|
338
|
+
* @public
|
|
339
|
+
*/
|
|
340
|
+
isOpenViewFilters?: number;
|
|
235
341
|
/**
|
|
236
342
|
* 排序
|
|
237
343
|
* @defaultValue []
|
|
@@ -291,6 +397,13 @@ export declare class SuperDataSourceBind extends DataSourceBind {
|
|
|
291
397
|
attributes?: Partial<CustomAttributeItem>[];
|
|
292
398
|
});
|
|
293
399
|
}
|
|
400
|
+
export declare class OrganizationDataSourceBind extends DataSourceBind {
|
|
401
|
+
attributes: CustomAttributeItem[];
|
|
402
|
+
formCode: string;
|
|
403
|
+
constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
|
|
404
|
+
attributes?: Partial<CustomAttributeItem>[];
|
|
405
|
+
});
|
|
406
|
+
}
|
|
294
407
|
export declare class TreeDataSourceBind extends SuperDataSourceBind {
|
|
295
408
|
rootNode: RightVariable;
|
|
296
409
|
filterCode?: String;
|
|
@@ -316,6 +429,12 @@ export declare class FillPayloadBind extends FillBind {
|
|
|
316
429
|
* @public
|
|
317
430
|
**/
|
|
318
431
|
filters: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
432
|
+
/**
|
|
433
|
+
* 数据源过滤条件-查看
|
|
434
|
+
* @defaultValue []
|
|
435
|
+
* @public
|
|
436
|
+
**/
|
|
437
|
+
viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
319
438
|
/**
|
|
320
439
|
* 数据源排序条件
|
|
321
440
|
* @defaultValue []
|
|
@@ -357,9 +476,25 @@ export declare class Language {
|
|
|
357
476
|
ja: string;
|
|
358
477
|
constructor(props?: Partial<Language>);
|
|
359
478
|
}
|
|
479
|
+
/**
|
|
480
|
+
* 正则校验
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
360
483
|
export declare class RegularRules {
|
|
484
|
+
/**
|
|
485
|
+
* 内置模版
|
|
486
|
+
* @defaultValue ''
|
|
487
|
+
*/
|
|
361
488
|
stencilName: string;
|
|
489
|
+
/**
|
|
490
|
+
* 正则表达式
|
|
491
|
+
* @defaultValue ''
|
|
492
|
+
*/
|
|
362
493
|
expression: string;
|
|
494
|
+
/**
|
|
495
|
+
* 校验错误提示信息
|
|
496
|
+
* @defaultValue ''
|
|
497
|
+
*/
|
|
363
498
|
errMessage: string;
|
|
364
499
|
constructor(props?: Partial<RegularRules>);
|
|
365
500
|
}
|
|
@@ -390,45 +525,146 @@ export declare class ImageOptionSetting extends OptionSetting {
|
|
|
390
525
|
}
|
|
391
526
|
export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
|
|
392
527
|
export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
|
|
528
|
+
/**
|
|
529
|
+
* 对象类型数据绑定配置
|
|
530
|
+
* @public
|
|
531
|
+
*/
|
|
393
532
|
export declare class ObjectDataBind {
|
|
533
|
+
/**
|
|
534
|
+
* 绑定配置
|
|
535
|
+
*/
|
|
394
536
|
[key: string]: DataBind;
|
|
395
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* 金额控件数据绑定配置
|
|
540
|
+
* @public
|
|
541
|
+
*/
|
|
396
542
|
export declare class AmountDataBind extends ObjectDataBind {
|
|
543
|
+
/**
|
|
544
|
+
* 金额字段绑定配置
|
|
545
|
+
*/
|
|
397
546
|
amount: DataBind;
|
|
547
|
+
/**
|
|
548
|
+
* 币种字段绑定配置
|
|
549
|
+
*/
|
|
398
550
|
currency: DataBind;
|
|
399
551
|
constructor(props?: Partial<AmountDataBind>);
|
|
400
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
* 金额控件值
|
|
555
|
+
* @public
|
|
556
|
+
*/
|
|
401
557
|
export declare class AmountValue {
|
|
558
|
+
/**
|
|
559
|
+
* 金额值
|
|
560
|
+
* @defaultValue ''
|
|
561
|
+
*/
|
|
402
562
|
amount: number | '';
|
|
563
|
+
/**
|
|
564
|
+
* 货币值
|
|
565
|
+
* @defaultValue 'CNY'
|
|
566
|
+
*/
|
|
403
567
|
currency: AMOUNT_TYPE;
|
|
404
568
|
constructor(props?: Partial<AmountValue>);
|
|
405
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* 日期区间数据绑定项
|
|
572
|
+
* @public
|
|
573
|
+
*/
|
|
406
574
|
export declare class RangeDataBind extends ObjectDataBind {
|
|
575
|
+
/**
|
|
576
|
+
* 开始日期字段绑定项
|
|
577
|
+
*/
|
|
407
578
|
min: DataBind;
|
|
579
|
+
/**
|
|
580
|
+
* 结束日期字段绑定项
|
|
581
|
+
*/
|
|
408
582
|
max: DataBind;
|
|
409
583
|
constructor(props?: Partial<AmountDataBind>);
|
|
410
584
|
}
|
|
585
|
+
/**
|
|
586
|
+
* 日期区间值
|
|
587
|
+
* @public
|
|
588
|
+
*/
|
|
411
589
|
export declare class RangeDateValue {
|
|
590
|
+
/**
|
|
591
|
+
* 开始日期值
|
|
592
|
+
* @defaultValue ''
|
|
593
|
+
*/
|
|
412
594
|
min: string;
|
|
595
|
+
/**
|
|
596
|
+
* 结束日期值
|
|
597
|
+
* @defaultValue ''
|
|
598
|
+
*/
|
|
413
599
|
max: string;
|
|
414
600
|
constructor(props?: Partial<RangeDateValue>);
|
|
415
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* 地址值
|
|
604
|
+
* @public
|
|
605
|
+
*/
|
|
416
606
|
export declare class AddressValue {
|
|
607
|
+
/**
|
|
608
|
+
* 市编码
|
|
609
|
+
* @defaultValue ''
|
|
610
|
+
*/
|
|
417
611
|
city?: string;
|
|
612
|
+
/**
|
|
613
|
+
* 市显示文字
|
|
614
|
+
* @defaultValue ''
|
|
615
|
+
*/
|
|
418
616
|
cityDisplay?: string;
|
|
617
|
+
/**
|
|
618
|
+
* 区编码
|
|
619
|
+
* @defaultValue ''
|
|
620
|
+
*/
|
|
419
621
|
district?: string;
|
|
622
|
+
/**
|
|
623
|
+
* 区显示文字
|
|
624
|
+
* @defaultValue ''
|
|
625
|
+
*/
|
|
420
626
|
districtDisplay?: string;
|
|
627
|
+
/**
|
|
628
|
+
* 省编码
|
|
629
|
+
* @defaultValue ''
|
|
630
|
+
*/
|
|
421
631
|
province?: string;
|
|
632
|
+
/**
|
|
633
|
+
* 省显示文字
|
|
634
|
+
* @defaultValue ''
|
|
635
|
+
*/
|
|
422
636
|
provinceDisplay?: string;
|
|
423
637
|
constructor(props?: Partial<AddressValue>);
|
|
424
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* 计算公式数据绑定项
|
|
641
|
+
* @public
|
|
642
|
+
*/
|
|
425
643
|
export declare class CalcDataBind extends ObjectDataBind {
|
|
644
|
+
/**
|
|
645
|
+
* 计算结果字段绑定项
|
|
646
|
+
*/
|
|
426
647
|
result: DataBind;
|
|
648
|
+
/**
|
|
649
|
+
* 单位字段绑定项
|
|
650
|
+
*/
|
|
427
651
|
unit: DataBind;
|
|
428
652
|
constructor(props?: Partial<CalcDataBind>);
|
|
429
653
|
}
|
|
654
|
+
/**
|
|
655
|
+
* 计算公式值
|
|
656
|
+
* @public
|
|
657
|
+
*/
|
|
430
658
|
export declare class CalcValue {
|
|
659
|
+
/**
|
|
660
|
+
* 计算结果值
|
|
661
|
+
* @defaultValue 0
|
|
662
|
+
*/
|
|
431
663
|
result: number | 0;
|
|
664
|
+
/**
|
|
665
|
+
* 单位
|
|
666
|
+
* @defaultValue ''
|
|
667
|
+
*/
|
|
432
668
|
unit: string;
|
|
433
669
|
constructor(props?: Partial<CalcValue>);
|
|
434
670
|
}
|
|
@@ -493,6 +729,7 @@ export declare enum COMMON_SETTING_TYPE {
|
|
|
493
729
|
CONTAINS_SUB_NODE = "containsSubNode",
|
|
494
730
|
DEFAULT_COLLAPSE = "defaultCollapse",
|
|
495
731
|
CAN_VIEW_FORM = "canViewForm",
|
|
732
|
+
VIEW_FORM_MODEL_TYPE = "viewFormModelType",
|
|
496
733
|
SERVER_PAGINATION = "serverPagination",
|
|
497
734
|
IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
|
|
498
735
|
ENCRYPTED = "encrypted",
|
|
@@ -548,6 +785,7 @@ export declare class ViewOperationItem {
|
|
|
548
785
|
id: string;
|
|
549
786
|
title: string;
|
|
550
787
|
filters: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
788
|
+
viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
|
|
551
789
|
headers: ListBindHeaderItem[];
|
|
552
790
|
constructor(props: Partial<ViewOperationItem>);
|
|
553
791
|
}
|
package/dist/types/type.d.ts
CHANGED
|
@@ -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 type SchemaUpgradeFunction = (schemaJSON: any, newVersion: string, oldVersion: string, payload?: any) => any;
|
|
5
|
+
export declare 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 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';
|
|
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';
|
|
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 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> = {
|
|
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> = {
|
|
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.5.0-
|
|
3
|
+
"version": "2.5.0-beta.4",
|
|
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.5.0-
|
|
29
|
+
"@byteluck-fe/model-driven-shared": "2.5.0-beta.1",
|
|
30
30
|
"async-validator": "3.5.1",
|
|
31
31
|
"tslib": "^2.1.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "9eab5e07d7c76a24510fe03a0fd768aecab71635"
|
|
34
34
|
}
|