Browse Source

Pull request #1704: KERNEL-6569 去除ClassConstructor

Merge in VISUAL/fineui from ~YOUKI/fineui:master to master

* commit 'f193c2ab1113c2f3b2187f0450d8f8b5cbd444c5':
  KERNEL-6569 refactor: 去除ClassConstructor
master
Youki 4 years ago
parent
commit
5fec5a0e6c
  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";
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;
}
import { Widget } from "../../core/widget";
export declare class Combo extends Widget {
static xtype: string;

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

@ -1,50 +1,4 @@
import { _Widget, 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;
}
import { Widget } from "../../core/widget";
export declare class ButtonGroup extends Widget {
static xtype: string;

20
typescript/base/combination/tab.ts

@ -1,22 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../core/widget";
export declare class Tab extends Widget {
static xtype: string;

14
typescript/base/pane.ts

@ -1,16 +1,4 @@
import { _Widget, 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;
}
import { Widget } from "../core/widget";
export declare class Pane extends Widget {
static EVENT_LOADED: string;

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

@ -1,44 +1,4 @@
import { Single, _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;
}
import { Single } from "../single";
export declare class BasicButton extends Single {
static EVENT_CHANGE: string;

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

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

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

@ -1,20 +1,4 @@
import { BasicButton, _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;
}
import { BasicButton } from "../button.basic";
export declare class TextButton extends BasicButton {
static xtype: string;

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

@ -1,19 +1,5 @@
import { IconLabel, Label } from "../../../..";
import { BasicButton, _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;
}
import { BasicButton } from "../button.basic";
export declare class Button extends BasicButton {
static xtype: string;

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

@ -1,18 +1,4 @@
import { BasicButton, _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;
}
import { BasicButton } from "../button.basic";
export declare class IconTextItem extends BasicButton {
static xtype: string;

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

@ -1,59 +1,4 @@
import { _Single, 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;
}
import { Single } from "../single";
export declare class Editor extends Single {
static xtype: string;

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

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

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

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

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

@ -1,48 +1,4 @@
import { _Single, 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;
}
import { Single } from "../single";
export declare class Input extends Single {
static xtype: string;

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

@ -1,20 +1,4 @@
import { _Single, 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;
}
import { Single } from "../single";
export declare class AbstractLabel extends Single {
static xtype: string;

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

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

30
typescript/base/single/single.ts

@ -1,32 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../core/widget";
interface SingleOpt {
container?: any, belowMouse?: boolean

16
typescript/base/single/text.ts

@ -1,18 +1,4 @@
import { _Single, 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;
}
import { Single } from "./single";
export declare class Text extends Single {
static xtype: string;

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

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

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

@ -1,16 +1,4 @@
import { Single, _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;
}
import { Single } from "../../../base/single/single";
export declare class IconChangeButton extends Single {
static xtype: string;

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

@ -1,18 +1,4 @@
import { _BasicButton, 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;
}
import { BasicButton } from "../../base/single/button/button.basic";
export declare class MultiSelectItem extends BasicButton {
static xtype: string;

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

@ -1,24 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../../core/widget";
export declare class BubbleCombo extends Widget {
static xtype: string;

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

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

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

@ -1,17 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../../core/widget";
export declare class SearchTextValueCombo extends Widget {
static xtype: string;

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

@ -1,58 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../core/widget";
export declare class SignEditor extends Widget {
static xtype: string;

6
typescript/case/loading/loading_pane.ts

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

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

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

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

@ -1,40 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../core/widget";
export declare class AbstractTreeValueChooser extends Widget {
_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 {
}

12
typescript/core/action/action.ts

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

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

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

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

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

10
typescript/core/behavior/behavior.ts

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

34
typescript/core/wrapper/layout.ts

@ -1,36 +1,4 @@
import { _Widget, 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;
}
import { Widget } from "../widget";
export declare class Layout extends Widget {
static xtype: string;

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

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

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

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

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

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

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

@ -1,24 +1,4 @@
import { _Layout, 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;
}
import { Layout } from "../layout";
export declare class HTapeLayout extends Layout {
static xtype: string;

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

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

182
typescript/index.ts

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

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

@ -1,18 +1,4 @@
import { Widget, _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;
}
import { Widget } from "../../core/widget";
export declare class DownListCombo extends Widget {
static xtype: string;

Loading…
Cancel
Save