Browse Source
* commit 'c397ebfeb9bc926b27d6a458a6d76ab834254716': refactor: 数组用泛型表示 KERNEL-3025 refactor: 补充bi.text KERNEL-3025 refactor: 修改部分声明 KERNEL-3025 refactor: fineui中添加一部分基础控件的声明 KERNEL-3025 refactor: 添加buttongroup声明 KERNEL-3025 refactor: 增加bi.tab声明es6
Kira
5 years ago
72 changed files with 837 additions and 159 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,22 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
export interface _Combo extends _Widget { |
||||
populate(items: any): void; |
||||
_setEnable(v: boolean): void; |
||||
isViewVisible(): boolean; |
||||
showView(e?: any): void; |
||||
hideView(): void; |
||||
getView(): any; |
||||
getPopupPosition(): any; |
||||
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; |
||||
} |
@ -0,0 +1,29 @@
|
||||
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): 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; |
||||
} |
@ -0,0 +1,12 @@
|
||||
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; |
||||
} |
@ -0,0 +1,10 @@
|
||||
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; |
||||
} |
@ -0,0 +1,11 @@
|
||||
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; |
||||
} |
@ -0,0 +1,10 @@
|
||||
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; |
||||
} |
@ -0,0 +1,39 @@
|
||||
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; |
||||
} |
@ -0,0 +1,10 @@
|
||||
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; |
||||
} |
@ -0,0 +1,5 @@
|
||||
import { _AbstractLabel } from "./abstract.label"; |
||||
export interface _Label extends _AbstractLabel { |
||||
doRedMark(...args: any): void; |
||||
unRedMark(...args: any): void; |
||||
} |
@ -0,0 +1,9 @@
|
||||
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; |
||||
} |
@ -0,0 +1,9 @@
|
||||
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; |
||||
} |
@ -0,0 +1,10 @@
|
||||
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; |
||||
} |
@ -0,0 +1,17 @@
|
||||
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; |
||||
} |
@ -0,0 +1,7 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
export interface _TextValueCombo extends _Widget { |
||||
populate(items: any): void; |
||||
} |
||||
export interface _TextValueComboStatic { |
||||
EVENT_CHANGE: string; |
||||
} |
@ -0,0 +1,8 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
export interface _AllValueMultiTextValueCombo extends _Widget { |
||||
getValue<T>(): T[]; |
||||
populate(items: any): void; |
||||
} |
||||
export interface _AllValueMultiTextValueComboStatic { |
||||
EVENT_CONFIRM: string; |
||||
} |
@ -0,0 +1,18 @@
|
||||
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; |
||||
} |
@ -0,0 +1,13 @@
|
||||
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; |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,31 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
|
||||
export interface _Combo extends _Widget { |
||||
populate(items: any): void; |
||||
|
||||
_setEnable(v: boolean): void; |
||||
|
||||
isViewVisible(): boolean; |
||||
|
||||
showView(e?: any): void; |
||||
|
||||
hideView(): void; |
||||
|
||||
getView(): any; |
||||
|
||||
getPopupPosition(): any; |
||||
|
||||
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; |
||||
} |
@ -0,0 +1,47 @@
|
||||
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): 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; |
||||
} |
@ -0,0 +1,19 @@
|
||||
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; |
||||
} |
@ -0,0 +1,17 @@
|
||||
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; |
||||
} |
@ -0,0 +1,15 @@
|
||||
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; |
||||
} |
@ -0,0 +1,15 @@
|
||||
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; |
||||
} |
@ -0,0 +1,56 @@
|
||||
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; |
||||
} |
@ -0,0 +1,17 @@
|
||||
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; |
||||
} |
@ -0,0 +1,7 @@
|
||||
import { _AbstractLabel } from "./abstract.label"; |
||||
|
||||
export interface _Label extends _AbstractLabel { |
||||
doRedMark(...args: any): void; |
||||
|
||||
unRedMark(...args: any): void |
||||
} |
@ -0,0 +1,15 @@
|
||||
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; |
||||
} |
@ -0,0 +1,13 @@
|
||||
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; |
||||
} |
@ -0,0 +1,15 @@
|
||||
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; |
||||
} |
@ -0,0 +1,21 @@
|
||||
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; |
||||
} |
@ -0,0 +1,9 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
|
||||
export interface _TextValueCombo extends _Widget { |
||||
populate(items: any): void; |
||||
} |
||||
|
||||
export interface _TextValueComboStatic { |
||||
EVENT_CHANGE: string; |
||||
} |
@ -0,0 +1,11 @@
|
||||
import { _Widget } from "../../core/widget"; |
||||
|
||||
export interface _AllValueMultiTextValueCombo extends _Widget { |
||||
getValue<T>(): T[]; |
||||
|
||||
populate(items: any): void; |
||||
} |
||||
|
||||
export interface _AllValueMultiTextValueComboStatic { |
||||
EVENT_CONFIRM: string; |
||||
} |
@ -0,0 +1,33 @@
|
||||
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; |
||||
} |
@ -0,0 +1,21 @@
|
||||
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; |
||||
} |
Loading…
Reference in new issue