Browse Source

KERNEL-6569 refactor: 去除ClassConstructor

es6
youki 4 years ago
parent
commit
f193c2ab11
  1. 34
      typescript/base/combination/combo.ts
  2. 48
      typescript/base/combination/group.button.ts
  3. 20
      typescript/base/combination/tab.ts
  4. 14
      typescript/base/pane.ts
  5. 42
      typescript/base/single/button/button.basic.ts
  6. 12
      typescript/base/single/button/button.node.ts
  7. 18
      typescript/base/single/button/buttons/button.text.ts
  8. 16
      typescript/base/single/button/buttons/button.ts
  9. 16
      typescript/base/single/button/listitem/icontextitem.ts
  10. 57
      typescript/base/single/editor/editor.ts
  11. 12
      typescript/base/single/iframe/iframe.ts
  12. 10
      typescript/base/single/input/checkbox.ts
  13. 46
      typescript/base/single/input/input.ts
  14. 18
      typescript/base/single/label/abstract.label.ts
  15. 8
      typescript/base/single/label/label.ts
  16. 30
      typescript/base/single/single.ts
  17. 16
      typescript/base/single/text.ts
  18. 8
      typescript/base/single/trigger/trigger.ts
  19. 14
      typescript/case/button/icon/icon.change.ts
  20. 16
      typescript/case/button/item.multiselect.ts
  21. 22
      typescript/case/combo/bubblecombo/combo.bubble.ts
  22. 10
      typescript/case/combo/combo.textvalue.ts
  23. 15
      typescript/case/combo/searchtextvaluecombo/combo.searchtextvalue.ts
  24. 56
      typescript/case/editor/editor.sign.ts
  25. 6
      typescript/case/loading/loading_pane.ts
  26. 4
      typescript/component/treevaluechooser/abstract.treevaluechooser.list.ts
  27. 38
      typescript/component/treevaluechooser/abstract.treevaluechooser.ts
  28. 5
      typescript/core/action/action.show.ts
  29. 12
      typescript/core/action/action.ts
  30. 5
      typescript/core/behavior/behavior.highlight.ts
  31. 5
      typescript/core/behavior/behavior.redmark.ts
  32. 10
      typescript/core/behavior/behavior.ts
  33. 34
      typescript/core/wrapper/layout.ts
  34. 8
      typescript/core/wrapper/layout/adapt/adapt.leftvertical.ts
  35. 10
      typescript/core/wrapper/layout/layout.absolute.ts
  36. 8
      typescript/core/wrapper/layout/layout.default.ts
  37. 22
      typescript/core/wrapper/layout/layout.tape.ts
  38. 8
      typescript/core/wrapper/layout/layout.vertical.ts
  39. 182
      typescript/index.ts
  40. 16
      typescript/widget/downlist/combo.downlist.ts

34
typescript/base/combination/combo.ts

