diff --git a/typescript/index.ts b/typescript/index.ts index 7f3f6bf2a..cd5c148dd 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -64,6 +64,8 @@ import { IconArrowNode } from "./case/button/node/node.icon.arrow"; import { MidTreeLeafItem } from "./case/button/treeitem/item.mid.treeleaf"; import { FirstTreeLeafItem } from "./case/button/treeitem/item.first.treeleaf"; import { LastTreeLeafItem } from "./case/button/treeitem/item.last.treeleaf"; +import { SmallTextEditor } from "./widget/editor/editor.text.small"; +import { MultifileEditor } from "./widget/editor/editor.multifile"; type ClassConstructor = T & { @@ -141,6 +143,8 @@ export interface BI extends _func, _i18n, _base, _inject { MidTreeLeafItem: typeof MidTreeLeafItem; FirstTreeLeafItem: typeof FirstTreeLeafItem; LastTreeLeafItem: typeof LastTreeLeafItem; + SmallTextEditor: typeof SmallTextEditor; + MultifileEditor: typeof MultifileEditor; } export default { @@ -182,4 +186,6 @@ export { MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, + SmallTextEditor, + MultifileEditor, }; diff --git a/typescript/widget/editor/editor.multifile.ts b/typescript/widget/editor/editor.multifile.ts new file mode 100644 index 000000000..4854d9820 --- /dev/null +++ b/typescript/widget/editor/editor.multifile.ts @@ -0,0 +1,20 @@ +import { Widget } from "../../core/widget"; + +export declare class MultifileEditor extends Widget { + static xtype: string; + static EVENT_CHANGE: string; + static EVENT_UPLOADSTART: string; + static EVENT_ERROR: string; + static EVENT_PROGRESS: string; + static EVENT_UPLOADED: string; + + _reset(): void; + select(): void; + getValue(): { + attach_id: string; + attach_type: string; + filename: string; + }[]; + upload(): void; + reset(): void; +} diff --git a/typescript/widget/editor/editor.text.small.ts b/typescript/widget/editor/editor.text.small.ts new file mode 100644 index 000000000..cf3a10b24 --- /dev/null +++ b/typescript/widget/editor/editor.text.small.ts @@ -0,0 +1,5 @@ +import { TextEditor } from "./editor.text"; + +export declare class SmallTextEditor extends TextEditor { + static xtype: string; +}