Browse Source

KERNEL-6533 refactor: 声明补充

es6
Kira 4 years ago
parent
commit
ba291b94f1
  1. 15
      typescript/base/layer/layer.popup.ts
  2. 5
      typescript/case/checkbox/check.arrownode.ts
  3. 23
      typescript/case/combo/bubblecombo/popup.bubble.ts
  4. 24
      typescript/case/pager/pager.all.count.ts
  5. 25
      typescript/index.ts
  6. 8
      typescript/widget/datepane/datepane.ts
  7. 11
      typescript/widget/dynamicdate/dynamicdate.combo.ts
  8. 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;
}

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

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

@ -0,0 +1,23 @@
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;
populate(v: string): void;
}
export declare class BubblePopupBarView extends BubblePopupView {
static xtype: string;
static EVENT_CLICK_TOOLBAR_BUTTON: string;
populate(v: string): void;
}
export declare class TextBubblePopupBarView extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate(v: string): 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;
}

25
typescript/index.ts

@ -119,6 +119,13 @@ import { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.te
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 & {
@ -251,6 +258,15 @@ export interface BI extends _func, _i18n, _base, _inject {
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 {
@ -377,4 +393,13 @@ export {
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;
}
}

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