@byteluck-fe/model-driven-core 2.2.0 → 2.2.1-beta.1

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 (41) hide show
  1. package/dist/esm/common/ColumnControl/property.js +2 -0
  2. package/dist/index.umd.js +1 -1
  3. package/dist/types/common/BaseControl/designer.d.ts +62 -62
  4. package/dist/types/common/BaseControl/index.d.ts +13 -13
  5. package/dist/types/common/BaseControl/property.d.ts +22 -22
  6. package/dist/types/common/BaseControl/runtime.d.ts +22 -22
  7. package/dist/types/common/BaseControl/types.d.ts +35 -35
  8. package/dist/types/common/ColumnControl/designer.d.ts +10 -10
  9. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  10. package/dist/types/common/ColumnControl/property.d.ts +34 -33
  11. package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
  12. package/dist/types/common/ControlArray.d.ts +8 -8
  13. package/dist/types/common/FormControl/designer.d.ts +13 -13
  14. package/dist/types/common/FormControl/index.d.ts +12 -12
  15. package/dist/types/common/FormControl/property.d.ts +44 -44
  16. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  17. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  18. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  19. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  20. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  21. package/dist/types/common/ListControl/designer.d.ts +16 -16
  22. package/dist/types/common/ListControl/index.d.ts +12 -12
  23. package/dist/types/common/ListControl/property.d.ts +12 -12
  24. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  25. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  26. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  27. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  28. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  29. package/dist/types/common/Validator.d.ts +15 -15
  30. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  31. package/dist/types/common/WrapControl/index.d.ts +12 -12
  32. package/dist/types/common/WrapControl/property.d.ts +6 -6
  33. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  34. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  35. package/dist/types/common/index.d.ts +11 -11
  36. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  37. package/dist/types/framework/RegisterControls.d.ts +33 -33
  38. package/dist/types/framework/index.d.ts +358 -358
  39. package/dist/types/index.d.ts +3 -3
  40. package/dist/types/type.d.ts +91 -91
  41. package/package.json +3 -3
