diff --git a/typescript/case/editor/editor.state.ts b/typescript/case/editor/editor.state.ts new file mode 100644 index 000000000..b2528a25e --- /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 5a35dde5a..aef9038c5 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,