@byteluck-fe/model-driven-core 6.1.0-1-beta.4 → 6.2.0-1-beta.9
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/README.md +69 -69
- package/dist/esm/common/BaseControl/designer.js +12 -13
- package/dist/esm/common/BaseControl/property.js +15 -15
- package/dist/esm/common/BaseControl/runtime.js +1 -2
- package/dist/esm/common/ColumnControl/property.js +28 -28
- package/dist/esm/common/FormControl/property.js +62 -44
- package/dist/esm/framework/index.js +383 -380
- package/dist/index.umd.js +1 -1
- package/dist/types/api-doc-index.d.ts +4 -4
- package/dist/types/common/BaseControl/designer.d.ts +71 -71
- package/dist/types/common/BaseControl/index.d.ts +13 -13
- package/dist/types/common/BaseControl/property.d.ts +44 -44
- package/dist/types/common/BaseControl/runtime.d.ts +23 -23
- package/dist/types/common/BaseControl/types.d.ts +35 -35
- package/dist/types/common/ColumnControl/designer.d.ts +20 -20
- package/dist/types/common/ColumnControl/index.d.ts +12 -12
- package/dist/types/common/ColumnControl/property.d.ts +74 -74
- package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
- package/dist/types/common/ControlArray.d.ts +9 -9
- package/dist/types/common/FormControl/designer.d.ts +13 -13
- package/dist/types/common/FormControl/index.d.ts +12 -12
- package/dist/types/common/FormControl/property.d.ts +118 -100
- package/dist/types/common/FormControl/runtime.d.ts +11 -11
- package/dist/types/common/LayoutControl/designer.d.ts +21 -21
- package/dist/types/common/LayoutControl/index.d.ts +12 -12
- package/dist/types/common/LayoutControl/property.d.ts +6 -6
- package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
- package/dist/types/common/ListControl/designer.d.ts +16 -16
- package/dist/types/common/ListControl/index.d.ts +12 -12
- package/dist/types/common/ListControl/property.d.ts +18 -18
- package/dist/types/common/ListControl/runtime.d.ts +12 -12
- package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
- package/dist/types/common/SearchViewControl/index.d.ts +12 -12
- package/dist/types/common/SearchViewControl/property.d.ts +8 -8
- package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
- package/dist/types/common/Validator.d.ts +15 -15
- package/dist/types/common/WrapControl/designer.d.ts +11 -11
- package/dist/types/common/WrapControl/index.d.ts +12 -12
- package/dist/types/common/WrapControl/property.d.ts +6 -6
- package/dist/types/common/WrapControl/runtime.d.ts +11 -11
- package/dist/types/common/controlHooksEmitter.d.ts +4 -4
- package/dist/types/common/index.d.ts +12 -12
- package/dist/types/common/initLinkOperationRules.d.ts +6 -6
- package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
- package/dist/types/framework/RegisterControls.d.ts +37 -37
- package/dist/types/framework/index.d.ts +948 -945
- package/dist/types/framework/isDataBind.d.ts +2 -2
- package/dist/types/index.d.ts +4 -4
- package/dist/types/type.d.ts +91 -91
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { DesignerControl } from '../BaseControl';
|
|
2
|
-
import BaseControlProperty from './property';
|
|
3
|
-
import { FormControlsKeys, FormControlSchema } from '../../type';
|
|
4
|
-
import { CustomAttribute } from '../../framework';
|
|
5
|
-
declare class FormControl extends DesignerControl {
|
|
6
|
-
static readonly controlEventKeys: string[];
|
|
7
|
-
static controlCustomAttributes?: CustomAttribute[];
|
|
8
|
-
readonly controlType = "form";
|
|
9
|
-
readonly props: BaseControlProperty;
|
|
10
|
-
constructor(props?: Partial<FormControlSchema<FormControlsKeys>>);
|
|
11
|
-
}
|
|
12
|
-
export default FormControl;
|
|
13
|
-
export { FormControl as DesignerFormControl };
|
|
1
|
+
import { DesignerControl } from '../BaseControl';
|
|
2
|
+
import BaseControlProperty from './property';
|
|
3
|
+
import { FormControlsKeys, FormControlSchema } from '../../type';
|
|
4
|
+
import { CustomAttribute } from '../../framework';
|
|
5
|
+
declare class FormControl extends DesignerControl {
|
|
6
|
+
static readonly controlEventKeys: string[];
|
|
7
|
+
static controlCustomAttributes?: CustomAttribute[];
|
|
8
|
+
readonly controlType = "form";
|
|
9
|
+
readonly props: BaseControlProperty;
|
|
10
|
+
constructor(props?: Partial<FormControlSchema<FormControlsKeys>>);
|
|
11
|
+
}
|
|
12
|
+
export default FormControl;
|
|
13
|
+
export { FormControl as DesignerFormControl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Designer from './designer';
|
|
2
|
-
import Runtime from './runtime';
|
|
3
|
-
import Property from './property';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Designer: typeof Designer;
|
|
6
|
-
Runtime: typeof Runtime;
|
|
7
|
-
Property: typeof Property;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export * from './designer';
|
|
11
|
-
export * from './runtime';
|
|
12
|
-
export * from './property';
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -1,100 +1,118 @@
|
|
|
1
|
-
import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
|
|
2
|
-
import { RuleItem } from '../Validator';
|
|
3
|
-
import { DataBind, DataSourceBind, ObjectDataBind, OptionSetting } from '../../framework';
|
|
4
|
-
declare class BaseControlPropertyRules extends PropertyRules {
|
|
5
|
-
dataBind: RuleItem;
|
|
6
|
-
caption: RuleItem;
|
|
7
|
-
isHideCaption: RuleItem;
|
|
8
|
-
labelPosition: RuleItem;
|
|
9
|
-
defaultState: RuleItem;
|
|
10
|
-
required: RuleItem;
|
|
11
|
-
captionTip: RuleItem;
|
|
12
|
-
constructor(props: BaseControlProperty);
|
|
13
|
-
}
|
|
14
|
-
declare class BaseControlPropertyRuntimeRules extends PropertyRuntimeRules {
|
|
15
|
-
constructor(props: BaseControlProperty);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 表单控件公共属性
|
|
19
|
-
* @public
|
|
20
|
-
*/
|
|
21
|
-
declare class BaseControlProperty extends Property {
|
|
22
|
-
static readonly Rules: typeof BaseControlPropertyRules;
|
|
23
|
-
static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
|
|
24
|
-
/**
|
|
25
|
-
* 标题
|
|
26
|
-
* @defaultValue ''
|
|
27
|
-
* @public
|
|
28
|
-
*/
|
|
29
|
-
caption: string;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @defaultValue
|
|
39
|
-
* @public
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @defaultValue
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @defaultValue
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
*
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
*
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @defaultValue ''
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
import { Property, PropertyRules, PropertyRuntimeRules } from '../BaseControl';
|
|
2
|
+
import { RuleItem } from '../Validator';
|
|
3
|
+
import { DataBind, DataSourceBind, ObjectDataBind, OptionSetting } from '../../framework';
|
|
4
|
+
declare class BaseControlPropertyRules extends PropertyRules {
|
|
5
|
+
dataBind: RuleItem;
|
|
6
|
+
caption: RuleItem;
|
|
7
|
+
isHideCaption: RuleItem;
|
|
8
|
+
labelPosition: RuleItem;
|
|
9
|
+
defaultState: RuleItem;
|
|
10
|
+
required: RuleItem;
|
|
11
|
+
captionTip: RuleItem;
|
|
12
|
+
constructor(props: BaseControlProperty);
|
|
13
|
+
}
|
|
14
|
+
declare class BaseControlPropertyRuntimeRules extends PropertyRuntimeRules {
|
|
15
|
+
constructor(props: BaseControlProperty);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 表单控件公共属性
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
declare class BaseControlProperty extends Property {
|
|
22
|
+
static readonly Rules: typeof BaseControlPropertyRules;
|
|
23
|
+
static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
|
|
24
|
+
/**
|
|
25
|
+
* 标题
|
|
26
|
+
* @defaultValue ''
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
caption: string;
|
|
30
|
+
/**
|
|
31
|
+
* 标题大小
|
|
32
|
+
* @defaultValue ''
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
captionSize: string;
|
|
36
|
+
/**
|
|
37
|
+
* 标题颜色
|
|
38
|
+
* @defaultValue ''
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
captionColor: string;
|
|
42
|
+
/**
|
|
43
|
+
* 标题斜体
|
|
44
|
+
* @defaultValue false
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
isCaptionItalic: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 隐藏标题
|
|
50
|
+
* @defaultValue false
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
isHideCaption: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 显示气泡提示
|
|
56
|
+
* @defaultValue false
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
isShowCaptionTip: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 气泡提示语
|
|
62
|
+
* @defaultValue ''
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
captionTip: string;
|
|
66
|
+
/**
|
|
67
|
+
* 标题布局
|
|
68
|
+
* @defaultValue ''
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
labelPosition: 'top' | 'left';
|
|
72
|
+
/**
|
|
73
|
+
* 绑定数据项
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
dataBind: DataBind | ObjectDataBind;
|
|
77
|
+
/**
|
|
78
|
+
* 默认值
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
defaultValue: string | number | string[] | number[] | unknown;
|
|
82
|
+
/**
|
|
83
|
+
* 提示文字
|
|
84
|
+
* @defaultValue ''
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
placeholder: string;
|
|
88
|
+
/**
|
|
89
|
+
* 默认状态
|
|
90
|
+
* @defaultValue 'default'
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
defaultState: 'default' | 'readonly';
|
|
94
|
+
/**
|
|
95
|
+
* 必填
|
|
96
|
+
* @defaultValue false
|
|
97
|
+
* @public
|
|
98
|
+
*/
|
|
99
|
+
required: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* 必填提示文案
|
|
102
|
+
* @defaultValue ''
|
|
103
|
+
*/
|
|
104
|
+
requiredMessage: string;
|
|
105
|
+
constructor(props?: Partial<BaseControlProperty>);
|
|
106
|
+
}
|
|
107
|
+
declare class OptionAndDataSourcePropertyRules extends BaseControlPropertyRules {
|
|
108
|
+
optionConfig: RuleItem;
|
|
109
|
+
options: RuleItem[];
|
|
110
|
+
datasourceBind: RuleItem[];
|
|
111
|
+
constructor(props: BaseControlProperty & {
|
|
112
|
+
optionConfig?: 'custom' | 'datasource';
|
|
113
|
+
datasourceBind?: DataSourceBind;
|
|
114
|
+
options?: OptionSetting[];
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
export default BaseControlProperty;
|
|
118
|
+
export { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RuntimeControl } from '../BaseControl';
|
|
2
|
-
import BaseControlProperty from './property';
|
|
3
|
-
import { FormControlsKeys, FormControlSchema } from '../../type';
|
|
4
|
-
declare class FormControl extends RuntimeControl {
|
|
5
|
-
readonly controlType = "form";
|
|
6
|
-
readonly props: BaseControlProperty;
|
|
7
|
-
value: unknown;
|
|
8
|
-
constructor(props?: Partial<FormControlSchema<FormControlsKeys>>);
|
|
9
|
-
}
|
|
10
|
-
export default FormControl;
|
|
11
|
-
export { FormControl as RuntimeFormControl };
|
|
1
|
+
import { RuntimeControl } from '../BaseControl';
|
|
2
|
+
import BaseControlProperty from './property';
|
|
3
|
+
import { FormControlsKeys, FormControlSchema } from '../../type';
|
|
4
|
+
declare class FormControl extends RuntimeControl {
|
|
5
|
+
readonly controlType = "form";
|
|
6
|
+
readonly props: BaseControlProperty;
|
|
7
|
+
value: unknown;
|
|
8
|
+
constructor(props?: Partial<FormControlSchema<FormControlsKeys>>);
|
|
9
|
+
}
|
|
10
|
+
export default FormControl;
|
|
11
|
+
export { FormControl as RuntimeFormControl };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { DesignerControl, DataBindModelType } from '../BaseControl';
|
|
2
|
-
import LayoutControlProperty from './property';
|
|
3
|
-
import { Messages } from '../Validator';
|
|
4
|
-
import { LayoutControlsKeys, LayoutControlSchema } from '../../type';
|
|
5
|
-
declare class LayoutControl<T extends DesignerControl = DesignerControl> extends DesignerControl {
|
|
6
|
-
static excludes: string[] | boolean;
|
|
7
|
-
static childrenMaxLength: number;
|
|
8
|
-
readonly controlType: 'layout' | 'search' | 'wrap';
|
|
9
|
-
children: T[];
|
|
10
|
-
excludes: string[] | boolean;
|
|
11
|
-
childrenMaxLength: number;
|
|
12
|
-
readonly props: LayoutControlProperty;
|
|
13
|
-
constructor(props?: Partial<LayoutControlSchema<LayoutControlsKeys, LayoutControlProperty, DesignerControl>>);
|
|
14
|
-
private judgeExcludesChildren;
|
|
15
|
-
judgeJoinChildren(type: string): boolean;
|
|
16
|
-
validate(messages?: Messages, ignore?: string[]): Promise<boolean>;
|
|
17
|
-
toDataBindModel(parentId?: string | null): DataBindModelType[];
|
|
18
|
-
toSchema(): LayoutControlSchema<LayoutControlsKeys>;
|
|
19
|
-
}
|
|
20
|
-
export default LayoutControl;
|
|
21
|
-
export { LayoutControl as DesignerLayoutControl };
|
|
1
|
+
import { DesignerControl, DataBindModelType } from '../BaseControl';
|
|
2
|
+
import LayoutControlProperty from './property';
|
|
3
|
+
import { Messages } from '../Validator';
|
|
4
|
+
import { LayoutControlsKeys, LayoutControlSchema } from '../../type';
|
|
5
|
+
declare class LayoutControl<T extends DesignerControl = DesignerControl> extends DesignerControl {
|
|
6
|
+
static excludes: string[] | boolean;
|
|
7
|
+
static childrenMaxLength: number;
|
|
8
|
+
readonly controlType: 'layout' | 'search' | 'wrap';
|
|
9
|
+
children: T[];
|
|
10
|
+
excludes: string[] | boolean;
|
|
11
|
+
childrenMaxLength: number;
|
|
12
|
+
readonly props: LayoutControlProperty;
|
|
13
|
+
constructor(props?: Partial<LayoutControlSchema<LayoutControlsKeys, LayoutControlProperty, DesignerControl>>);
|
|
14
|
+
private judgeExcludesChildren;
|
|
15
|
+
judgeJoinChildren(type: string): boolean;
|
|
16
|
+
validate(messages?: Messages, ignore?: string[]): Promise<boolean>;
|
|
17
|
+
toDataBindModel(parentId?: string | null): DataBindModelType[];
|
|
18
|
+
toSchema(): LayoutControlSchema<LayoutControlsKeys>;
|
|
19
|
+
}
|
|
20
|
+
export default LayoutControl;
|
|
21
|
+
export { LayoutControl as DesignerLayoutControl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Designer from './designer';
|
|
2
|
-
import Runtime from './runtime';
|
|
3
|
-
import Property from './property';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Designer: typeof Designer;
|
|
6
|
-
Runtime: typeof Runtime;
|
|
7
|
-
Property: typeof Property;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export * from './designer';
|
|
11
|
-
export * from './runtime';
|
|
12
|
-
export * from './property';
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Property } from '../BaseControl';
|
|
2
|
-
declare class LayoutControlProperty extends Property {
|
|
3
|
-
constructor(props?: Partial<LayoutControlProperty>);
|
|
4
|
-
}
|
|
5
|
-
export default LayoutControlProperty;
|
|
6
|
-
export { LayoutControlProperty };
|
|
1
|
+
import { Property } from '../BaseControl';
|
|
2
|
+
declare class LayoutControlProperty extends Property {
|
|
3
|
+
constructor(props?: Partial<LayoutControlProperty>);
|
|
4
|
+
}
|
|
5
|
+
export default LayoutControlProperty;
|
|
6
|
+
export { LayoutControlProperty };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RuntimeControl } from '../BaseControl';
|
|
2
|
-
import LayoutControlProperty from './property';
|
|
3
|
-
import { LayoutControlsKeys, LayoutControlSchema } from '../../type';
|
|
4
|
-
declare class LayoutControl<T extends RuntimeControl = RuntimeControl> extends RuntimeControl {
|
|
5
|
-
readonly controlType: 'layout' | 'search' | 'wrap';
|
|
6
|
-
children: T[];
|
|
7
|
-
readonly props: LayoutControlProperty;
|
|
8
|
-
constructor(props?: Partial<LayoutControlSchema<LayoutControlsKeys, LayoutControlProperty, RuntimeControl>>);
|
|
9
|
-
}
|
|
10
|
-
export default LayoutControl;
|
|
11
|
-
export { LayoutControl as RuntimeLayoutControl };
|
|
1
|
+
import { RuntimeControl } from '../BaseControl';
|
|
2
|
+
import LayoutControlProperty from './property';
|
|
3
|
+
import { LayoutControlsKeys, LayoutControlSchema } from '../../type';
|
|
4
|
+
declare class LayoutControl<T extends RuntimeControl = RuntimeControl> extends RuntimeControl {
|
|
5
|
+
readonly controlType: 'layout' | 'search' | 'wrap';
|
|
6
|
+
children: T[];
|
|
7
|
+
readonly props: LayoutControlProperty;
|
|
8
|
+
constructor(props?: Partial<LayoutControlSchema<LayoutControlsKeys, LayoutControlProperty, RuntimeControl>>);
|
|
9
|
+
}
|
|
10
|
+
export default LayoutControl;
|
|
11
|
+
export { LayoutControl as RuntimeLayoutControl };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DesignerControl, DataBindModelType } from '../BaseControl';
|
|
2
|
-
import ListControlProperty from './property';
|
|
3
|
-
import { Messages } from '../Validator';
|
|
4
|
-
import { ListControlsKeys, ListControlSchema } from '../../type';
|
|
5
|
-
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
6
|
-
declare class ListControl extends DesignerControl {
|
|
7
|
-
static controlFieldType: FieldTypes;
|
|
8
|
-
readonly controlType = "list";
|
|
9
|
-
readonly props: ListControlProperty<'Designer'>;
|
|
10
|
-
constructor(props?: ListControlSchema<ListControlsKeys, ListControlProperty<'Designer'>>);
|
|
11
|
-
validate(messages?: Messages, ignore?: string[]): Promise<boolean>;
|
|
12
|
-
toDataBindModel(): DataBindModelType[];
|
|
13
|
-
toSchema(): any;
|
|
14
|
-
}
|
|
15
|
-
export default ListControl;
|
|
16
|
-
export { ListControl as DesignerListControl };
|
|
1
|
+
import { DesignerControl, DataBindModelType } from '../BaseControl';
|
|
2
|
+
import ListControlProperty from './property';
|
|
3
|
+
import { Messages } from '../Validator';
|
|
4
|
+
import { ListControlsKeys, ListControlSchema } from '../../type';
|
|
5
|
+
import { FieldTypes } from '@byteluck-fe/model-driven-shared';
|
|
6
|
+
declare class ListControl extends DesignerControl {
|
|
7
|
+
static controlFieldType: FieldTypes;
|
|
8
|
+
readonly controlType = "list";
|
|
9
|
+
readonly props: ListControlProperty<'Designer'>;
|
|
10
|
+
constructor(props?: ListControlSchema<ListControlsKeys, ListControlProperty<'Designer'>>);
|
|
11
|
+
validate(messages?: Messages, ignore?: string[]): Promise<boolean>;
|
|
12
|
+
toDataBindModel(): DataBindModelType[];
|
|
13
|
+
toSchema(): any;
|
|
14
|
+
}
|
|
15
|
+
export default ListControl;
|
|
16
|
+
export { ListControl as DesignerListControl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Designer from './designer';
|
|
2
|
-
import Runtime from './runtime';
|
|
3
|
-
import Property from './property';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Designer: typeof Designer;
|
|
6
|
-
Runtime: typeof Runtime;
|
|
7
|
-
Property: typeof Property;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export * from './designer';
|
|
11
|
-
export * from './runtime';
|
|
12
|
-
export * from './property';
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { DesignerControl, Property, RuntimeControl } from '../BaseControl';
|
|
2
|
-
import { ControlsKeys, BaseControlSchema, MODE } from '../../type';
|
|
3
|
-
import { DesignerListControl } from './designer';
|
|
4
|
-
import { RuntimeListControl } from './runtime';
|
|
5
|
-
declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>> extends Property {
|
|
6
|
-
headers: Control[];
|
|
7
|
-
footers?: Control[];
|
|
8
|
-
pageIndex: number;
|
|
9
|
-
pageSize: number;
|
|
10
|
-
pageSizeOptions: number[];
|
|
11
|
-
totalCount: number;
|
|
12
|
-
constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
|
|
13
|
-
headers: Control[];
|
|
14
|
-
footers?: Control[];
|
|
15
|
-
}>, mode?: MODE);
|
|
16
|
-
}
|
|
17
|
-
export default ListControlProperty;
|
|
18
|
-
export { ListControlProperty };
|
|
1
|
+
import { DesignerControl, Property, RuntimeControl } from '../BaseControl';
|
|
2
|
+
import { ControlsKeys, BaseControlSchema, MODE } from '../../type';
|
|
3
|
+
import { DesignerListControl } from './designer';
|
|
4
|
+
import { RuntimeListControl } from './runtime';
|
|
5
|
+
declare class ListControlProperty<Mode extends MODE | 'Schema', Control extends object = Mode extends 'Runtime' ? RuntimeControl : Mode extends 'Designer' ? DesignerControl : BaseControlSchema<ControlsKeys, any>> extends Property {
|
|
6
|
+
headers: Control[];
|
|
7
|
+
footers?: Control[];
|
|
8
|
+
pageIndex: number;
|
|
9
|
+
pageSize: number;
|
|
10
|
+
pageSizeOptions: number[];
|
|
11
|
+
totalCount: number;
|
|
12
|
+
constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
|
|
13
|
+
headers: Control[];
|
|
14
|
+
footers?: Control[];
|
|
15
|
+
}>, mode?: MODE);
|
|
16
|
+
}
|
|
17
|
+
export default ListControlProperty;
|
|
18
|
+
export { ListControlProperty };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { RuntimeControl } from '../BaseControl';
|
|
2
|
-
import ListControlProperty from './property';
|
|
3
|
-
import { ListControlsKeys, ListControlSchema } from '../../type';
|
|
4
|
-
declare class ListControl<T extends RuntimeControl = RuntimeControl> extends RuntimeControl {
|
|
5
|
-
readonly controlType = "list";
|
|
6
|
-
readonly children: T[];
|
|
7
|
-
readonly props: ListControlProperty<'Runtime'>;
|
|
8
|
-
constructor(props?: Partial<ListControlSchema<ListControlsKeys, ListControlProperty<'Runtime'>>>);
|
|
9
|
-
get length(): number;
|
|
10
|
-
}
|
|
11
|
-
export default ListControl;
|
|
12
|
-
export { ListControl as RuntimeListControl };
|
|
1
|
+
import { RuntimeControl } from '../BaseControl';
|
|
2
|
+
import ListControlProperty from './property';
|
|
3
|
+
import { ListControlsKeys, ListControlSchema } from '../../type';
|
|
4
|
+
declare class ListControl<T extends RuntimeControl = RuntimeControl> extends RuntimeControl {
|
|
5
|
+
readonly controlType = "list";
|
|
6
|
+
readonly children: T[];
|
|
7
|
+
readonly props: ListControlProperty<'Runtime'>;
|
|
8
|
+
constructor(props?: Partial<ListControlSchema<ListControlsKeys, ListControlProperty<'Runtime'>>>);
|
|
9
|
+
get length(): number;
|
|
10
|
+
}
|
|
11
|
+
export default ListControl;
|
|
12
|
+
export { ListControl as RuntimeListControl };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import SearchControlProperty from './property';
|
|
2
|
-
import { SearchControlsKeys, SearchControlSchema } from '../../type';
|
|
3
|
-
import { DesignerLayoutControl } from '../LayoutControl';
|
|
4
|
-
import { DesignerControl } from '../BaseControl';
|
|
5
|
-
declare class SearchControl<T extends DesignerControl = DesignerControl> extends DesignerLayoutControl<T> {
|
|
6
|
-
readonly controlType = "search";
|
|
7
|
-
readonly props: SearchControlProperty;
|
|
8
|
-
constructor(props?: Partial<SearchControlSchema<SearchControlsKeys, SearchControlProperty, DesignerControl>>);
|
|
9
|
-
}
|
|
10
|
-
export default SearchControl;
|
|
11
|
-
export { SearchControl as DesignerSearchControl };
|
|
1
|
+
import SearchControlProperty from './property';
|
|
2
|
+
import { SearchControlsKeys, SearchControlSchema } from '../../type';
|
|
3
|
+
import { DesignerLayoutControl } from '../LayoutControl';
|
|
4
|
+
import { DesignerControl } from '../BaseControl';
|
|
5
|
+
declare class SearchControl<T extends DesignerControl = DesignerControl> extends DesignerLayoutControl<T> {
|
|
6
|
+
readonly controlType = "search";
|
|
7
|
+
readonly props: SearchControlProperty;
|
|
8
|
+
constructor(props?: Partial<SearchControlSchema<SearchControlsKeys, SearchControlProperty, DesignerControl>>);
|
|
9
|
+
}
|
|
10
|
+
export default SearchControl;
|
|
11
|
+
export { SearchControl as DesignerSearchControl };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Designer from './designer';
|
|
2
|
-
import Runtime from './runtime';
|
|
3
|
-
import Property from './property';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
Designer: typeof Designer;
|
|
6
|
-
Runtime: typeof Runtime;
|
|
7
|
-
Property: typeof Property;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export * from './designer';
|
|
11
|
-
export * from './runtime';
|
|
12
|
-
export * from './property';
|
|
1
|
+
import Designer from './designer';
|
|
2
|
+
import Runtime from './runtime';
|
|
3
|
+
import Property from './property';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
Designer: typeof Designer;
|
|
6
|
+
Runtime: typeof Runtime;
|
|
7
|
+
Property: typeof Property;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export * from './designer';
|
|
11
|
+
export * from './runtime';
|
|
12
|
+
export * from './property';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LayoutControlProperty } from '../LayoutControl';
|
|
2
|
-
import { DataBind } from '../../framework';
|
|
3
|
-
declare class SearchControlProperty extends LayoutControlProperty {
|
|
4
|
-
dataBind: DataBind;
|
|
5
|
-
constructor(props?: Partial<SearchControlProperty>);
|
|
6
|
-
}
|
|
7
|
-
export default SearchControlProperty;
|
|
8
|
-
export { SearchControlProperty };
|
|
1
|
+
import { LayoutControlProperty } from '../LayoutControl';
|
|
2
|
+
import { DataBind } from '../../framework';
|
|
3
|
+
declare class SearchControlProperty extends LayoutControlProperty {
|
|
4
|
+
dataBind: DataBind;
|
|
5
|
+
constructor(props?: Partial<SearchControlProperty>);
|
|
6
|
+
}
|
|
7
|
+
export default SearchControlProperty;
|
|
8
|
+
export { SearchControlProperty };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import SearchControlProperty from './property';
|
|
2
|
-
import { SearchControlsKeys, SearchControlSchema } from '../../type';
|
|
3
|
-
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
4
|
-
import { RuntimeControl } from '../BaseControl';
|
|
5
|
-
declare class SearchControl<T extends RuntimeControl = RuntimeControl> extends RuntimeLayoutControl<T> {
|
|
6
|
-
readonly controlType = "search";
|
|
7
|
-
readonly props: SearchControlProperty;
|
|
8
|
-
constructor(props?: Partial<SearchControlSchema<SearchControlsKeys, SearchControlProperty, RuntimeControl>>);
|
|
9
|
-
}
|
|
10
|
-
export default SearchControl;
|
|
11
|
-
export { SearchControl as RuntimeSearchControl };
|
|
1
|
+
import SearchControlProperty from './property';
|
|
2
|
+
import { SearchControlsKeys, SearchControlSchema } from '../../type';
|
|
3
|
+
import { RuntimeLayoutControl } from '../LayoutControl';
|
|
4
|
+
import { RuntimeControl } from '../BaseControl';
|
|
5
|
+
declare class SearchControl<T extends RuntimeControl = RuntimeControl> extends RuntimeLayoutControl<T> {
|
|
6
|
+
readonly controlType = "search";
|
|
7
|
+
readonly props: SearchControlProperty;
|
|
8
|
+
constructor(props?: Partial<SearchControlSchema<SearchControlsKeys, SearchControlProperty, RuntimeControl>>);
|
|
9
|
+
}
|
|
10
|
+
export default SearchControl;
|
|
11
|
+
export { SearchControl as RuntimeSearchControl };
|