@byteluck-fe/model-driven-core 2.2.6 → 2.2.7

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 (39) hide show
  1. package/dist/types/common/BaseControl/designer.d.ts +62 -62
  2. package/dist/types/common/BaseControl/index.d.ts +13 -13
  3. package/dist/types/common/BaseControl/property.d.ts +22 -22
  4. package/dist/types/common/BaseControl/runtime.d.ts +22 -22
  5. package/dist/types/common/BaseControl/types.d.ts +35 -35
  6. package/dist/types/common/ColumnControl/designer.d.ts +10 -10
  7. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  8. package/dist/types/common/ColumnControl/property.d.ts +34 -34
  9. package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
  10. package/dist/types/common/ControlArray.d.ts +8 -8
  11. package/dist/types/common/FormControl/designer.d.ts +13 -13
  12. package/dist/types/common/FormControl/index.d.ts +12 -12
  13. package/dist/types/common/FormControl/property.d.ts +44 -44
  14. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  15. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  16. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  17. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  18. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  19. package/dist/types/common/ListControl/designer.d.ts +16 -16
  20. package/dist/types/common/ListControl/index.d.ts +12 -12
  21. package/dist/types/common/ListControl/property.d.ts +12 -12
  22. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  23. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  24. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  25. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  26. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  27. package/dist/types/common/Validator.d.ts +15 -15
  28. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  29. package/dist/types/common/WrapControl/index.d.ts +12 -12
  30. package/dist/types/common/WrapControl/property.d.ts +6 -6
  31. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  32. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  33. package/dist/types/common/index.d.ts +11 -11
  34. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  35. package/dist/types/framework/RegisterControls.d.ts +33 -33
  36. package/dist/types/framework/index.d.ts +358 -358
  37. package/dist/types/index.d.ts +3 -3
  38. package/dist/types/type.d.ts +91 -91
  39. package/package.json +3 -3