@@ -1,22 +1,22 @@
1
- import { RuleItem } from '../Validator';
2
- import { BaseStyle } from '../../framework';
3
- declare class PropertyRules {
4
- [field: string]: RuleItem | RuleItem[];
5
- isHide: RuleItem;
6
- constructor(props: Property);
7
- }
8
- declare class PropertyRuntimeRules extends Array<RuleItem> {
9
- readonly [index: number]: RuleItem;
10
- constructor(props: Property);
11
- }
12
- declare class Property {
13
- static readonly Rules: typeof PropertyRules;
14
- static readonly RuntimeRules: typeof PropertyRuntimeRules;
15
- isHide: boolean;
16
- className?: string[];
17
- style: BaseStyle;
18
- caption: string;
19
- constructor(props?: Partial<Property>, caption?: string);
20
- }
21
- export default Property;
22
- export { Property, PropertyRules, PropertyRuntimeRules };
1
+ import { RuleItem } from '../Validator';
2
+ import { BaseStyle } from '../../framework';
3
+ declare class PropertyRules {
4
+ [field: string]: RuleItem | RuleItem[];
5
+ isHide: RuleItem;
6
+ constructor(props: Property);
7
+ }
8
+ declare class PropertyRuntimeRules extends Array<RuleItem> {
9
+ readonly [index: number]: RuleItem;
10
+ constructor(props: Property);
11
+ }
12
+ declare class Property {
13
+ static readonly Rules: typeof PropertyRules;
14
+ static readonly RuntimeRules: typeof PropertyRuntimeRules;
15
+ isHide: boolean;
16
+ className?: string[];
17
+ style: BaseStyle;
18
+ caption: string;
19
+ constructor(props?: Partial<Property>, caption?: string);
20
+ }
21
+ export default Property;
22
+ export { Property, PropertyRules, PropertyRuntimeRules };
@@ -1,22 +1,22 @@
1
- import Property, { PropertyRuntimeRules } from './property';
2
- import { CustomEventItem, FieldTypes } from '@byteluck-fe/model-driven-shared';
3
- import { ControlsKeys, BaseControlSchema, BaseControlTypes } from '../../type';
4
- import { PAGE_STATUS } from '../../framework';
5
- declare class Control {
6
- static readonly controlType: string;
7
- static readonly controlFieldType: FieldTypes;
8
- static readonly __is_control__ = true;
9
- static readonly controlCustomEvents: CustomEventItem[];
10
- readonly id: string;
11
- readonly type: string;
12
- readonly controlType: BaseControlTypes;
13
- readonly props: Property;
14
- readonly fieldType: FieldTypes;
15
- readonly customEvents: CustomEventItem[];
16
- pageStatus: PAGE_STATUS;
17
- parent: Control | null;
18
- constructor(props?: Partial<BaseControlSchema<ControlsKeys, Property>>);
19
- get rules(): PropertyRuntimeRules;
20
- }
21
- export default Control;
22
- export { Control as RuntimeControl };
1
+ import Property, { PropertyRuntimeRules } from './property';
2
+ import { CustomEventItem, FieldTypes } from '@byteluck-fe/model-driven-shared';
3
+ import { ControlsKeys, BaseControlSchema, BaseControlTypes } from '../../type';
4
+ import { PAGE_STATUS } from '../../framework';
5
+ declare class Control {
6
+ static readonly controlType: string;
7
+ static readonly controlFieldType: FieldTypes;
8
+ static readonly __is_control__ = true;
9
+ static readonly controlCustomEvents: CustomEventItem[];
10
+ readonly id: string;
11
+ readonly type: string;
12
+ readonly controlType: BaseControlTypes;
13
+ readonly props: Property;
14
+ readonly fieldType: FieldTypes;
15
+ readonly customEvents: CustomEventItem[];
16
+ pageStatus: PAGE_STATUS;
17
+ parent: Control | null;
18
+ constructor(props?: Partial<BaseControlSchema<ControlsKeys, Property>>);
19
+ get rules(): PropertyRuntimeRules;
20
+ }
21
+ export default Control;
22
+ export { Control as RuntimeControl };
@@ -1,35 +1,35 @@
1
- import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
- import { COMMON_SETTING_TYPE, DataBind, DataSourceBind, ObjectDataBind } from '../../framework';
3
- export declare interface SettingOption {
4
- key: string;
5
- visible: boolean;
6
- showItems?: Array<COMMON_SETTING_TYPE>;
7
- }
8
- export declare interface HideOptions {
9
- key: string;
10
- hideItems: Array<COMMON_SETTING_TYPE>;
11
- }
12
- export declare interface ModelType {
13
- key: string;
14
- type: FieldTypes;
15
- required?: boolean;
16
- length?: number;
17
- listKey?: string;
18
- controlId?: string;
19
- }
20
- export declare interface DataBindModelType {
21
- controlId: string;
22
- caption: string;
23
- type: string;
24
- fieldType: FieldTypes;
25
- parentId: null | string;
26
- dataBind?: DataBind | ObjectDataBind;
27
- required?: boolean;
28
- maxLength?: number;
29
- datasourceBind?: DataSourceBind;
30
- props: {
31
- [key: string]: unknown;
32
- };
33
- encrypted?: boolean;
34
- encryptedMode?: string;
35
- }
1
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
+ import { COMMON_SETTING_TYPE, DataBind, DataSourceBind, ObjectDataBind } from '../../framework';
3
+ export declare interface SettingOption {
4
+ key: string;
5
+ visible: boolean;
6
+ showItems?: Array<COMMON_SETTING_TYPE>;
7
+ }
8
+ export declare interface HideOptions {
9
+ key: string;
10
+ hideItems: Array<COMMON_SETTING_TYPE>;
11
+ }
12
+ export declare interface ModelType {
13
+ key: string;
14
+ type: FieldTypes;
15
+ required?: boolean;
16
+ length?: number;
17
+ listKey?: string;
18
+ controlId?: string;
19
+ }
20
+ export declare interface DataBindModelType {
21
+ controlId: string;
22
+ caption: string;
23
+ type: string;
24
+ fieldType: FieldTypes;
25
+ parentId: null | string;
26
+ dataBind?: DataBind | ObjectDataBind;
27
+ required?: boolean;
28
+ maxLength?: number;
29
+ datasourceBind?: DataSourceBind;
30
+ props: {
31
+ [key: string]: unknown;
32
+ };
33
+ encrypted?: boolean;
34
+ encryptedMode?: string;
35
+ }
@@ -1,10 +1,10 @@
1
- import { DesignerControl } from '../BaseControl';
2
- import ColumnControlProperty from './property';
3
- import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
4
- declare class ColumnControl extends DesignerControl {
5
- readonly controlType = "column";
6
- readonly props: ColumnControlProperty;
7
- constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
8
- }
9
- export default ColumnControl;
10
- export { ColumnControl as DesignerColumnControl };
1
+ import { DesignerControl } from '../BaseControl';
2
+ import ColumnControlProperty from './property';
3
+ import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
4
+ declare class ColumnControl extends DesignerControl {
5
+ readonly controlType = "column";
6
+ readonly props: ColumnControlProperty;
7
+ constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
8
+ }
9
+ export default ColumnControl;
10
+ export { ColumnControl as DesignerColumnControl };
@@ -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,33 +1,34 @@
1
- import { Property, PropertyRules } from '../BaseControl';
2
- import { RuleItem } from 'async-validator';
3
- import { DataBind, DataSourceBind, OptionSetting, AutoWidth } from '../../framework';
4
- declare class ColumnControlPropertyRules extends PropertyRules {
5
- caption: RuleItem;
6
- width: RuleItem;
7
- constructor(props: ColumnControlProperty);
8
- }
9
- declare class ColumnControlProperty extends Property {
10
- static readonly Rules: typeof ColumnControlPropertyRules;
11
- widthType: 'px' | 'auto' | 'percent';
12
- width: number;
13
- caption: string;
14
- dataBind: DataBind;
15
- autoWidth: AutoWidth;
16
- fixed: 'left' | 'right' | 'none';
17
- sort: boolean;
18
- align?: 'left' | 'right';
19
- colSpan?: string;
20
- constructor(props?: Partial<ColumnControlProperty>);
21
- }
22
- declare class ColumnOptionAndDataSourcePropertyRules extends ColumnControlPropertyRules {
23
- optionConfig: RuleItem;
24
- options: RuleItem[];
25
- datasourceBind: RuleItem[];
26
- constructor(props: ColumnControlProperty & {
27
- optionConfig: 'datasource' | 'custom' | 'none';
28
- datasourceBind: DataSourceBind;
29
- options: OptionSetting[];
30
- });
31
- }
32
- export default ColumnControlProperty;
33
- export { ColumnControlProperty, ColumnControlPropertyRules, ColumnOptionAndDataSourcePropertyRules, };
1
+ import { Property, PropertyRules } from '../BaseControl';
2
+ import { RuleItem } from 'async-validator';
3
+ import { DataBind, DataSourceBind, OptionSetting, AutoWidth } from '../../framework';
4
+ declare class ColumnControlPropertyRules extends PropertyRules {
5
+ caption: RuleItem;
6
+ width: RuleItem;
7
+ constructor(props: ColumnControlProperty);
8
+ }
9
+ declare class ColumnControlProperty extends Property {
10
+ static readonly Rules: typeof ColumnControlPropertyRules;
11
+ widthType: 'px' | 'auto' | 'percent';
12
+ width: number;
13
+ caption: string;
14
+ dataBind: DataBind;
15
+ autoWidth: AutoWidth;
16
+ fixed: 'left' | 'right' | 'none';
17
+ sort: boolean;
18
+ align?: 'left' | 'right';
19
+ colSpan?: string;
20
+ adaptiveRowHeight: boolean;
21
+ constructor(props?: Partial<ColumnControlProperty>);
22
+ }
23
+ declare class ColumnOptionAndDataSourcePropertyRules extends ColumnControlPropertyRules {
24
+ optionConfig: RuleItem;
25
+ options: RuleItem[];
26
+ datasourceBind: RuleItem[];
27
+ constructor(props: ColumnControlProperty & {
28
+ optionConfig: 'datasource' | 'custom' | 'none';
29
+ datasourceBind: DataSourceBind;
30
+ options: OptionSetting[];
31
+ });
32
+ }
33
+ export default ColumnControlProperty;
34
+ export { ColumnControlProperty, ColumnControlPropertyRules, ColumnOptionAndDataSourcePropertyRules, };
@@ -1,10 +1,10 @@
1
- import { RuntimeControl } from '../BaseControl';
2
- import ColumnControlProperty from './property';
3
- import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
4
- declare class ColumnControl extends RuntimeControl {
5
- readonly controlType = "column";
6
- readonly props: ColumnControlProperty;
7
- constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
8
- }
9
- export default ColumnControl;
10
- export { ColumnControl as RuntimeColumnControl };
1
+ import { RuntimeControl } from '../BaseControl';
2
+ import ColumnControlProperty from './property';
3
+ import { ColumnControlsKeys, ColumnControlSchema } from '../../type';
4
+ declare class ColumnControl extends RuntimeControl {
5
+ readonly controlType = "column";
6
+ readonly props: ColumnControlProperty;
7
+ constructor(props?: Partial<ColumnControlSchema<ColumnControlsKeys>>);
8
+ }
9
+ export default ColumnControl;
10
+ export { ColumnControl as RuntimeColumnControl };
@@ -1,8 +1,8 @@
1
- export declare function setPropertyDontEnum<T extends object>(obj: T, property: string): void;
2
- export declare function defineParent<T extends object>(control: T & {
3
- parent: any;
4
- }, parent: T | null): void;
5
- export declare function defineArrayParent<T extends object & {
6
- parent: any;
7
- }>(controls: T[], parent: T | null): void;
8
- export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object): void;
1
+ export declare function setPropertyDontEnum<T extends object>(obj: T, property: string): void;
2
+ export declare function defineParent<T extends object>(control: T & {
3
+ parent: any;
4
+ }, parent: T | null): void;
5
+ export declare function defineArrayParent<T extends object & {
6
+ parent: any;
7
+ }>(controls: T[], parent: T | null): void;
8
+ export declare function defineControlArrayToProperty<T>(obj: object, property: string, initialValue?: T[], parent?: object): void;
@@ -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,44 +1,44 @@
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
- declare class BaseControlProperty extends Property {
18
- static readonly Rules: typeof BaseControlPropertyRules;
19
- static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
20
- caption: string;
21
- isHideCaption: boolean;
22
- isShowCaptionTip: boolean;
23
- captionTip: string;
24
- labelPosition: 'top' | 'left';
25
- dataBind: DataBind | ObjectDataBind;
26
- defaultValue: string | number | string[] | number[] | unknown;
27
- placeholder: string;
28
- defaultState: 'default' | 'readonly';
29
- required: boolean;
30
- requiredMessage: string;
31
- constructor(props?: Partial<BaseControlProperty>);
32
- }
33
- declare class OptionAndDataSourcePropertyRules extends BaseControlPropertyRules {
34
- optionConfig: RuleItem;
35
- options: RuleItem[];
36
- datasourceBind: RuleItem[];
37
- constructor(props: BaseControlProperty & {
38
- optionConfig?: 'custom' | 'datasource';
39
- datasourceBind?: DataSourceBind;
40
- options?: OptionSetting[];
41
- });
42
- }
43
- export default BaseControlProperty;
44
- export { BaseControlProperty, BaseControlPropertyRules, BaseControlPropertyRuntimeRules, OptionAndDataSourcePropertyRules, };
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
+ declare class BaseControlProperty extends Property {
18
+ static readonly Rules: typeof BaseControlPropertyRules;
19
+ static readonly RuntimeRules: typeof BaseControlPropertyRuntimeRules;
20
+ caption: string;
21
+ isHideCaption: boolean;
22
+ isShowCaptionTip: boolean;
23
+ captionTip: string;
24
+ labelPosition: 'top' | 'left';
25
+ dataBind: DataBind | ObjectDataBind;
26
+ defaultValue: string | number | string[] | number[] | unknown;
27
+ placeholder: string;
28
+ defaultState: 'default' | 'readonly';
29
+ required: boolean;
30
+ requiredMessage: string;
31
+ constructor(props?: Partial<BaseControlProperty>);
32
+ }
33
+ declare class OptionAndDataSourcePropertyRules extends BaseControlPropertyRules {
34
+ optionConfig: RuleItem;
35
+ options: RuleItem[];
36
+ datasourceBind: RuleItem[];
37
+ constructor(props: BaseControlProperty & {
38
+ optionConfig?: 'custom' | 'datasource';
39
+ datasourceBind?: DataSourceBind;
40
+ options?: OptionSetting[];
41
+ });
42
+ }
43
+ export default BaseControlProperty;
44
+ 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 };