This repository has been archived by the owner on Jul 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdijit.form.textbox.d.ts
238 lines (219 loc) · 11.6 KB
/
dijit.form.textbox.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/************************************************************************/
/* Define textbox widget */
/************************************************************************/
/// <reference path="dijit.d.ts"/>
/// <reference path="dijit.form.d.ts"/>
declare module dijit
{
module form
{
interface _TextBoxMixin extends Dijit._Mixin
{
//displayedValue: string;
//lowercase: boolean;
//maxLength: number;
//placeHolder: string;
//propercase: boolean;
//selectOnClick: boolean;
//trim: boolean;
//uppercase: boolean;
get(name: "displayedValue"): string;
get(name: "lowercase"): boolean;
get(name: "maxLength"): number;
get(name: "placeHolder"): string;
get(name: "propercase"): boolean;
get(name: "selectOnClick"): boolean;
get(name: "trim"): boolean;
get(name: "uppercase"): boolean;
get<T>(name: string): T;
set(name: "displayedValue", value: string): void;
set(name: "lowercase", value: boolean): void;
set(name: "maxLength", value: number): void;
set(name: "placeHolder", value: string): void;
set(name: "propercase", value: boolean): void;
set(name: "selectOnClick", value: boolean): void;
set(name: "trim", value: boolean): void;
set(name: "uppercase", value: boolean): void;
set<T>(name: string, value: any, raiseChangeEvent?: boolean): void;
watch(prop: "displayedValue", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "lowercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "maxLength", callback: Dojo.WatchCallback<number>): Dojo.WatchHandle;
watch(prop: "placeHolder", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "propercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "lowercaseselectOnClick", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "trim", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "uppercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch<T>(prop: string, callback: Dojo.WatchCallback<T>): Dojo.WatchHandle;
filter(val: string): any;
format(value: string, constraints: Object): string;
parse(value: string, constraints: Object): string;
postCreate(): void;
reset(): void;
selectInputText(element: HTMLElement, start?: number, stop?: number): void;
onInput(event: KeyboardEvent): void;
}
class TextBox extends _FormValueWidget implements _TextBoxMixin
{
// dijit/form/_FormValueWidget
get(name: "baseClass"): string;
get(name: "class"): string;
get(name: "containerNode"): HTMLElement;
get(name: "dir"): string;
get(name: "domNode"): HTMLElement;
get(name: "focused"): boolean;
get(name: "id"): string;
get(name: "lang"): string;
get(name: "ownerDocument"): HTMLDocument;
get(name: "postMixInProperties"): string;
get(name: "srcNodeRef"): HTMLElement;
get(name: "style"): Dojo.StylesMap;
get(name: "title"): string;
get(name: "tooltip"): string;
get(name: "attachScope"): Object;
get(name: "searchContainerNode"): boolean;
get(name: "templatePath"): string;
get(name: "templateString"): string;
get(name: "active"): boolean;
get(name: "cssStateNodes"): { [attachPoint: string]: string; };
get(name: "hovering"): boolean;
get(name: "alt"): string;
get(name: "aria-label"): string;
get(name: "disabled"): boolean;
get(name: "intermediateChanges"): boolean;
get(name: "name"): string;
get(name: "scrollOnFocus"): boolean;
get(name: "tabIndex"): number;
get(name: "type"): string;
get(name: "value"): string;
get(name: "readOnly"): boolean;
set(name: "baseClass", value: string): void;
set(name: "class", value: string): void;
set(name: "containerNode", value: HTMLElement): void;
set(name: "dir", value: string): void;
set(name: "domNode", value: HTMLElement): void;
set(name: "focused", value: boolean): void;
set(name: "id", value: string): void;
set(name: "lang", value: string): void;
set(name: "ownerDocument", value: HTMLDocument): void;
set(name: "postMixInProperties", value: string): void;
set(name: "srcNodeRef", value: HTMLElement): void;
set(name: "style", value: Dojo.StylesMap): void;
set(name: "title", value: string): void;
set(name: "tooltip", value: string): void;
set(name: "attachScope", value: Object): void;
set(name: "searchContainerNode", value: boolean): void;
set(name: "templatePath", value: string): void;
set(name: "templateString", value: string): void;
set(name: "active", value: boolean): void;
set(name: "cssStateNodes", value: { [attachPoint: string]: string; }): void;
set(name: "hovering", value: boolean): void;
set(name: "alt", value: string): void;
set(name: "aria-label", value: string): void;
set(name: "disabled", value: boolean): void;
set(name: "intermediateChanges", value: boolean): void;
set(name: "name", value: string): void;
set(name: "scrollOnFocus", value: string): boolean;
set(name: "tabIndex", value: number): void;
set(name: "type", value: string): void;
set(name: "value", value: string): void;
set(name: "readOnly", value: boolean): void;
watch(prop: "baseClass", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "class", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "containerNode", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "dir", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "domNode", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "focused", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "id", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "lang", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "ownerDocument", callback: Dojo.WatchCallback<HTMLDocument>): Dojo.WatchHandle;
watch(prop: "postMixInProperties", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "srcNodeRef", callback: Dojo.WatchCallback<HTMLElement>): Dojo.WatchHandle;
watch(prop: "style", callback: Dojo.WatchCallback<Dojo.StylesMap>): Dojo.WatchHandle;
watch(prop: "title", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "tooltip", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "attachScope", callback: Dojo.WatchCallback<Object>): Dojo.WatchHandle;
watch(prop: "searchContainerNode", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "templatePath", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "templateString", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "active", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "cssStateNodes", callback: Dojo.WatchCallback<{ [attachPoint: string]: string; }>): Dojo.WatchHandle;
watch(prop: "hovering", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "alt", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "aria-label", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "disabled", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "intermediateChanges", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "name", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "scrollOnFocus", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "tabIndex", callback: Dojo.WatchCallback<number>): Dojo.WatchHandle;
watch(prop: "type", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "value", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "readOnly", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
// dijit/form/_TextBoxMixin
get(name: "displayedValue"): string;
get(name: "lowercase"): boolean;
get(name: "maxLength"): number;
get(name: "placeHolder"): string;
get(name: "propercase"): boolean;
get(name: "selectOnClick"): boolean;
get(name: "trim"): boolean;
get(name: "uppercase"): boolean;
set(name: "displayedValue", value: string): void;
set(name: "lowercase", value: boolean): void;
set(name: "maxLength", value: number): void;
set(name: "placeHolder", value: string): void;
set(name: "propercase", value: boolean): void;
set(name: "selectOnClick", value: boolean): void;
set(name: "trim", value: boolean): void;
set(name: "uppercase", value: boolean): void;
watch(prop: "displayedValue", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "lowercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "maxLength", callback: Dojo.WatchCallback<number>): Dojo.WatchHandle;
watch(prop: "placeHolder", callback: Dojo.WatchCallback<string>): Dojo.WatchHandle;
watch(prop: "propercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "lowercaseselectOnClick", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "trim", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
watch(prop: "uppercase", callback: Dojo.WatchCallback<boolean>): Dojo.WatchHandle;
filter(val: string): any;
format(value: string, constraints: Object): string;
parse(value: string, constraints: Object): string;
postCreate(): void;
reset(): void;
selectInputText(element: HTMLElement, start?: number, stop?: number): void;
onInput(event: KeyboardEvent): void;
// get/set/watch master signatures
get<T>(name: string): T;
set<T>(name: string, value: any, raiseChangeEvent?: boolean): void;
set(values: Dojo.PropertiesMap): void;
watch<T>(prop: string, callback: Dojo.WatchCallback<T>): Dojo.WatchHandle;
// Events
on(type: "Blur", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Change", listener: (newValue: string) => void): Dojo.RemovableHandle;
on(type: "Click", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "Close", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "DblClick", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "Focus", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Hide", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: "Input", listener: (ev: KeyboardEvent) => boolean): Dojo.RemovableHandle;
on(type: "KeyDown", listener: Dojo.EventListener<KeyboardEvent>): Dojo.RemovableHandle;
on(type: "KeyPress", listener: Dojo.EventListener<KeyboardEvent>): Dojo.RemovableHandle;
on(type: "KeyUp", listener: Dojo.EventListener<KeyboardEvent>): Dojo.RemovableHandle;
on(type: "MouseDown", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseEnter", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseLeave", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseMove", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseOut", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseOver", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "MouseUp", listener: Dojo.EventListener<MouseEvent>): Dojo.RemovableHandle;
on(type: "Show", listener: Dojo.Action): Dojo.RemovableHandle;
on(type: string, listener: Dojo.Action): Dojo.RemovableHandle;
on(type: string, listener: (ev: KeyboardEvent) => boolean): Dojo.RemovableHandle;
on(type: Dojo.ExtensionEvent, func: Dojo.Action): Dojo.RemovableHandle;
}
}
}
// Module definitions
declare module "dijit/form/TextBox"
{
var TextBox: typeof dijit.form.TextBox;
export = TextBox;
}