Browse Source

KERNEL-6533 refactor: 声明补充

es6
Kira 4 years ago
parent
commit
5743e4ef47
  1. 15
      typescript/base/single/button/listitem/icontextitem.ts
  2. 9
      typescript/base/single/input/checkbox.ts
  3. 47
      typescript/base/single/input/input.ts
  4. 6
      typescript/case/button/switch.ts
  5. 13
      typescript/case/combo/searchtextvaluecombo/combo.searchtextvalue.ts
  6. 56
      typescript/case/editor/editor.shelter.ts
  7. 5
      typescript/core/wrapper/layout/layout.horizontal.ts
  8. 24
      typescript/index.ts
  9. 8
      typescript/widget/textvaluedownlistcombo/combo.textvaluedownlist.ts

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

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

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

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

47
typescript/base/single/input/input.ts

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

6
typescript/case/button/switch.ts

@ -0,0 +1,6 @@
import { BasicButton } from "../../base/single/button/button.basic";
export declare class Switch extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
}

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

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

56
typescript/case/editor/editor.shelter.ts

@ -0,0 +1,56 @@
import { Widget } from "../../core/widget";
export declare class ShelterEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
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;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
isValid(): boolean;
getLastValidValue(): string;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}

5
typescript/core/wrapper/layout/layout.horizontal.ts

@ -0,0 +1,5 @@
import { Layout } from "../layout";
export declare class HorizontalLayout extends Layout {
static xtype: string;
}

24
typescript/index.ts

@ -6,11 +6,11 @@ import { _BasicButton, _BasicButtonStatic, BasicButton } from "./base/single/but
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, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
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, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input";
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";
@ -20,7 +20,7 @@ import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./
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, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { SearchTextValueCombo, _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { _SignEditor, _SignEditorStatic, SignEditor } from "./case/editor/editor.sign";
import { _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
@ -115,6 +115,10 @@ import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multila
import { MultiLayerSelectTreeCombo } from "./widget/multilayerselecttree/multilayerselecttree.combo";
import { MultiTreeListCombo } from "./widget/multitree/multi.tree.list.combo";
import { MultiTreeInsertCombo } from "./widget/multitree/multi.tree.insert.combo";
import { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.textvaluedownlist";
import { Switch } from "./case/button/switch";
import { HorizontalLayout } from "./core/wrapper/layout/layout.horizontal";
import { ShelterEditor } from "./case/editor/editor.shelter";
type ClassConstructor<T extends {}> = T & {
@ -243,6 +247,10 @@ export interface BI extends _func, _i18n, _base, _inject {
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
TextValueDownListCombo: typeof TextValueDownListCombo;
Switch: typeof Switch;
HorizontalLayout: typeof HorizontalLayout;
ShelterEditor: typeof ShelterEditor;
}
export default {
@ -349,4 +357,12 @@ export {
DynamicYearMonthCombo,
TimeCombo,
Iframe,
TextValueDownListCombo,
SearchTextValueCombo,
IconTextItem,
Checkbox,
Input,
Switch,
HorizontalLayout,
ShelterEditor,
};

8
typescript/widget/textvaluedownlistcombo/combo.textvaluedownlist.ts

@ -0,0 +1,8 @@
import { Widget } from "../../core/widget";
export declare class TextValueDownListCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue(): [any];
}
Loading…
Cancel
Save