Browse Source

Pull request #1680: KERNEL-6533 refactor: 声明补充

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

* commit 'f3bfbe78382d4f2b0afb91a6bb7b64e83646c4a4':
  KERNEL-6533 refactor: 修改描述
  KERNEL-6533 refactor: 声明补充
  KERNEL-6533 refactor: 声明补充
es6
Kira 4 years ago
parent
commit
601cc4520e
  1. 15
      typescript/base/layer/layer.popup.ts
  2. 1
      typescript/base/single/button/listitem/icontextitem.ts
  3. 6
      typescript/base/single/input/input.ts
  4. 6
      typescript/case/button/switch.ts
  5. 5
      typescript/case/checkbox/check.arrownode.ts
  6. 19
      typescript/case/combo/bubblecombo/popup.bubble.ts
  7. 56
      typescript/case/editor/editor.shelter.ts
  8. 24
      typescript/case/pager/pager.all.count.ts
  9. 5
      typescript/case/trigger/trigger.text.select.ts
  10. 5
      typescript/core/wrapper/layout/layout.horizontal.ts
  11. 37
      typescript/index.ts
  12. 8
      typescript/widget/datepane/datepane.ts
  13. 11
      typescript/widget/dynamicdate/dynamicdate.combo.ts
  14. 8
      typescript/widget/textvaluedownlistcombo/combo.textvaluedownlist.ts
  15. 14
      typescript/widget/timeinterval/dateinterval.ts

15
typescript/base/layer/layer.popup.ts

@ -0,0 +1,15 @@
import { Widget } from '../../core/widget';
export declare class PopupView extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getView(): Widget;
populate(...args: any[]): void;
resetWidth(v: number): void;
resetHeight(v: number): void;
}

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

@ -16,7 +16,6 @@ export interface _IconTextItemStatic {
export declare class IconTextItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doRedMark(...args: any[]): void;

6
typescript/base/single/input/input.ts

@ -1,4 +1,4 @@
import { Single, _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;
@ -73,7 +73,7 @@ export declare class Input extends Single {
focus(): void;
blur(): void;
selectAll(): void;
setValue(v: string): void;

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;
}

5
typescript/case/checkbox/check.arrownode.ts

@ -0,0 +1,5 @@
import { IconButton } from "../../base/single/button/buttons/button.icon";
export declare class ArrowTreeGroupNodeCheckbox extends IconButton {
static xtype: string;
}

19
typescript/case/combo/bubblecombo/popup.bubble.ts

@ -0,0 +1,19 @@
import { PopupView } from "../../../base/layer/layer.popup";
import { Widget } from "../../../core/widget";
export declare class BubblePopupView extends PopupView {
static xtype: string;
static EVENT_CLICK_TOOLBAR_BUTTON: string;
}
export declare class BubblePopupBarView extends BubblePopupView {
static xtype: string;
static EVENT_CLICK_TOOLBAR_BUTTON: string;
}
export declare class TextBubblePopupBarView extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate(v: string): void;
}

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;
}

24
typescript/case/pager/pager.all.count.ts

@ -0,0 +1,24 @@
import { Widget } from "../../core/widget";
export declare class AllCountPager extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
setAllPages(v: number): void;
setValue(v: number): void;
setVPage(v: number):void;
setCount(v: number | string): void;
getCurrentPage(): number;
hasPrev(): boolean;
hasNext(): boolean;
setPagerVisible(v: boolean): void;
populate(): void;
}

5
typescript/case/trigger/trigger.text.select.ts

@ -0,0 +1,5 @@
import { Trigger } from "../../base/single/trigger/trigger";
export declare class SelectTextTrigger extends Trigger {
static xtype: string;
}

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;
}

37
typescript/index.ts

@ -115,6 +115,17 @@ 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";
import { SelectTextTrigger } from "./case/trigger/trigger.text.select";
import { DateInterval } from "./widget/timeinterval/dateinterval";
import { DynamicDatePane } from "./widget/datepane/datepane";
import { AllCountPager } from "./case/pager/pager.all.count";
import { PopupView } from "./base/layer/layer.popup";
import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble";
import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode";
type ClassConstructor<T extends {}> = T & {
@ -243,6 +254,19 @@ 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;
SelectTextTrigger: typeof SelectTextTrigger;
DateInterval: typeof DateInterval;
DynamicDatePane: typeof DynamicDatePane;
AllCountPager: typeof AllCountPager;
PopupView: typeof PopupView;
BubblePopupView: typeof BubblePopupView;
BubblePopupBarView: typeof BubblePopupBarView;
TextBubblePopupBarView: typeof TextBubblePopupBarView;
ArrowTreeGroupNodeCheckbox: typeof ArrowTreeGroupNodeCheckbox;
}
export default {
@ -365,4 +389,17 @@ export {
DynamicYearMonthCombo,
TimeCombo,
Iframe,
TextValueDownListCombo,
Switch,
HorizontalLayout,
ShelterEditor,
SelectTextTrigger,
DateInterval,
DynamicDatePane,
AllCountPager,
PopupView,
BubblePopupView,
BubblePopupBarView,
TextBubblePopupBarView,
ArrowTreeGroupNodeCheckbox,
};

8
typescript/widget/datepane/datepane.ts

@ -0,0 +1,8 @@
import { Widget } from "../../core/widget";
export declare class DynamicDatePane extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static Static: 1;
static Dynamic: 2;
}

11
typescript/widget/dynamicdate/dynamicdate.combo.ts

@ -21,4 +21,15 @@ export declare class DynamicDateCombo extends Single {
getKey(): string;
hidePopupView(): void;
getValue(): DynamicDataComboValue;
}
export interface DynamicDataComboValue {
type: number;
value: {
year: number;
month: number;
day: number;
}
}

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<T>(): [T];
}

14
typescript/widget/timeinterval/dateinterval.ts

@ -0,0 +1,14 @@
import { Single } from "../../base/single/single";
import { DynamicDataComboValue } from "../dynamicdate/dynamicdate.combo";
export declare class DateInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
getValue(): {
start: DynamicDataComboValue;
end: DynamicDataComboValue;
};
}
Loading…
Cancel
Save