@ -1,36 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _Combo extends _Widget {
populate(...args: any[]): void;
_setEnable(v: boolean): void;
isViewVisible(): boolean;
showView(e?: Event): void;
hideView(): void;
getView(): any;
getPopupPosition(): any;
adjustHeight(e?: MouseEvent): void;
toggle(): void;
}
export interface _ComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}
export declare class Combo extends Widget { export declare class Combo extends Widget {
static xtype: string; static xtype: string;

48
typescript/base/combination/group.button.ts

@ -1,50 +1,4 @@
import { _Widget, Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget {
prependItems<T>(items: T[]): void;
addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void;
removeItems(values: any): void;
populate(items?: any, ...args: any[]): void;
setNotSelectedValue(v: any): void;
getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void;
getAllButtons<T>(): T[];
getAllLeaves<T>(): T[];
getSelectedButtons<T>(): T[];
getNotSelectedButtons<T>(): T[];
getIndexByValue(value: any): number;
getNodeById(id: any): any;
getNodeByValue(value: any): any;
getValue<T>(): T[];
}
export interface _ButtonGroupChooseType {
CHOOSE_TYPE_SINGLE: number;
CHOOSE_TYPE_MULTI: number;
CHOOSE_TYPE_ALL: number;
CHOOSE_TYPE_NONE: number;
CHOOSE_TYPE_DEFAULT: number;
}
export interface _ButtonGroupStatic {
EVENT_CHANGE: string;
}
export declare class ButtonGroup extends Widget { export declare class ButtonGroup extends Widget {
static xtype: string; static xtype: string;

20
typescript/base/combination/tab.ts

@ -1,22 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _Tab extends _Widget {
setSelect(v: string | number): void;
removeTab(v: string | number): void;
getSelect(): string | number;
getSelectedTab(): any;
getTab(v: string | number): any;
populate(): void;
}
export interface _TabStatic {
EVENT_CHANGE: string;
}
export declare class Tab extends Widget { export declare class Tab extends Widget {
static xtype: string; static xtype: string;

14
typescript/base/pane.ts

@ -1,16 +1,4 @@
import { _Widget, Widget } from "../core/widget"; import { Widget } from "../core/widget";
export interface _Pane extends _Widget {
_assertTip(..._args: any[]): void;
loading(..._args: any[]): void;
loaded(..._args: any[]): void;
check(..._args: any[]): void;
populate(...args: any[]): void;
}
export interface _PaneStatic {
EVENT_LOADED: string;
}
export declare class Pane extends Widget { export declare class Pane extends Widget {
static EVENT_LOADED: string; static EVENT_LOADED: string;

42
typescript/base/single/button/button.basic.ts

@ -1,44 +1,4 @@
import { Single, _Single } from "../single"; import { Single } from "../single";
export interface _BasicButton extends _Single {
_createShadow(): void;
bindEvent(): void;
_trigger(e: Event): void;
_doClick(e: Event): void;
beforeClick(): void;
doClick(): void;
handle(): _BasicButton;
hover(): void;
dishover(): void;
setSelected(b: boolean): void;
isSelected(): boolean;
isOnce(): boolean;
isForceSelected(): boolean;
isForceNotSelected(): boolean;
isDisableSelected(): boolean;
setText(v: string): void;
getText(): string;
}
export interface _BasicButtonStatic {
EVENT_CHANGE: string;
}
export declare class BasicButton extends Single { export declare class BasicButton extends Single {
static EVENT_CHANGE: string; static EVENT_CHANGE: string;

12
typescript/base/single/button/button.node.ts

@ -1,14 +1,4 @@
import { _BasicButton, BasicButton } from "./button.basic"; import { BasicButton } from "./button.basic";
export interface _NodeButton extends _BasicButton {
isOpened(): boolean;
setOpened(b: boolean): void;
triggerCollapse(): void;
triggerExpand(): void;
}
export declare class NodeButton extends BasicButton { export declare class NodeButton extends BasicButton {
isOpened(): boolean; isOpened(): boolean;

18
typescript/base/single/button/buttons/button.text.ts

@ -1,20 +1,4 @@
import { BasicButton, _BasicButton } from "../button.basic"; import { BasicButton } from "../button.basic";
export interface _TextButton extends _BasicButton {
setStyle(style: any): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}
export interface _TextButtonStatic {
EVENT_CHANGE: string;
}
export declare class TextButton extends BasicButton { export declare class TextButton extends BasicButton {
static xtype: string; static xtype: string;

16
typescript/base/single/button/buttons/button.ts

@ -1,19 +1,5 @@
import { IconLabel, Label } from "../../../.."; import { IconLabel, Label } from "../../../..";
import { BasicButton, _BasicButton } from "../button.basic"; import { BasicButton } from "../button.basic";
export interface _Button extends _BasicButton {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}
export interface _ButtonStatic {
EVENT_CHANGE: string;
}
export declare class Button extends BasicButton { export declare class Button extends BasicButton {
static xtype: string; static xtype: string;

16
typescript/base/single/button/listitem/icontextitem.ts

@ -1,18 +1,4 @@
import { BasicButton, _BasicButton } from "../button.basic"; import { BasicButton } from "../button.basic";
export interface _IconTextItem extends _BasicButton {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}
export interface _IconTextItemStatic {
EVENT_CHANGE: string;
}
export declare class IconTextItem extends BasicButton { export declare class IconTextItem extends BasicButton {
static xtype: string; static xtype: string;

57
typescript/base/single/editor/editor.ts

@ -1,59 +1,4 @@
import { _Single, Single } from "../single"; import { Single } from "../single";
export interface _Editor extends _Single {
setErrorText(v: string): void;
getErrorText(): string;
setWaterMark(v: string): void;
disableError(): void;
enableError(): void;
disableWaterMark(): void;
enableWaterMark(): void;
focus(): void;
blur(): void;
selectAll(): void;
onKeyDown(keyCode: number): void;
getValue(): string;
getLastValidValue(): string;
getLastChangedValue(): string;
isEditing(): boolean;
isValid(): boolean;
}
export interface _EditorStatic {
EVENT_CHANGE: string;
EVENT_FOCUS: string;
EVENT_BLUR: string;
EVENT_CLICK: string;
EVENT_KEY_DOWN: string;
EVENT_SPACE: string;
EVENT_BACKSPACE: string;
EVENT_START: string;
EVENT_PAUSE: string;
EVENT_STOP: string;
EVENT_CONFIRM: string;
EVENT_CHANGE_CONFIRM: string;
EVENT_VALID: string;
EVENT_ERROR: string;
EVENT_ENTER: string;
EVENT_RESTRICT: string;
EVENT_REMOVE: string;
EVENT_EMPTY: string;
}
export declare class Editor extends Single { export declare class Editor extends Single {
static xtype: string; static xtype: string;

12
typescript/base/single/iframe/iframe.ts

@ -1,14 +1,4 @@
import { Single, _Single } from "../single"; import { Single } from "../single";
export interface _Iframe extends _Single {
setSrc(v: string): void;
getSrc(): string;
setName(v: string): void;
getName(): string;
}
export declare class Iframe extends Single { export declare class Iframe extends Single {
static xtype: string; static xtype: string;

10
typescript/base/single/input/checkbox.ts

@ -1,12 +1,4 @@
import { BasicButton, _BasicButton } from "../button/button.basic"; import { BasicButton } from "../button/button.basic";
export interface _Checkbox extends _BasicButton {
_setEnable(enable: boolean): void;
}
export interface _CheckboxStatic {
EVENT_CHANGE: string;
}
export declare class Checkbox extends BasicButton { export declare class Checkbox extends BasicButton {
static xtype: string; static xtype: string;

46
typescript/base/single/input/input.ts

@ -1,48 +1,4 @@
import { _Single, Single } from "../single"; import { Single } from "../single";
export interface _Input extends _Single {
onClick(): void;
onKeyDown(keyCode: number): void;
focus(): void;
blur(): void;
selectAll(): void;
setValue(v: string): void;
getValue(): string;
isEditing(): boolean;
getLastValidValue(): string;
getLastChangedValue(): string;
}
export interface _InputStatic {
EVENT_CHANGE: string;
EVENT_FOCUS: string;
EVENT_CLICK: string;
EVENT_BLUR: string;
EVENT_KEY_DOWN: string;
EVENT_QUICK_DOWN: string;
EVENT_SPACE: string;
EVENT_BACKSPACE: string;
EVENT_START: string;
EVENT_PAUSE: string;
EVENT_STOP: string;
EVENT_CHANGE_CONFIRM: string;
EVENT_CONFIRM: string;
EVENT_REMOVE: string;
EVENT_EMPTY: string;
EVENT_VALID: string;
EVENT_ERROR: string;
EVENT_ENTER: string;
EVENT_RESTRICT: string;
}
export declare class Input extends Single { export declare class Input extends Single {
static xtype: string; static xtype: string;

18
typescript/base/single/label/abstract.label.ts

@ -1,20 +1,4 @@
import { _Single, Single } from "../single"; import { Single } from "../single";
export interface _AbstractLabel extends _Single {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setText(v: string): void;
getText(): string;
setStyle(css: any): void;
}
export declare class AbstractLabel extends Single { export declare class AbstractLabel extends Single {
static xtype: string; static xtype: string;

8
typescript/base/single/label/label.ts

@ -1,10 +1,4 @@
import { _AbstractLabel, AbstractLabel } from "./abstract.label"; import { AbstractLabel } from "./abstract.label";
export interface _Label extends _AbstractLabel {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void
}
export declare class Label extends AbstractLabel { export declare class Label extends AbstractLabel {
static xtype: string; static xtype: string;

30
typescript/base/single/single.ts

@ -1,32 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _Single extends _Widget {
_showToolTip(e: Event, opt?: SingleOpt): void;
_hideTooltip(): void;
_clearTimeOut(): void;
enableHover(opt?: SingleOpt): void;
disabledHover(): void;
setTitle(title: string | Function, opt?: SingleOpt): void;
setWarningTitle(title: string, opt?: SingleOpt): void;
setTipType(v: string): void;
getTipType(): string;
isReadOnly(): boolean;
getTitle(): string;
getWarningTitle(): string;
populate(..._args: any[]): void;
}
interface SingleOpt { interface SingleOpt {
container?: any, belowMouse?: boolean container?: any, belowMouse?: boolean

16
typescript/base/single/text.ts

@ -1,18 +1,4 @@
import { _Single, Single } from "./single"; import { Single } from "./single";
export interface _Text extends _Single {
doRedMark(keyword: string): void;
unRedMark(): void;
doHighLight(): void;
unHighLight(): void;
setStyle(css: any): void;
setText(v: string): void;
}
export declare class Text extends Single { export declare class Text extends Single {
static xtype: string; static xtype: string;

8
typescript/base/single/trigger/trigger.ts

@ -1,10 +1,4 @@
import { Single, _Single } from "../single"; import { Single } from "../single";
export interface _Trigger extends _Single {
setKey(..._args: any[]): void;
getKey(): string;
}
export declare class Trigger extends Single { export declare class Trigger extends Single {
setKey(..._args: any[]): void; setKey(..._args: any[]): void;

14
typescript/case/button/icon/icon.change.ts

@ -1,16 +1,4 @@
import { Single, _Single } from "../../../base/single/single"; import { Single } from "../../../base/single/single";
export interface _IconChangeButton extends _Single {
isSelected(): boolean;
setSelected(v: boolean): void;
setIcon(cls: string): void;
}
export interface _IconChangeButtonStatic {
EVENT_CHANGE: string;
}
export declare class IconChangeButton extends Single { export declare class IconChangeButton extends Single {
static xtype: string; static xtype: string;

16
typescript/case/button/item.multiselect.ts

@ -1,18 +1,4 @@
import { _BasicButton, BasicButton } from "../../base/single/button/button.basic"; import { BasicButton } from "../../base/single/button/button.basic";
export interface _MultiSelectItem extends _BasicButton {
doClick(...args: any[]): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
setSelected(v: boolean): void;
}
export interface _MultiSelectItemStatic {
EVENT_CHANGE: string;
}
export declare class MultiSelectItem extends BasicButton { export declare class MultiSelectItem extends BasicButton {
static xtype: string; static xtype: string;

22
typescript/case/combo/bubblecombo/combo.bubble.ts

@ -1,24 +1,4 @@
import { Widget, _Widget } from "../../../core/widget"; import { Widget } from "../../../core/widget";
export interface _BubbleCombo extends _Widget {
hideView(): void;
showView(): void;
isViewVisible(): boolean;
}
export interface _BubbleComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}
export declare class BubbleCombo extends Widget { export declare class BubbleCombo extends Widget {
static xtype: string; static xtype: string;

10
typescript/case/combo/combo.textvalue.ts

@ -1,12 +1,4 @@
import { _Widget, Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _TextValueCombo extends _Widget {
populate(items: any): void;
}
export interface _TextValueComboStatic {
EVENT_CHANGE: string;
}
export declare class TextValueCombo extends Widget { export declare class TextValueCombo extends Widget {
static xtype: string; static xtype: string;

15
typescript/case/combo/searchtextvaluecombo/combo.searchtextvalue.ts

@ -1,17 +1,4 @@
import { Widget, _Widget } from "../../../core/widget"; import { Widget } from "../../../core/widget";
export interface _SearchTextValueCombo extends _Widget {
populate(items: any[]): void;
setValue(v: any): void;
getValue<T>(): T[];
}
export interface _SearchTextValueComboStatic {
EVENT_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
export declare class SearchTextValueCombo extends Widget { export declare class SearchTextValueCombo extends Widget {
static xtype: string; static xtype: string;

56
typescript/case/editor/editor.sign.ts

@ -1,58 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _SignEditor extends _Widget {
setTitle(v: string | Function): void;
setWarningTitle(v: string | Function): void;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
isValid(): boolean;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}
export interface _SignEditorStatic {
EVENT_CHANGE: string;
EVENT_FOCUS: string;
EVENT_BLUR: string;
EVENT_CLICK: string;
EVENT_KEY_DOWN: string;
EVENT_CLICK_LABEL: string;
EVENT_START: string;
EVENT_PAUSE: string;
EVENT_STOP: string;
EVENT_CONFIRM: string;
EVENT_CHANGE_CONFIRM: string;
EVENT_VALID: string;
EVENT_ERROR: string;
EVENT_ENTER: string;
EVENT_RESTRICT: string;
EVENT_SPACE: string;
EVENT_EMPTY: string;
}
export declare class SignEditor extends Widget { export declare class SignEditor extends Widget {
static xtype: string; static xtype: string;

6
typescript/case/loading/loading_pane.ts

@ -1,8 +1,4 @@
import { _Pane, Pane } from "../../base/pane"; import { Pane } from "../../base/pane";
export interface _LoadingPane extends _Pane {
__loaded: (...args: any[]) => void;
}
export declare class LoadingPane extends Pane { export declare class LoadingPane extends Pane {
__loaded: (...args: any[]) => void; __loaded: (...args: any[]) => void;

4
typescript/component/treevaluechooser/abstract.treevaluechooser.list.ts

@ -1,5 +1,3 @@
import { AbstractTreeValueChooser, _AbstractTreeValueChooser } from "./abstract.treevaluechooser"; import { AbstractTreeValueChooser } from "./abstract.treevaluechooser";
export interface _AbstractListTreeValueChooser extends _AbstractTreeValueChooser {}
export declare class AbstractListTreeValueChooser extends AbstractTreeValueChooser {} export declare class AbstractListTreeValueChooser extends AbstractTreeValueChooser {}

38
typescript/component/treevaluechooser/abstract.treevaluechooser.ts

@ -1,40 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _AbstractTreeValueChooser extends _Widget {
_valueFormatter: (v: string) => string;
_initData: (items: any[]) => void;
_itemsCreator: (options: any, callback: Function) => void;
_reqDisplayTreeNode: (options: any, callback: Function) => void;
_reqSelectedTreeNode: (options: any, callback: Function) => void;
_reqAdjustTreeNode: (options: any, callback: Function) => void;
_reqInitTreeNode: (options: any, callback: Function) => void;
_reqTreeNode: (options: any, callback: Function) => void;
_getAddedValueNode: (parentValues: any[], selectedValues: any) => any[];
_getNode: (selectedValues: any, parentValues: any[]) => any;
_deleteNode: (selectedValues: any, values: any[]) => void;
_buildTree: (jo: any, values: any) => void;
_isMatch: (parentValues: any, value: any, keyword: any) => boolean;
_getTreeNode: (parentValues: any, v: any) => any;
_getChildren: (parentValues: any) => any;
_getAllChildren: (parentValues: any) => any;
_getChildCount: (parentValues: any) => number;
}
export declare class AbstractTreeValueChooser extends Widget { export declare class AbstractTreeValueChooser extends Widget {
_valueFormatter: (v: string) => string; _valueFormatter: (v: string) => string;

5
typescript/core/action/action.show.ts

@ -1,8 +1,5 @@
import { _Action, Action } from "./action"; import { Action } from "./action";
export interface _ShowAction extends _Action {
}
export declare class ShowAction extends Action { export declare class ShowAction extends Action {
} }

12
typescript/core/action/action.ts

@ -1,14 +1,4 @@
import { _OB, OB } from "../ob"; 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;
}
export declare class Action extends OB { export declare class Action extends OB {
actionPerformed(src: any, tar: any, callback: Function): void; actionPerformed(src: any, tar: any, callback: Function): void;

5
typescript/core/behavior/behavior.highlight.ts

@ -1,7 +1,4 @@
import { _Behavior, Behavior } from "./behavior"; import { Behavior } from "./behavior";
export interface _HighlightBehavior extends _Behavior {
}
export declare class HighlightBehavior extends Behavior { export declare class HighlightBehavior extends Behavior {

5
typescript/core/behavior/behavior.redmark.ts

@ -1,7 +1,4 @@
import { _Behavior, Behavior } from "./behavior"; import { Behavior } from "./behavior";
export interface _RedMarkBehavior extends _Behavior {
}
export declare class RedMarkBehavior extends Behavior { export declare class RedMarkBehavior extends Behavior {

10
typescript/core/behavior/behavior.ts

@ -1,12 +1,4 @@
import { _OB, OB } from "../ob"; import { OB } from "../ob";
export interface _Behavior extends _OB {
doBehavior(items: any[]): void;
}
export interface _BehaviorFactory {
createBehavior(key: string, options: any): _Behavior;
}
export declare class Behavior extends OB { export declare class Behavior extends OB {
doBehavior(items: any[]): void; doBehavior(items: any[]): void;

34
typescript/core/wrapper/layout.ts

@ -1,36 +1,4 @@
import { _Widget, Widget } from "../widget"; import { Widget } from "../widget";
export interface _Layout extends _Widget {
addItem(item: any): any;
prependItem(item: any): any;
addItemAt(index: string, item: any): any;
removeItemAt(indexes: any): void;
shouldUpdateItem(index: number, item: any): boolean;
updateItemAt(index: number, item: any): any;
addItems<T>(items: T[], context?: any): void;
prependItems<T>(items: T[], context?: any): void;
getValue<T>(): T[];
setText(v: string): void;
update(opt: any): any;
stroke<T>(items: T[]): void;
removeWidget(nameOrWidget: any): void;
populate<T>(items?: T[]): void;
resize(): void;
}
export declare class Layout extends Widget { export declare class Layout extends Widget {
static xtype: string; static xtype: string;

8
typescript/core/wrapper/layout/adapt/adapt.leftvertical.ts

@ -1,10 +1,4 @@
import { Layout, _Layout } from "../../layout"; import { Layout } from "../../layout";
export interface _LeftVerticalAdapt extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class LeftVerticalAdaptLayout extends Layout { export declare class LeftVerticalAdaptLayout extends Layout {
static xtype: string; static xtype: string;

10
typescript/core/wrapper/layout/layout.absolute.ts

@ -1,12 +1,4 @@
import { Layout, _Layout } from "../layout"; import { Layout } from "../layout";
export interface _AbsoluteLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
populate<T>(items?: T[]): void;
}
export declare class AbsoluteLayout extends Layout { export declare class AbsoluteLayout extends Layout {
static xtype: string; static xtype: string;

8
typescript/core/wrapper/layout/layout.default.ts

@ -1,10 +1,4 @@
import { Layout, _Layout } from "../layout"; import { Layout } from "../layout";
export interface _DefaultLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class DefaultLayout extends Layout { export declare class DefaultLayout extends Layout {
static xtype: string; static xtype: string;

22
typescript/core/wrapper/layout/layout.tape.ts

@ -1,24 +1,4 @@
import { _Layout, Layout } from "../layout"; import { Layout } from "../layout";
export interface _HTapeLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
update(): any;
populate<T>(items?: T[]): void;
}
export interface _VTapeLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
update(): void;
populate<T>(items?: T[]): void;
}
export declare class HTapeLayout extends Layout { export declare class HTapeLayout extends Layout {
static xtype: string; static xtype: string;

8
typescript/core/wrapper/layout/layout.vertical.ts

@ -1,10 +1,4 @@
import { Layout, _Layout } from "../layout"; import { Layout } from "../layout";
export interface _VerticalLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class VerticalLayout extends Layout { export declare class VerticalLayout extends Layout {
static xtype: string; static xtype: string;

182
typescript/index.ts

@ -1,53 +1,53 @@
import { Combo, _Combo, _ComboStatic } from "./base/combination/combo"; import { Combo } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic, ButtonGroup } from "./base/combination/group.button"; import { ButtonGroup } from "./base/combination/group.button";
import { _Tab, _TabStatic, Tab } from "./base/combination/tab"; import { Tab } from "./base/combination/tab";
import { _Pane, _PaneStatic, Pane } from "./base/pane"; import { Pane } from "./base/pane";
import { _BasicButton, _BasicButtonStatic, BasicButton } from "./base/single/button/button.basic"; import { BasicButton } from "./base/single/button/button.basic";
import { _NodeButton, NodeButton } from "./base/single/button/button.node"; import { NodeButton } from "./base/single/button/button.node";
import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/button"; import { Button } from "./base/single/button/buttons/button";
import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text"; import { TextButton } from "./base/single/button/buttons/button.text";
import { IconTextItem, _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem"; import { IconTextItem } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor"; import { Editor } from "./base/single/editor/editor";
import { Iframe, _Iframe } from "./base/single/iframe/iframe"; import { Iframe } from "./base/single/iframe/iframe";
import { Checkbox, _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox"; import { Checkbox } from "./base/single/input/checkbox";
import { Input, _Input, _InputStatic } from "./base/single/input/input"; import { Input } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label"; import { AbstractLabel } from "./base/single/label/abstract.label";
import { _Label, Label } from "./base/single/label/label"; import { Label } from "./base/single/label/label";
import { _Single, Single } from "./base/single/single"; import { Single } from "./base/single/single";
import { _Text, Text } from "./base/single/text"; import { Text } from "./base/single/text";
import { Trigger, _Trigger } from "./base/single/trigger/trigger"; import { Trigger } from "./base/single/trigger/trigger";
import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change"; import { IconChangeButton } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic, MultiSelectItem } from "./case/button/item.multiselect"; import { MultiSelectItem } from "./case/button/item.multiselect";
import { BubbleCombo, _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble"; import { BubbleCombo } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic, TextValueCombo } from "./case/combo/combo.textvalue"; import { TextValueCombo } from "./case/combo/combo.textvalue";
import { SearchTextValueCombo, _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue"; import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { _SignEditor, _SignEditorStatic, SignEditor } from "./case/editor/editor.sign"; import { SignEditor } from "./case/editor/editor.sign";
import { LoadingPane, _LoadingPane } from "./case/loading/loading_pane"; import { LoadingPane } from "./case/loading/loading_pane";
import { AllValueMultiTextValueCombo, _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo"; import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _AbstractTreeValueChooser, AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser"; import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser, AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list"; import { AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { Action, ActionFactory, _Action, _ActionFactory } from "./core/action/action"; import { Action, ActionFactory } from "./core/action/action";
import { ShowAction, _ShowAction } from "./core/action/action.show"; import { ShowAction } from "./core/action/action.show";
import { _base } from "./core/base"; import { _base } from "./core/base";
import { Behavior, BehaviorFactory, _Behavior, _BehaviorFactory } from "./core/behavior/behavior"; import { Behavior, BehaviorFactory } from "./core/behavior/behavior";
import { HighlightBehavior, _HighlightBehavior } from "./core/behavior/behavior.highlight"; import { HighlightBehavior } from "./core/behavior/behavior.highlight";
import { RedMarkBehavior, _RedMarkBehavior } from "./core/behavior/behavior.redmark"; import { RedMarkBehavior } from "./core/behavior/behavior.redmark";
import * as decorator from "./core/decorator/decorator"; import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func"; import { _func } from "./core/func";
import { _i18n } from "./core/i18n"; import { _i18n } from "./core/i18n";
import { _Plugin } from "./core/plugin"; import { _Plugin } from "./core/plugin";
import { _var } from "./core/var"; import { _var } from "./core/var";
import { OB, _OB } from "./core/ob"; import { OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget"; import { Widget } from "./core/widget";
import { _inject } from "./core/inject"; import { _inject } from "./core/inject";
import { Layout, _Layout } from "./core/wrapper/layout"; import { Layout } from "./core/wrapper/layout";
import { AbsoluteLayout, _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute"; import { AbsoluteLayout } from "./core/wrapper/layout/layout.absolute";
import { HTapeLayout, VTapeLayout, _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape"; import { HTapeLayout, VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { VerticalLayout, _VerticalLayout } from "./core/wrapper/layout/layout.vertical"; import { VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { DefaultLayout, _DefaultLayout } from "./core/wrapper/layout/layout.default"; import { DefaultLayout } from "./core/wrapper/layout/layout.default";
import { DownListCombo, _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist"; import { DownListCombo } from "./widget/downlist/combo.downlist";
import { Icon } from "./base/single/icon/icon"; import { Icon } from "./base/single/icon/icon";
import { LeftVerticalAdaptLayout, _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical"; import { LeftVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftvertical";
import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical"; import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem"; import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem";
import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal"; import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal";
@ -143,53 +143,45 @@ import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center'; import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth'; import { DynamicYearMonthPopup } from './widget/yearmonth/popup.yearmonth';
type ClassConstructor<T extends {}> = T & {
new(config: any): T;
(config: any): T;
readonly prototype: T;
readonly xtype: string;
}
export interface BI extends _func, _i18n, _base, _inject, _var { export interface BI extends _func, _i18n, _base, _inject, _var {
OB: ClassConstructor<_OB>; OB: typeof OB;
Plugin: _Plugin; Plugin: _Plugin;
Widget: ClassConstructor<_Widget> & _WidgetStatic; Widget: typeof Widget;
Single: ClassConstructor<_Single>; Single: typeof Single;
BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic; BasicButton: typeof BasicButton;
NodeButton: ClassConstructor<_NodeButton>; NodeButton: typeof NodeButton;
Checkbox: ClassConstructor<_Checkbox> & _CheckboxStatic; Checkbox: typeof Checkbox;
Button: ClassConstructor<_Button> & _ButtonStatic; Button: typeof Button;
TextButton: ClassConstructor<_TextButton> & _TextButtonStatic; TextButton: typeof TextButton;
IconChangeButton: ClassConstructor<_IconChangeButton> & _IconChangeButtonStatic; IconChangeButton: typeof IconChangeButton;
Trigger: ClassConstructor<_Trigger>; Trigger: typeof Trigger;
Action: ClassConstructor<_Action>; Action: typeof Action;
ActionFactory: ClassConstructor<_ActionFactory>; ActionFactory: typeof ActionFactory;
ShowAction: ClassConstructor<_ShowAction>; ShowAction: typeof ShowAction;
Behavior: ClassConstructor<_Behavior>; Behavior: typeof Behavior;
BehaviorFactory: ClassConstructor<_BehaviorFactory>; BehaviorFactory: typeof BehaviorFactory;
HighlightBehavior: ClassConstructor<_HighlightBehavior>; HighlightBehavior: typeof HighlightBehavior;
RedMarkBehavior: ClassConstructor<_RedMarkBehavior>; RedMarkBehavior: typeof RedMarkBehavior;
Pane: ClassConstructor<_Pane> & _PaneStatic; Pane: typeof Pane;
LoadingPane: ClassConstructor<_LoadingPane>; LoadingPane: typeof LoadingPane;
Tab: ClassConstructor<_Tab> & _TabStatic; Tab: typeof Tab;
ButtonGroup: ClassConstructor<_ButtonGroup> & _ButtonGroupChooseType & _ButtonGroupStatic; ButtonGroup: typeof ButtonGroup;
Combo: ClassConstructor<_Combo> & _ComboStatic; Combo: typeof Combo;
TextValueCombo: ClassConstructor<_TextValueCombo> & _TextValueComboStatic; TextValueCombo: typeof TextValueCombo;
BubbleCombo: ClassConstructor<_BubbleCombo> & _BubbleComboStatic; BubbleCombo: typeof BubbleCombo;
AllValueMultiTextValueCombo: ClassConstructor<_AllValueMultiTextValueCombo> & _AllValueMultiTextValueComboStatic; AllValueMultiTextValueCombo: typeof AllValueMultiTextValueCombo;
IconTextItem: ClassConstructor<_IconTextItem> & _IconTextItemStatic; IconTextItem: typeof IconTextItem;
MultiSelectItem: ClassConstructor<_MultiSelectItem> & _MultiSelectItemStatic; MultiSelectItem: typeof MultiSelectItem;
AbstractLabel: ClassConstructor<_AbstractLabel>; AbstractLabel: typeof AbstractLabel;
Label: ClassConstructor<_Label>; Label: typeof Label;
Text: ClassConstructor<_Text>; Text: typeof Text;
Editor: ClassConstructor<_Editor> & _EditorStatic; Editor: typeof Editor;
SignEditor: ClassConstructor<_SignEditor> & _SignEditorStatic; SignEditor: typeof SignEditor;
Layout: ClassConstructor<_Layout>; Layout: typeof Layout;
HTapeLayout: ClassConstructor<_HTapeLayout>; HTapeLayout: typeof HTapeLayout;
VTapeLayout: ClassConstructor<_VTapeLayout>; VTapeLayout: typeof VTapeLayout;
AbstractTreeValueChooser: ClassConstructor<_AbstractTreeValueChooser>; AbstractTreeValueChooser: typeof AbstractTreeValueChooser;
AbstractListTreeValueChooser: ClassConstructor<_AbstractListTreeValueChooser>; AbstractListTreeValueChooser: typeof AbstractListTreeValueChooser;
ListTreeValueChooserInsertCombo: typeof ListTreeValueChooserInsertCombo; ListTreeValueChooserInsertCombo: typeof ListTreeValueChooserInsertCombo;
TreeValueChooserCombo: typeof TreeValueChooserCombo; TreeValueChooserCombo: typeof TreeValueChooserCombo;
TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo; TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo;
@ -204,15 +196,15 @@ export interface BI extends _func, _i18n, _base, _inject, _var {
MultiTreeListCombo: typeof MultiTreeListCombo; MultiTreeListCombo: typeof MultiTreeListCombo;
MultiTreeInsertCombo: typeof MultiTreeInsertCombo; MultiTreeInsertCombo: typeof MultiTreeInsertCombo;
Decorators: typeof decorator; Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic; DownListCombo: typeof DownListCombo;
Iframe: ClassConstructor<_Iframe>; Iframe: typeof Iframe;
AbsoluteLayout: ClassConstructor<_AbsoluteLayout>; AbsoluteLayout: typeof AbsoluteLayout;
VerticalLayout: ClassConstructor<_VerticalLayout>; VerticalLayout: typeof VerticalLayout;
DefaultLayout: ClassConstructor<_DefaultLayout>; DefaultLayout: typeof DefaultLayout;
Input: ClassConstructor<_Input> & _InputStatic; Input: typeof Input;
SearchTextValueCombo: ClassConstructor<_SearchTextValueCombo> & _SearchTextValueComboStatic; SearchTextValueCombo: typeof SearchTextValueCombo;
Icon: typeof Icon; Icon: typeof Icon;
LeftVerticalAdaptLayout: ClassConstructor<_LeftVerticalAdapt>; LeftVerticalAdaptLayout: typeof LeftVerticalAdaptLayout;
LeftRightVerticalAdaptLayout: typeof LeftRightVerticalAdaptLayout; LeftRightVerticalAdaptLayout: typeof LeftRightVerticalAdaptLayout;
IconTextIconItem: typeof IconTextIconItem; IconTextIconItem: typeof IconTextIconItem;
HorizontalAutoLayout: typeof HorizontalAutoLayout; HorizontalAutoLayout: typeof HorizontalAutoLayout;

16
typescript/widget/downlist/combo.downlist.ts

@ -1,18 +1,4 @@
import { Widget, _Widget } from "../../core/widget"; import { Widget } from "../../core/widget";
export interface _DownListCombo extends _Widget {
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
}
export interface _DownListComboStatic {
EVENT_CHANGE: string;
EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
export declare class DownListCombo extends Widget { export declare class DownListCombo extends Widget {
static xtype: string; static xtype: string;

Loading…
Cancel
Save