@@ -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,12 +1,12 @@
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
- constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
8
- headers: Control[];
9
- }>);
10
- }
11
- export default ListControlProperty;
12
- 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
+ constructor(parent: DesignerListControl | RuntimeListControl, props?: Partial<ListControlProperty<Mode> & {
8
+ headers: Control[];
9
+ }>);
10
+ }
11
+ export default ListControlProperty;
12
+ 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 };
@@ -1,15 +1,15 @@
1
- import Schema, { Rules, RuleItem } from 'async-validator';
2
- declare const messages: {
3
- required: string;
4
- maxLength: string;
5
- minLength: string;
6
- string: {
7
- range: string;
8
- };
9
- };
10
- type Messages = Partial<typeof messages>;
11
- declare function createValidator(rules: Rules, newMessages?: Messages): Schema & {
12
- messages: (messages: Messages) => Messages;
13
- };
14
- export { createValidator };
15
- export type { Rules, RuleItem, Messages };
1
+ import Schema, { Rules, RuleItem } from 'async-validator';
2
+ declare const messages: {
3
+ required: string;
4
+ maxLength: string;
5
+ minLength: string;
6
+ string: {
7
+ range: string;
8
+ };
9
+ };
10
+ type Messages = Partial<typeof messages>;
11
+ declare function createValidator(rules: Rules, newMessages?: Messages): Schema & {
12
+ messages: (messages: Messages) => Messages;
13
+ };
14
+ export { createValidator };
15
+ export type { Rules, RuleItem, Messages };
@@ -1,11 +1,11 @@
1
- import WrapControlProperty from './property';
2
- import { WrapControlsKeys, WrapControlSchema } from '../../type';
3
- import { DesignerLayoutControl } from '../LayoutControl';
4
- import { DesignerControl } from '../BaseControl';
5
- declare class WrapControl<T extends DesignerControl = DesignerControl> extends DesignerLayoutControl<T> {
6
- readonly controlType = "wrap";
7
- readonly props: WrapControlProperty;
8
- constructor(props?: Partial<WrapControlSchema<WrapControlsKeys, WrapControlProperty, DesignerControl>>);
9
- }
10
- export default WrapControl;
11
- export { WrapControl as DesignerWrapControl };
1
+ import WrapControlProperty from './property';
2
+ import { WrapControlsKeys, WrapControlSchema } from '../../type';
3
+ import { DesignerLayoutControl } from '../LayoutControl';
4
+ import { DesignerControl } from '../BaseControl';
5
+ declare class WrapControl<T extends DesignerControl = DesignerControl> extends DesignerLayoutControl<T> {
6
+ readonly controlType = "wrap";
7
+ readonly props: WrapControlProperty;
8
+ constructor(props?: Partial<WrapControlSchema<WrapControlsKeys, WrapControlProperty, DesignerControl>>);
9
+ }
10
+ export default WrapControl;
11
+ export { WrapControl as DesignerWrapControl };
@@ -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 { LayoutControlProperty } from '../LayoutControl';
2
- declare class WrapControlProperty extends LayoutControlProperty {
3
- constructor(props?: Partial<WrapControlProperty>);
4
- }
5
- export default WrapControlProperty;
6
- export { WrapControlProperty };
1
+ import { LayoutControlProperty } from '../LayoutControl';
2
+ declare class WrapControlProperty extends LayoutControlProperty {
3
+ constructor(props?: Partial<WrapControlProperty>);
4
+ }
5
+ export default WrapControlProperty;
6
+ export { WrapControlProperty };
@@ -1,11 +1,11 @@
1
- import WrapControlProperty from './property';
2
- import { WrapControlsKeys, WrapControlSchema } from '../../type';
3
- import { RuntimeLayoutControl } from '../LayoutControl';
4
- import { RuntimeControl } from '../BaseControl';
5
- declare class WrapControl<T extends RuntimeControl = RuntimeControl> extends RuntimeLayoutControl<T> {
6
- readonly controlType = "wrap";
7
- readonly props: WrapControlProperty;
8
- constructor(props?: Partial<WrapControlSchema<WrapControlsKeys, WrapControlProperty, RuntimeControl>>);
9
- }
10
- export default WrapControl;
11
- export { WrapControl as RuntimeWrapControl };
1
+ import WrapControlProperty from './property';
2
+ import { WrapControlsKeys, WrapControlSchema } from '../../type';
3
+ import { RuntimeLayoutControl } from '../LayoutControl';
4
+ import { RuntimeControl } from '../BaseControl';
5
+ declare class WrapControl<T extends RuntimeControl = RuntimeControl> extends RuntimeLayoutControl<T> {
6
+ readonly controlType = "wrap";
7
+ readonly props: WrapControlProperty;
8
+ constructor(props?: Partial<WrapControlSchema<WrapControlsKeys, WrapControlProperty, RuntimeControl>>);
9
+ }
10
+ export default WrapControl;
11
+ export { WrapControl as RuntimeWrapControl };
@@ -1,4 +1,4 @@
1
- import { Watcher } from '@byteluck-fe/model-driven-shared';
2
- type EmitterKeys = 'preInstance' | 'postInstance' | 'preUpdateProps' | 'postUpdateProps' | 'preValidate' | 'preToSchema';
3
- declare const controlHooksEmitter: Watcher<EmitterKeys>;
4
- export { controlHooksEmitter };
1
+ import { Watcher } from '@byteluck-fe/model-driven-shared';
2
+ type EmitterKeys = 'preInstance' | 'postInstance' | 'preUpdateProps' | 'postUpdateProps' | 'preValidate' | 'preToSchema';
3
+ declare const controlHooksEmitter: Watcher<EmitterKeys>;
4
+ export { controlHooksEmitter };
@@ -1,11 +1,11 @@
1
- export * from './BaseControl';
2
- export * from './FormControl';
3
- export * from './LayoutControl';
4
- export * from './ListControl';
5
- export * from './ColumnControl';
6
- export * from './SearchViewControl';
7
- export * from './WrapControl';
8
- export * from './Validator';
9
- export * from './ControlArray';
10
- export * from './initOptionAndDataSourceRules';
11
- export * from './controlHooksEmitter';
1
+ export * from './BaseControl';
2
+ export * from './FormControl';
3
+ export * from './LayoutControl';
4
+ export * from './ListControl';
5
+ export * from './ColumnControl';
6
+ export * from './SearchViewControl';
7
+ export * from './WrapControl';
8
+ export * from './Validator';
9
+ export * from './ControlArray';
10
+ export * from './initOptionAndDataSourceRules';
11
+ export * from './controlHooksEmitter';
@@ -1,10 +1,10 @@
1
- import { PropertyRules } from './BaseControl';
2
- import { CustomAttribute, DataSourceBind, OptionSetting, SuperDataSourceBind } from '../framework';
3
- export declare function initOptionAndDataSourceRules(this: PropertyRules, props: {
4
- optionConfig?: 'datasource' | 'custom' | 'none';
5
- datasourceBind?: DataSourceBind;
6
- options?: OptionSetting[];
7
- }): void;
8
- export declare function initSuperDataSourceRules(this: PropertyRules, props: {
9
- datasourceBind: SuperDataSourceBind;
10
- }, attributes: CustomAttribute[], messageInDataSetting?: boolean): void;
1
+ import { PropertyRules } from './BaseControl';
2
+ import { CustomAttribute, DataSourceBind, OptionSetting, SuperDataSourceBind } from '../framework';
3
+ export declare function initOptionAndDataSourceRules(this: PropertyRules, props: {
4
+ optionConfig?: 'datasource' | 'custom' | 'none';
5
+ datasourceBind?: DataSourceBind;
6
+ options?: OptionSetting[];
7
+ }): void;
8
+ export declare function initSuperDataSourceRules(this: PropertyRules, props: {
9
+ datasourceBind: SuperDataSourceBind;
10
+ }, attributes: CustomAttribute[], messageInDataSetting?: boolean): void;
@@ -1,33 +1,33 @@
1
- import { ControlExport, ControlsConstructor, ControlsInstance, DeepPartial, FormControlSchema, ControlsKeys, MODE, Schema, ListControlSchema, LayoutControlSchema, ColumnControlSchema } from '../type';
2
- export interface BeforeCreateInstance {
3
- (schema: any): void;
4
- (schema: any): any;
5
- }
6
- export declare class RegisterControls<Mode extends MODE> {
7
- static readonly staticControls: ControlExport[];
8
- static readonly staticRegisteredTypes: Set<string>;
9
- static readonly staticRegisteredConfigs: Map<string, Record<string, unknown>>;
10
- registeredControlTypes: Set<string>;
11
- controlConfigMap: Map<string, Readonly<Record<string, unknown>>>;
12
- protected _controls: ControlsConstructor<ControlsKeys, Mode>[];
13
- private _type;
14
- constructor(type: Mode);
15
- registerControlConfig(type: string, config: Record<string, unknown>): this;
16
- getControlConfig(type: string): Readonly<Record<string, unknown>> | undefined;
17
- static register(control: ControlExport): typeof RegisterControls;
18
- getControls(): ControlsConstructor<ControlsKeys, Mode>[];
19
- register(control: ControlsConstructor<ControlsKeys, Mode>): this;
20
- isLayoutControl(schema: Schema<any>): schema is LayoutControlSchema<any>;
21
- isFormControl(schema: Schema<any>): schema is FormControlSchema<any>;
22
- isListControl(schema: Schema<any>): schema is ListControlSchema<any>;
23
- isColumnControl(schema: Schema<any>): schema is ColumnControlSchema<any>;
24
- createControl<T extends ControlsKeys>(schema: (Schema<ControlsKeys> & {
25
- type: T;
26
- })[], beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>[];
27
- createControl<T extends ControlsKeys>(schema: Schema<T> & {
28
- type: T;
29
- }, beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>;
30
- createControlInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, Mode> | undefined;
31
- getControlFormType<T extends ControlsKeys>(type: T): ControlsConstructor<T, Mode> | undefined;
32
- private _initControls;
33
- }
1
+ import { ControlExport, ControlsConstructor, ControlsInstance, DeepPartial, FormControlSchema, ControlsKeys, MODE, Schema, ListControlSchema, LayoutControlSchema, ColumnControlSchema } from '../type';
2
+ export interface BeforeCreateInstance {
3
+ (schema: any): void;
4
+ (schema: any): any;
5
+ }
6
+ export declare class RegisterControls<Mode extends MODE> {
7
+ static readonly staticControls: ControlExport[];
8
+ static readonly staticRegisteredTypes: Set<string>;
9
+ static readonly staticRegisteredConfigs: Map<string, Record<string, unknown>>;
10
+ registeredControlTypes: Set<string>;
11
+ controlConfigMap: Map<string, Readonly<Record<string, unknown>>>;
12
+ protected _controls: ControlsConstructor<ControlsKeys, Mode>[];
13
+ private _type;
14
+ constructor(type: Mode);
15
+ registerControlConfig(type: string, config: Record<string, unknown>): this;
16
+ getControlConfig(type: string): Readonly<Record<string, unknown>> | undefined;
17
+ static register(control: ControlExport): typeof RegisterControls;
18
+ getControls(): ControlsConstructor<ControlsKeys, Mode>[];
19
+ register(control: ControlsConstructor<ControlsKeys, Mode>): this;
20
+ isLayoutControl(schema: Schema<any>): schema is LayoutControlSchema<any>;
21
+ isFormControl(schema: Schema<any>): schema is FormControlSchema<any>;
22
+ isListControl(schema: Schema<any>): schema is ListControlSchema<any>;
23
+ isColumnControl(schema: Schema<any>): schema is ColumnControlSchema<any>;
24
+ createControl<T extends ControlsKeys>(schema: (Schema<ControlsKeys> & {
25
+ type: T;
26
+ })[], beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>[];
27
+ createControl<T extends ControlsKeys>(schema: Schema<T> & {
28
+ type: T;
29
+ }, beforeCreateInstance?: BeforeCreateInstance): ControlsInstance<T, Mode>;
30
+ createControlInstance<T extends ControlsKeys>(type: T, initSchema?: DeepPartial<Schema<T>>): ControlsInstance<T, Mode> | undefined;
31
+ getControlFormType<T extends ControlsKeys>(type: T): ControlsConstructor<T, Mode> | undefined;
32
+ private _initControls;
33
+ }