From bbb785ed0470cef590daf9361eaaf2f40f3d7316 Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 15 Dec 2020 14:15:57 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6431=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/single/editor/editor.textarea.ts | 18 ++++++++++++++ typescript/case/button/item.singleselect.ts | 10 ++++++++ .../abstract.allvaluechooser.ts | 17 +++++++++++++ .../allvaluechooser/combo.allvaluechooser.ts | 9 +++++++ typescript/index.ts | 18 ++++++++++++++ .../dynamicdatetime/dynamicdatetime.combo.ts | 24 +++++++++++++++++++ .../widget/multitree/multi.tree.combo.ts | 15 ++++++++++++ 7 files changed, 111 insertions(+) create mode 100644 typescript/base/single/editor/editor.textarea.ts create mode 100644 typescript/case/button/item.singleselect.ts create mode 100644 typescript/component/allvaluechooser/abstract.allvaluechooser.ts create mode 100644 typescript/component/allvaluechooser/combo.allvaluechooser.ts create mode 100644 typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts create mode 100644 typescript/widget/multitree/multi.tree.combo.ts diff --git a/typescript/base/single/editor/editor.textarea.ts b/typescript/base/single/editor/editor.textarea.ts new file mode 100644 index 000000000..08549193d --- /dev/null +++ b/typescript/base/single/editor/editor.textarea.ts @@ -0,0 +1,18 @@ +import { Single } from "../single"; + +export declare class TextAreaEditor extends Single { + static xtype: string; + static EVENT_CHANGE: string; + static EVENT_FOCUS: string; + static EVENT_BLUR: string; + + focus(): void; + + blur(): void; + + setStyle(style: any): void; + + getStyle(): any; + + setWatermark(v: string): void; +} diff --git a/typescript/case/button/item.singleselect.ts b/typescript/case/button/item.singleselect.ts new file mode 100644 index 000000000..2c734042e --- /dev/null +++ b/typescript/case/button/item.singleselect.ts @@ -0,0 +1,10 @@ +import { BasicButton } from "../../base/single/button/button.basic"; + +export declare class SingleSelectItem extends BasicButton { + static xtype: string; + static EVENT_CHANGE: string; + + doRedMark(): void; + + unRedMark(): void; +} diff --git a/typescript/component/allvaluechooser/abstract.allvaluechooser.ts b/typescript/component/allvaluechooser/abstract.allvaluechooser.ts new file mode 100644 index 000000000..725a69113 --- /dev/null +++ b/typescript/component/allvaluechooser/abstract.allvaluechooser.ts @@ -0,0 +1,17 @@ +import { Widget } from "../../core/widget"; + +export declare class AbstractAllValueChooser extends Widget { + static xtype: string; + + _valueFormatter(v: string | number): string; + + _itemsCreator(options: any, callback: Function): void; + + _assertValue(v: { + type: string; + value: any[]; + }): { + type: string; + value: any[]; + } +} diff --git a/typescript/component/allvaluechooser/combo.allvaluechooser.ts b/typescript/component/allvaluechooser/combo.allvaluechooser.ts new file mode 100644 index 000000000..20b3affe1 --- /dev/null +++ b/typescript/component/allvaluechooser/combo.allvaluechooser.ts @@ -0,0 +1,9 @@ +import { AbstractAllValueChooser } from "./abstract.allvaluechooser"; + +export declare class AllValueChooserCombo extends AbstractAllValueChooser { + static xtype: string; + + getAllValue(): any; + + populate(...args: any[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index fb7669d65..98d42b701 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -76,6 +76,12 @@ import { MultiSelectCombo } from "./widget/multiselect/multiselect.combo"; import { SearchEditor } from "./widget/editor/editor.search"; import { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree"; import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple"; +import { AbstractAllValueChooser } from "./component/allvaluechooser/abstract.allvaluechooser"; +import { AllValueChooserCombo } from "./component/allvaluechooser/combo.allvaluechooser"; +import { TextAreaEditor } from "./base/single/editor/editor.textarea"; +import { SingleSelectItem } from "./case/button/item.singleselect"; +import { DynamicDateTimeCombo } from "./widget/dynamicdatetime/dynamicdatetime.combo"; +import { MultiTreeCombo } from "./widget/multitree/multi.tree.combo"; type ClassConstructor = T & { @@ -165,6 +171,12 @@ export interface BI extends _func, _i18n, _base, _inject { SearchEditor: typeof SearchEditor; MultiLayerSingleLevelTree: typeof MultiLayerSingleLevelTree; SimpleColorChooser: typeof SimpleColorChooser; + AbstractAllValueChooser: typeof AbstractAllValueChooser; + AllValueChooserCombo: typeof AllValueChooserCombo; + TextAreaEditor: typeof TextAreaEditor; + SingleSelectItem: typeof SingleSelectItem; + DynamicDateTimeCombo: typeof DynamicDateTimeCombo; + MultiTreeCombo: typeof MultiTreeCombo; } export default { @@ -227,4 +239,10 @@ export { Pane, MultiLayerSingleLevelTree, SimpleColorChooser, + AbstractAllValueChooser, + AllValueChooserCombo, + TextAreaEditor, + SingleSelectItem, + DynamicDateTimeCombo, + MultiTreeCombo, }; diff --git a/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts b/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts new file mode 100644 index 000000000..19fd98c32 --- /dev/null +++ b/typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts @@ -0,0 +1,24 @@ +import { Single } from "../../base/single/single"; + +export declare class DynamicDateTimeCombo extends Single { + static xtype: string; + static EVENT_KEY_DOWN: string; + static EVENT_CONFIRM: string; + static EVENT_FOCUS: string; + static EVENT_BLUR: string; + static EVENT_CHANGE: string; + static EVENT_VALID: string; + static EVENT_ERROR: string; + static EVENT_BEFORE_POPUPVIEW: string; + static Static: 1; + static Dynamic: 2; + + + setMinDate(minDate: string): void; + + setMaxDate(minDate: string): void; + + getKey(): string; + + hidePopupView(): void; +} diff --git a/typescript/widget/multitree/multi.tree.combo.ts b/typescript/widget/multitree/multi.tree.combo.ts new file mode 100644 index 000000000..fd6bbd098 --- /dev/null +++ b/typescript/widget/multitree/multi.tree.combo.ts @@ -0,0 +1,15 @@ +import { Single } from "../../base/single/single"; + +export declare class MultiTreeCombo extends Single { + static xytpe: string; + static EVENT_FOCUS: string; + static EVENT_BLUR: string; + static EVENT_STOP: string; + static EVENT_SEARCHING: string; + static EVENT_CLICK_ITEM: string; + static EVENT_CONFIRM: string; + static EVENT_BEFORE_POPUPVIEW: string; + + showView(): void; + hideView(): void; +}