From 3c825b7eb5b6e335ac319d4337b7f623ef5c1a69 Mon Sep 17 00:00:00 2001 From: Tangjinxia <1119518763@qq.com> Date: Wed, 2 Jun 2021 11:04:22 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-6917=20refactor:=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/case/editor/editor.state.ts | 48 ++++++++++++++++++++++++++ typescript/index.ts | 3 ++ 2 files changed, 51 insertions(+) create mode 100644 typescript/case/editor/editor.state.ts diff --git a/typescript/case/editor/editor.state.ts b/typescript/case/editor/editor.state.ts new file mode 100644 index 0000000000..b2528a25e4 --- /dev/null +++ b/typescript/case/editor/editor.state.ts @@ -0,0 +1,48 @@ +import { Widget } from "../../core/widget"; + +export declare class StateEditor 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; + + 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; + + getLastChangedValue(): string; + + getState(): any; + + setState(...args: any[]): void; +} diff --git a/typescript/index.ts b/typescript/index.ts index 5a35dde5a5..aef9038c58 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -23,6 +23,7 @@ import { TextValueCombo } from "./case/combo/combo.textvalue"; import { SmallTextValueCombo } from './case/combo/combo.textvaluesmall'; import { SearchTextValueCombo } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue"; import { SignEditor } from "./case/editor/editor.sign"; +import { StateEditor } from './case/editor/editor.state'; import { LoadingPane } from "./case/loading/loading_pane"; import { AllValueMultiTextValueCombo } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo"; import { AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser"; @@ -210,6 +211,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { Text: typeof Text; Editor: typeof Editor; SignEditor: typeof SignEditor; + StateEditor: typeof StateEditor; Layout: typeof Layout; HTapeLayout: typeof HTapeLayout; VTapeLayout: typeof VTapeLayout; @@ -447,6 +449,7 @@ export { SmallTextEditor, MultifileEditor, SignEditor, + StateEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor,