Debian Codegraph @

jupyter-widgets-controls/lib/widget_string.d.ts

raw
1 /// <reference types="backbone" />
2 import { CoreDescriptionModel } from './widget_core';
3 import { DescriptionStyleModel, DescriptionView } from './widget_description';
4 declare class StringStyleModel extends DescriptionStyleModel {
5 defaults(): Backbone.ObjectHash;
6 static styleProperties: {
7 background: {
8 selector: string;
9 attribute: string;
10 default: any;
11 };
12 font_size: {
13 selector: string;
14 attribute: string;
15 default: string;
16 };
17 text_color: {
18 selector: string;
19 attribute: string;
20 default: string;
21 };
22 description_width: {
23 selector: string;
24 attribute: string;
25 default: any;
26 };
27 };
28 }
29 export declare class HTMLStyleModel extends StringStyleModel {
30 defaults(): Backbone.ObjectHash;
31 static styleProperties: {
32 background: {
33 selector: string;
34 attribute: string;
35 default: any;
36 };
37 font_size: {
38 selector: string;
39 attribute: string;
40 default: string;
41 };
42 text_color: {
43 selector: string;
44 attribute: string;
45 default: string;
46 };
47 description_width: {
48 selector: string;
49 attribute: string;
50 default: any;
51 };
52 };
53 }
54 export declare class HTMLMathStyleModel extends StringStyleModel {
55 defaults(): Backbone.ObjectHash;
56 static styleProperties: {
57 background: {
58 selector: string;
59 attribute: string;
60 default: any;
61 };
62 font_size: {
63 selector: string;
64 attribute: string;
65 default: string;
66 };
67 text_color: {
68 selector: string;
69 attribute: string;
70 default: string;
71 };
72 description_width: {
73 selector: string;
74 attribute: string;
75 default: any;
76 };
77 };
78 }
79 export declare class LabelStyleModel extends StringStyleModel {
80 defaults(): Backbone.ObjectHash;
81 static styleProperties: {
82 font_family: {
83 selector: string;
84 attribute: string;
85 default: string;
86 };
87 font_style: {
88 selector: string;
89 attribute: string;
90 default: string;
91 };
92 font_variant: {
93 selector: string;
94 attribute: string;
95 default: string;
96 };
97 font_weight: {
98 selector: string;
99 attribute: string;
100 default: string;
101 };
102 text_decoration: {
103 selector: string;
104 attribute: string;
105 default: string;
106 };
107 background: {
108 selector: string;
109 attribute: string;
110 default: any;
111 };
112 font_size: {
113 selector: string;
114 attribute: string;
115 default: string;
116 };
117 text_color: {
118 selector: string;
119 attribute: string;
120 default: string;
121 };
122 description_width: {
123 selector: string;
124 attribute: string;
125 default: any;
126 };
127 };
128 }
129 export declare class TextStyleModel extends DescriptionStyleModel {
130 defaults(): Backbone.ObjectHash;
131 static styleProperties: {
132 background: {
133 selector: string;
134 attribute: string;
135 default: any;
136 };
137 font_size: {
138 selector: string;
139 attribute: string;
140 default: string;
141 };
142 text_color: {
143 selector: string;
144 attribute: string;
145 default: string;
146 };
147 description_width: {
148 selector: string;
149 attribute: string;
150 default: any;
151 };
152 };
153 }
154 export declare class StringModel extends CoreDescriptionModel {
155 defaults(): Backbone.ObjectHash;
156 }
157 export declare class StringView extends DescriptionView {
158 /**
159 * Called when view is rendered.
160 */
161 render(): void;
162 /**
163 * Update the contents of this view
164 *
165 * Called when the model is changed. The model may have been
166 * changed by another view or by a state update from the back-end.
167 */
168 content: HTMLDivElement;
169 }
170 export declare class HTMLModel extends StringModel {
171 defaults(): Backbone.ObjectHash;
172 }
173 export declare class HTMLView extends StringView {
174 /**
175 * Called when view is rendered.
176 */
177 render(): void;
178 /**
179 * Update the contents of this view
180 *
181 * Called when the model is changed. The model may have been
182 * changed by another view or by a state update from the back-end.
183 */
184 update(): void;
185 /**
186 * Handle message sent to the front end.
187 */
188 handle_message(content: any): void;
189 content: HTMLDivElement;
190 }
191 export declare class HTMLMathModel extends StringModel {
192 defaults(): Backbone.ObjectHash;
193 }
194 export declare class HTMLMathView extends StringView {
195 /**
196 * Called when view is rendered.
197 */
198 render(): void;
199 /**
200 * Update the contents of this view
201 */
202 update(): void;
203 /**
204 * Handle message sent to the front end.
205 */
206 handle_message(content: any): void;
207 content: HTMLDivElement;
208 }
209 export declare class LabelModel extends StringModel {
210 defaults(): Backbone.ObjectHash;
211 }
212 export declare class LabelView extends StringView {
213 /**
214 * Called when view is rendered.
215 */
216 render(): void;
217 /**
218 * Update the contents of this view
219 *
220 * Called when the model is changed. The model may have been
221 * changed by another view or by a state update from the back-end.
222 */
223 update(): void;
224 }
225 export declare class TextareaModel extends StringModel {
226 defaults(): Backbone.ObjectHash;
227 }
228 export declare class TextareaView extends StringView {
229 /**
230 * Called when view is rendered.
231 */
232 render(): void;
233 update_placeholder(value?: string): void;
234 /**
235 * Update the contents of this view
236 *
237 * Called when the model is changed. The model may have been
238 * changed by another view or by a state update from the back-end.
239 */
240 update(options?: any): void;
241 updateTabindex(): void;
242 updateTooltip(): void;
243 events(): {
244 [e: string]: string;
245 };
246 /**
247 * Handle key down
248 *
249 * Stop propagation so the event isn't sent to the application.
250 */
251 handleKeyDown(e: Event): void;
252 /**
253 * Handles key press
254 *
255 * Stop propagation so the keypress isn't sent to the application.
256 */
257 handleKeypress(e: Event): void;
258 /**
259 * Triggered on input change
260 */
261 handleChanging(e: Event): void;
262 /**
263 * Sync the value with the kernel.
264 *
265 * @param e Event
266 */
267 handleChanged(e: Event): void;
268 /**
269 * Handle message sent to the front end.
270 */
271 handle_message(content: any): void;
272 textbox: HTMLTextAreaElement;
273 }
274 export declare class TextModel extends StringModel {
275 defaults(): Backbone.ObjectHash;
276 }
277 export declare class TextView extends StringView {
278 /**
279 * Called when view is rendered.
280 */
281 render(): void;
282 update_placeholder(value?: string): void;
283 updateTabindex(): void;
284 updateTooltip(): void;
285 update(options?: any): void;
286 events(): {
287 [e: string]: string;
288 };
289 /**
290 * Handle key down
291 *
292 * Stop propagation so the keypress isn't sent to the application.
293 */
294 handleKeyDown(e: Event): void;
295 /**
296 * Handles text submission
297 */
298 handleKeypress(e: KeyboardEvent): void;
299 /**
300 * Handles user input.
301 *
302 * Calling model.set will trigger all of the other views of the
303 * model to update.
304 */
305 handleChanging(e: Event): void;
306 /**
307 * Handles user input.
308 *
309 * Calling model.set will trigger all of the other views of the
310 * model to update.
311 */
312 handleChanged(e: Event): void;
313 /**
314 * Handle message sent to the front end.
315 */
316 handle_message(content: any): void;
317 protected readonly inputType: string;
318 textbox: HTMLInputElement;
319 }
320 export declare class PasswordModel extends TextModel {
321 defaults(): Backbone.ObjectHash;
322 }
323 export declare class PasswordView extends TextView {
324 protected readonly inputType: string;
325 }
326 /**
327 * Combobox widget model class.
328 */
329 export declare class ComboboxModel extends TextModel {
330 defaults(): Backbone.ObjectHash;
331 }
332 /**
333 * Combobox widget view class.
334 */
335 export declare class ComboboxView extends TextView {
336 render(): void;
337 update(options?: any): void;
338 isValid(value: string): boolean;
339 handleChanging(e: KeyboardEvent): void;
340 handleChanged(e: KeyboardEvent): void;
341 /**
342 * Handle message sent to the front end.
343 */
344 handle_message(content: any): void;
345 highlightValidState(valid: boolean): void;
346 datalist: HTMLDataListElement | undefined;
347 isInitialRender: boolean;
348 }
349 export {};
350 //# sourceMappingURL=widget_string.d.ts.map