diff --git a/typescript/core/action/action.show.ts b/typescript/core/action/action.show.ts new file mode 100644 index 0000000000..b14456a8e3 --- /dev/null +++ b/typescript/core/action/action.show.ts @@ -0,0 +1,5 @@ +import { _Action } from "./action"; + +export interface _ShowAction extends _Action { + +} \ No newline at end of file diff --git a/typescript/core/action/action.ts b/typescript/core/action/action.ts new file mode 100644 index 0000000000..a7b2989820 --- /dev/null +++ b/typescript/core/action/action.ts @@ -0,0 +1,11 @@ +import { _OB } from "../ob"; + +export interface _Action extends _OB { + actionPerformed(src: any, tar: any, callback: Function): void; + + actionBack(tar: any, src: any, callback: Function): void; +} + +export interface _ActionFactory { + createAction(key: string, options: any): _Action; +} \ No newline at end of file diff --git a/typescript/core/behavior/behavior.highlight.ts b/typescript/core/behavior/behavior.highlight.ts new file mode 100644 index 0000000000..6f9f328994 --- /dev/null +++ b/typescript/core/behavior/behavior.highlight.ts @@ -0,0 +1,4 @@ +import { _Behavior } from "./behavior"; +export interface _HighlightBehavior extends _Behavior { + +} \ No newline at end of file diff --git a/typescript/core/behavior/behavior.redmark.ts b/typescript/core/behavior/behavior.redmark.ts new file mode 100644 index 0000000000..2bdc3f9559 --- /dev/null +++ b/typescript/core/behavior/behavior.redmark.ts @@ -0,0 +1,4 @@ +import { _Behavior } from "./behavior"; +export interface _RedMarkBehavior extends _Behavior { + +} \ No newline at end of file diff --git a/typescript/core/behavior/behavior.ts b/typescript/core/behavior/behavior.ts new file mode 100644 index 0000000000..9af876f036 --- /dev/null +++ b/typescript/core/behavior/behavior.ts @@ -0,0 +1,9 @@ +import { _OB } from "../ob"; + +export interface _Behavior extends _OB { + doBehavior(items: any[]): void; +} + +export interface _BehaviorFactory { + createBehavior(key: string, options: any): _Behavior; +} \ No newline at end of file diff --git a/typescript/index.ts b/typescript/index.ts index 995273d230..18b9c66170 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -6,6 +6,12 @@ import { _Single } from "./base/single/single"; import { _base } from "./core/base"; import { _BasicButton } from "./base/single/button/button.basic"; import { _Trigger } from "./base/single/trigger/trigger"; +import { _Action, _ActionFactory } from "./core/action/action"; +import { _ShowAction } from "./core/action/action.show"; +import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior"; +import { _HighlightBehavior } from "./core/behavior/behavior.highlight"; +import { _RedMarkBehavior } from "./core/behavior/behavior.redmark"; + type Constructor = T & { new(config: any): T; @@ -19,4 +25,11 @@ export interface _BI extends _func, _i18n, _base { Single: Constructor<_Single>; BasicButton: Constructor<_BasicButton>; Trigger: Constructor<_Trigger>; + Action: Constructor<_Action>; + ActionFactory: Constructor<_ActionFactory>; + ShowAction: Constructor<_ShowAction>; + Behavior: Constructor<_Behavior>; + BehaviorFactory: Constructor<_BehaviorFactory>; + HighlightBehavior: Constructor<_HighlightBehavior>; + RedMarkBehavior: Constructor<_RedMarkBehavior>; }