diff --git a/typescript/base/single/iframe/iframe.ts b/typescript/base/single/iframe/iframe.ts index 2873ac4af..a9a2c8bdf 100644 --- a/typescript/base/single/iframe/iframe.ts +++ b/typescript/base/single/iframe/iframe.ts @@ -1,11 +1,23 @@ -import { _Single } from "../single"; +import { Single, _Single } from "../single"; export interface _Iframe extends _Single { setSrc(v: string): void; getSrc(): string; - setNam(v: string): void; + setName(v: string): void; + + getName(): string; +} + +export declare class iframe extends Single { + static xtype: string; + + setSrc(v: string): void; + + getSrc(): string; + + setName(v: string): void; getName(): string; } diff --git a/typescript/core/wrapper/layout/layout.card.ts b/typescript/core/wrapper/layout/layout.card.ts new file mode 100644 index 000000000..35a495143 --- /dev/null +++ b/typescript/core/wrapper/layout/layout.card.ts @@ -0,0 +1,36 @@ +import { Widget } from "../../widget"; +import { Layout } from "../layout"; + +export declare class CardLayout extends Layout { + static xtype: string; + + empty(): void; + + isCardExisted(cardName: string): boolean; + + getCardByName(name: string):T; + + deleteCardByName(cardName: string): void; + + addCardByName(cardName: string, cardItem: any): Widget + + showCardByName(cardName: string, action: any, callback: () => void): void; + + showLastCard(): void; + + setDefaultShowName(name: string): void; + + getDefaultShowName(): string; + + getAllCardNames(): string[]; + + getShowingCard(): T; + + deleteAllCard(): void; + + hideAllCard(): void; + + isAllCardHide(): boolean; + + removeWidget(nameOrWidget: string | Widget): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index b768d88e1..5ba8fbfff 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -8,7 +8,7 @@ import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/but import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text"; import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem"; import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor"; -import { _Iframe } from "./base/single/iframe/iframe"; +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 { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label"; @@ -105,6 +105,9 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup"; import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio"; import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo"; import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo"; +import { CardLayout } from "./core/wrapper/layout/layout.card"; +import { DynamicYearMonthCombo } from "./widget/yearmonth/combo.yearmonth"; +import { TimeCombo } from "./widget/time/time.combo"; import { ListTreeView } from "./base/tree/ztree/list/listtreeview"; import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree"; import { AsyncTree } from "./base/tree/ztree/asynctree"; @@ -229,6 +232,9 @@ export interface BI extends _func, _i18n, _base, _inject { SingleSelectRadioItem: typeof SingleSelectRadioItem; SingleSelectInsertCombo: typeof SingleSelectInsertCombo; SingleSelectCombo: typeof SingleSelectCombo; + CardLayout: typeof CardLayout; + DynamicYearMonthCombo: typeof DynamicYearMonthCombo; + TimeCombo: typeof TimeCombo; } export default { @@ -327,4 +333,8 @@ export { SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, + CardLayout, + DynamicYearMonthCombo, + TimeCombo, + iframe, }; diff --git a/typescript/widget/time/time.combo.ts b/typescript/widget/time/time.combo.ts new file mode 100644 index 000000000..fa14d017f --- /dev/null +++ b/typescript/widget/time/time.combo.ts @@ -0,0 +1,13 @@ +import { Single } from "../../base/single/single"; + +export declare class TimeCombo extends Single { + static xtype: string; + static EVENT_KEY_DOWN: string; + static EVENT_CONFIRM: string; + static EVENT_CHANGE: string; + static EVENT_VALID: string; + static EVENT_ERROR: string; + static EVENT_BEFORE_POPUPVIEW: string; + + hidePopupView(): void; +} diff --git a/typescript/widget/yearmonth/combo.yearmonth.ts b/typescript/widget/yearmonth/combo.yearmonth.ts new file mode 100644 index 000000000..382729819 --- /dev/null +++ b/typescript/widget/yearmonth/combo.yearmonth.ts @@ -0,0 +1,14 @@ +import { Single } from "../../base/single/single"; + +export declare class DynamicYearMonthCombo extends Single { + static xtype: string; + static EVENT_ERROR: string; + static EVENT_VALID: string; + static EVENT_FOCUS: string; + static EVENT_CONFIRM: string; + static EVENT_BEFORE_POPUPVIEW: string; + + hideView(): void; + + getKey(): string; +}