dothtml-interfaces 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/i-dot.d.ts DELETED
@@ -1,811 +0,0 @@
1
-
2
- import IComponent from "./i-component";
3
- import IDotCss, { IDotcssProp } from "./i-dot-css";
4
- import IEventBus from "./i-event-bus";
5
-
6
- type DotContentPrimitive = string|number|boolean;
7
- type DotContentBasic = DotContentPrimitive|Node|Element|NodeList|IComponent|IDotDocument//typeof DotDocument;
8
- export type DotContent = DotContentBasic|Array<DotContent>|(()=>DotContent);
9
-
10
- // Global interface containing elements:
11
- export interface IDotDocument
12
- {
13
- // Creating a blank DotDocument.
14
- (document?: Element, classPrefix?: number): void;
15
-
16
- // Internal use only:
17
- _appendOrCreateDocument(content: DotContent, parentEl?: Element, beforeNode?: Node|number);
18
-
19
- // Main functions.
20
- // TODO: please make this into a test case.
21
- /**
22
- * Cast any document to any other element type. This can be used to access attributes when dotHTML doesn't know the type.
23
- * @example
24
- * dot("#my-input").as(dot.input).value("Hello, world!")
25
- * @example
26
- * dot.h("<a>Click me!</a>").as(dot.a).hRef("https://dothtml.com/")
27
- */
28
- as<T extends IDotDocument>(dotElement: (...props: any[])=>T): T;
29
- /**
30
- * Creates a custom element.
31
- */
32
- el(tag: string, content?: DotContent): IDotElementDocument<IDotGenericElement>
33
-
34
- // Special "tags"
35
- /**
36
- * Creates a generic HTML node that can render a string, HTML nodes, or dotHTML content.
37
- */
38
- h(content?: DotContent): IDotDocument;
39
- /**
40
- * Creates a text node that will render as a string, rather than being parsed as markup.
41
- */
42
- t(content?: any): IDotA;
43
- /**
44
- * Iterates n times, appending the result of each iteration to the VDBO.
45
- * @param n The number of iterations.
46
- * @param callback The markup-generating callback.
47
- */
48
- iterate(n: number, callback: (i: number)=>DotContent): IDotDocument;
49
- each<T>(a: Array<T>|(()=>Array<T>)|{[key: string]: T}, callback: (x: T, i: number|string)=>DotContent): IDotDocument;
50
-
51
- /**
52
- * Removes the targeted document and everything in it.
53
- */
54
- remove(): void;
55
- /**
56
- * Get the last HTML element added to the targeted document.
57
- */
58
- getLast(): HTMLElement;
59
- /**
60
- * Deletes each element within the targeted document.
61
- */
62
- empty(): IDotDocument;
63
-
64
- /**
65
- * Executes a function immediately.
66
- */
67
- script(callback: Function): IDotDocument;
68
- /**
69
- * A conditional function, analogous to if. Renders the specified DOT if a condition is met. Dynamic binding is possible when condition and callback are functions.
70
- */
71
- when(condition:(()=>boolean)|boolean, callback: (()=>void)|DotContent): IDotDocument;
72
- /**
73
- * A conditional catch, analogous to else if. Can be used after a when function. Evaluates if the previous when's condition was false.
74
- * Renders the specified DOT if a condition is met. Dynamic binding is possible when condition and callback are functions.
75
- */
76
- otherwiseWhen(condition:(()=>boolean)|boolean, callback: (()=>void)|DotContent): IDotDocument;
77
- /**
78
- * A conditional final catch, analogous to else. Can be used after a when or otherwiseWhen function. Evaluates if the previous when/otherwiseWhen evaluated to false.
79
- * Renders the specified DOT if a condition is met. Dynamic binding is possible when callback is a function.
80
- */
81
- otherwise(callback: (()=>void)|DotContent): IDotDocument;
82
-
83
- scopeClass(prefix: number|string|null, content: DotContent): IDotDocument;
84
-
85
- wait(timeout, callback);
86
- defer(callback);
87
-
88
- // Tags.
89
- a(content?: DotContent): IDotA;
90
-
91
- aside(content?: DotContent): IDotElementDocument<IDotGenericElement>;
92
- abbr(content?: DotContent): IDotElementDocument<IDotGenericElement>;
93
- address(content?: DotContent): IDotElementDocument<IDotGenericElement>;
94
-
95
- area(content?: DotContent): IDotArea;
96
-
97
- article(content?: DotContent): IDotElementDocument<IDotGenericElement>;
98
-
99
- audio(content?: DotContent): IDotAudio;
100
-
101
- b(content?: DotContent): IDotElementDocument<IDotGenericElement>;
102
- bdi(content?: DotContent): IDotElementDocument<IDotGenericElement>;
103
- bdo(content?: DotContent): IDotElementDocument<IDotGenericElement>;
104
-
105
- blockQuote(content?: DotContent): IDotBlockQuote;
106
- body(content?: DotContent): IDotBody; // This shouldn't really be used - if it is, then it should have the custom behavior of rewriting the existing document body, rather than adding a second one.
107
- br(content?: DotContent): IDotBr;
108
- button(content?: DotContent): IDotButton;
109
- canvas(content?: DotContent): IDotCanvas;
110
-
111
- caption(content?: DotContent): IDotElementDocument<IDotGenericElement>;
112
- cite(content?: DotContent): IDotElementDocument<IDotGenericElement>;
113
- code(content?: DotContent): IDotElementDocument<IDotGenericElement>;
114
-
115
- col(content?: DotContent): IDotCol;
116
- colGroup(content?: DotContent): IDotColGroup;
117
-
118
- content(content?: DotContent): IDotElementDocument<IDotGenericElement>;
119
- data(content?: DotContent): IDotElementDocument<IDotGenericElement>;
120
- dataList(content?: DotContent): IDotElementDocument<IDotGenericElement>;
121
- dd(content?: DotContent): IDotElementDocument<IDotGenericElement>;
122
-
123
- del(content?: DotContent): IDotDel;
124
- details(content?: DotContent): IDotDetails;
125
-
126
- dfn(content?: DotContent): IDotElementDocument<IDotGenericElement>;
127
- dialog(content?: DotContent): IDotElementDocument<IDotGenericElement>;
128
- div(content?: DotContent): IDotElementDocument<IDotGenericElement>;
129
- dl(content?: DotContent): IDotElementDocument<IDotGenericElement>;
130
- dt(content?: DotContent): IDotElementDocument<IDotGenericElement>;
131
- em(content?: DotContent): IDotElementDocument<IDotGenericElement>;
132
-
133
- embed(content?: DotContent): IDotEmbed;
134
- fieldSet(content?: DotContent): IDotFieldSet;
135
-
136
- figCaption(content?: DotContent): IDotElementDocument<IDotGenericElement>;
137
- figure(content?: DotContent): IDotElementDocument<IDotGenericElement>;
138
- footer(content?: DotContent): IDotElementDocument<IDotGenericElement>;
139
-
140
- form(content?: DotContent): IDotForm;
141
-
142
- h1(content?: DotContent): IDotElementDocument<IDotGenericElement>;
143
- h2(content?: DotContent): IDotElementDocument<IDotGenericElement>;
144
- h3(content?: DotContent): IDotElementDocument<IDotGenericElement>;
145
- h4(content?: DotContent): IDotElementDocument<IDotGenericElement>;
146
- h5(content?: DotContent): IDotElementDocument<IDotGenericElement>;
147
- h6(content?: DotContent): IDotElementDocument<IDotGenericElement>;
148
- header(content?: DotContent): IDotElementDocument<IDotGenericElement>;
149
-
150
- hr(content?: DotContent): IDotHr;
151
-
152
- i(content?: DotContent): IDotElementDocument<IDotGenericElement>;
153
-
154
- iFrame(content?: DotContent): IDotIFrame;
155
- img(content?: DotContent): IDotImg;
156
- input(content?: DotContent): IDotInput;
157
- ins(content?: DotContent): IDotIns;
158
-
159
- kbd(content?: DotContent): IDotElementDocument<IDotGenericElement>;
160
-
161
- keyGen(content?: DotContent): IDotKeyGen;
162
- label(content?: DotContent): IDotLabel;
163
-
164
- legend(content?: DotContent): IDotElementDocument<IDotGenericElement>;
165
-
166
- li(content?: DotContent): IDotLi;
167
-
168
- main(content?: DotContent): IDotElementDocument<IDotGenericElement>;
169
-
170
- map(content?: DotContent): IDotMap;
171
-
172
- mark(content?: DotContent): IDotElementDocument<IDotGenericElement>;
173
-
174
- menu(content?: DotContent): IDotMenu;
175
- meter(content?: DotContent): IDotMeter;
176
-
177
- nav(content?: DotContent): IDotElementDocument<IDotGenericElement>;
178
-
179
- object(content?: DotContent): IDotObject;
180
- ol(content?: DotContent): IDotOl;
181
- optGroup(content?: DotContent): IDotOptGroup;
182
- option(content?: DotContent): IDotOption;
183
- output(content?: DotContent): IDotOutput;
184
-
185
- p(content?: DotContent): IDotElementDocument<IDotGenericElement>;
186
-
187
- param(content?: DotContent): IDotParam;
188
-
189
- pre(content?: DotContent): IDotElementDocument<IDotGenericElement>;
190
-
191
- progress(content?: DotContent): IDotProgress;
192
- q(content?: DotContent): IDotQ;
193
-
194
- rp(content?: DotContent): IDotElementDocument<IDotGenericElement>;
195
- rt(content?: DotContent): IDotElementDocument<IDotGenericElement>;
196
- ruby(content?: DotContent): IDotElementDocument<IDotGenericElement>;
197
- s(content?: DotContent): IDotElementDocument<IDotGenericElement>;
198
- samp(content?: DotContent): IDotElementDocument<IDotGenericElement>;
199
- section(content?: DotContent): IDotElementDocument<IDotGenericElement>;
200
-
201
- select(content?: DotContent): IDotSelect;
202
-
203
- small(content?: DotContent): IDotElementDocument<IDotGenericElement>;
204
-
205
- source(content?: DotContent): IDotSource;
206
-
207
- span(content?: DotContent): IDotElementDocument<IDotGenericElement>;
208
- strong(content?: DotContent): IDotElementDocument<IDotGenericElement>;
209
- svg(content?: DotContent): IDotElementDocument<IDotGenericElement>;
210
- sub(content?: DotContent): IDotElementDocument<IDotGenericElement>;
211
- summary(content?: DotContent): IDotElementDocument<IDotGenericElement>;
212
- sup(content?: DotContent): IDotElementDocument<IDotGenericElement>;
213
-
214
- table(content?: DotContent): IDotTable;
215
- tBody(content?: DotContent): IDotTBody;
216
- td(content?: DotContent): IDotTd;
217
- textArea(content?: DotContent): IDotTextArea;
218
- tFoot(content?: DotContent): IDotTFoot;
219
- th(content?: DotContent): IDotTh;
220
- tHead(content?: DotContent): IDotTHead;
221
- time(content?: DotContent): IDotTime;
222
- tr(content?: DotContent): IDotTr;
223
- track(content?: DotContent): IDotTrack;
224
-
225
- u(content?: DotContent): IDotElementDocument<IDotGenericElement>;
226
- ul(content?: DotContent): IDotElementDocument<IDotGenericElement>;
227
- var(content?: DotContent): IDotElementDocument<IDotGenericElement>;
228
-
229
- video(content?: DotContent): IDotVideo;
230
-
231
- wbr(content?: DotContent): IDotElementDocument<IDotGenericElement>;
232
- }
233
-
234
- // Interface for the dot object:
235
- export interface IDotCore extends IDotDocument
236
- {
237
- (targetSelector: string|Element|Node|NodeList|Array<Node|Element>): IDotElementDocument<IDotGenericElement>;
238
-
239
- version: string;
240
-
241
- navigate(path: string, noHistory?: boolean, force?: boolean): void;
242
- css: IDotCss;
243
- bus: IEventBus;
244
- resetScopeClass(): void;
245
- setTargetWindow(target: Window): IDotDocument;
246
- unsetTargetWindow(): void;
247
- // component(component: typeof Component): void;
248
- // removeComponent = removeComponent;
249
-
250
- Component: {
251
- new (...args: any[]): IComponent
252
- };
253
- }
254
-
255
- /**
256
- * Public interface indicating the return type of the Component builder method. Represents any VDBO containing an element.
257
- * The VDBO returned by Component builder method must contain exactly one element.
258
- */
259
- export interface IDotElement extends IDotElementDocument<IDotGenericElement>{}
260
-
261
- // Attribute interface (for all elements):
262
- export interface IDotElementDocument<T extends IDotDocument> extends IDotDocument
263
- {
264
- // (document?: Element, classPrefix?: number): IDotElement;
265
- // TODO: consider allowing a function that passes in the container for the previous element to allow adding attributes to it.
266
- // TODO: I'd really like to enable this. Unfortunately it's not terribly easy to implement.
267
- // Might be impossible in ES5 (notwithstanding some possible hackery).
268
- //(content?: DotContent): IDotElementDocument<IDotGenericElement>;
269
-
270
- // TODO: this will erase element context, which could be a bug.
271
- // It can be duplicated multiple times below, or find a new solution.
272
- /**
273
- * Create a custom attribute.
274
- */
275
- attr(name: string, value: unknown, arg3?: unknown): T;
276
- /**
277
- * Adds a data-<suffix> attribute to the current element which can contain custom data.
278
- */
279
- customData(suffix: string, value: DotContentPrimitive): T;
280
- /**
281
- * Create a named reference to the current element so that it can be accessed within the current component.
282
- */
283
- ref(name: string, index?:number): T;
284
-
285
- // TODO: move to specific elements.
286
- /** @deprecated Deprecated in HTML5. Use CSS. */
287
- bgColor(value: unknown): T;
288
- /** @deprecated Deprecated in HTML5. Use CSS. */
289
- color(value: unknown): T;
290
- /** @deprecated Deprecated in HTML5. Use CSS. */
291
- aLink(value: unknown): T;
292
- /** @deprecated Deprecated in HTML5. Use CSS. */
293
- archive(value: unknown): T;
294
- // Only add this if we decide to add the search element.
295
- // /** @deprecated Non-standard attribute. */
296
- // autoSave(value: unknown): IDotMajor;
297
-
298
- accessKey(value: unknown): T;
299
- class(value: unknown): T;
300
- contentEditable(value: unknown): T;
301
- dir(value: unknown): T;
302
- draggable(value: unknown): T;
303
- dropZone(value: "move"|"copy"|"link"): T; // Might not be supported anywhere.
304
- hidden(value: unknown): T;
305
- id(value: unknown): T;
306
- itemProp(value: unknown): T;
307
- lang(value: unknown): T;
308
- spellCheck(value: unknown): T;
309
- style(value: string|IDotcssProp): T;
310
- tabIndex(value: unknown): T;
311
- title(value: unknown): T;
312
-
313
- // Events
314
-
315
- onContextMenu(callback: (e: Event)=>void): T; // global
316
- onCopy(callback: (e: Event)=>void): T; // global
317
- onCut(callback: (e: Event)=>void): T; // global
318
- onPagePaste(callback: (e: Event)=>void): T; // global
319
-
320
- // TODO: Really really add:
321
- onDrag(callback: (e: DragEvent)=>void): T; // global
322
- onDragEnd(callback: (e: DragEvent)=>void): T; // global
323
- onDragStart(callback: (e: DragEvent)=>void): T; // global
324
- onDragEnter(callback: (e: DragEvent)=>void): T; // global
325
- onDragOver(callback: (e: DragEvent)=>void): T; // global
326
- onDragLeave(callback: (e: DragEvent)=>void): T; // global
327
- onDrop(callback: (e: DragEvent)=>void): T; // global
328
- onError(callback: (e: Event)=>void): T; // loading elements
329
- onInvalid(callback: (e: DragEvent)=>void): T; // global
330
- onMouseWheel(callback: (e: WheelEvent)=>void): T; // global
331
- onWheel(callback: (e: WheelEvent)=>void): T; // global
332
-
333
- // Configured.
334
- onBlur(callback: (e: FocusEvent)=>void): T;
335
- onChange(callback: (e: Event)=>void): T;
336
- onClick(callback: (e: MouseEvent)=>void): T;
337
- onDblClick(callback: (e: MouseEvent)=>void): T;
338
- onFocus(callback: (e: FocusEvent)=>void): T;
339
- onInput(callback: (e: InputEvent)=>void): T;
340
- onKeyDown(callback: (e: KeyboardEvent)=>void): T;
341
- onKeyPress(callback: (e: KeyboardEvent)=>void): T;
342
- onKeyUp(callback: (e: KeyboardEvent)=>void): T;
343
- onLoad(callback: (e: Event)=>void): T; // On specific resources only.
344
- onMouseDown(callback: (e: MouseEvent)=>void): T;
345
- onMouseEnter(callback: (e: MouseEvent)=>void): T;
346
- onMouseLeave(callback: (e: MouseEvent)=>void): T;
347
- onMouseMove(callback: (e: MouseEvent)=>void): T;
348
- onMouseOut(callback: (e: MouseEvent)=>void): T;
349
- onMouseOver(callback: (e: MouseEvent)=>void): T;
350
- onMouseUp(callback: (e: MouseEvent)=>void): T;
351
- onPointerCancel(callback: (e: PointerEvent)=>void): T;
352
- onPointerDown(callback: (e: PointerEvent)=>void): T;
353
- onPointerEnter(callback: (e: PointerEvent)=>void): T;
354
- onPointerLeave(callback: (e: PointerEvent)=>void): T;
355
- onPointerMove(callback: (e: PointerEvent)=>void): T;
356
- onPointerOut(callback: (e: PointerEvent)=>void): T;
357
- onPointerOver(callback: (e: PointerEvent)=>void): T;
358
- onPointerUp(callback: (e: PointerEvent)=>void): T;
359
-
360
- onTouchMove(callback: (e: TouchEvent)=>void): T;
361
- onTouchCancel(callback: (e: TouchEvent)=>void): T;
362
- onTouchEnd(callback: (e: TouchEvent)=>void): T;
363
- onTouchStart(callback: (e: TouchEvent)=>void): T;
364
-
365
- onReset(callback: (e: Event)=>void): T;
366
- onScroll(callback: (e: MouseEvent)=>void): T;
367
- onSelect(callback: (e: Event)=>void): T;
368
- onSubmit(callback: (e: SubmitEvent)=>void): T;
369
- onUnload(callback: (e: Event)=>void): T;
370
- }
371
-
372
- export interface IDotGenericElement extends IDotElementDocument<IDotGenericElement>{}
373
-
374
- // Interface for specific elements:
375
- interface IDotA extends IDotElementDocument<IDotA>{
376
- download(value: unknown): IDotA;
377
- hRef(value: unknown): IDotA;
378
- hRefLang(value: unknown): IDotA;
379
- media(value: unknown): IDotA;
380
- ping(value: unknown): IDotA;
381
- rel(value: unknown): IDotA;
382
- rev(value: unknown): IDotA;
383
- target(value: unknown): IDotA;
384
- type(value: unknown): IDotA;
385
- }
386
- interface IDotArea extends IDotElementDocument<IDotArea>{
387
- alt(value: unknown): IDotArea;
388
- coords(value: unknown): IDotArea;
389
- download(value: unknown): IDotArea;
390
- hRef(value: unknown): IDotArea;
391
- hRefLang(value: unknown): IDotArea;
392
- media(value: unknown): IDotArea;
393
- noHRef(value: unknown): IDotArea;
394
- rel(value: unknown): IDotArea;
395
- shape(value: unknown): IDotArea;
396
- target(value: unknown): IDotArea;
397
- }
398
- interface IDotAudio extends IDotElementDocument<IDotAudio>{
399
- autoPlay(value: unknown): IDotAudio;
400
- buffered(value: unknown): IDotAudio;
401
- controls(value: unknown): IDotAudio;
402
- loop(value: unknown): IDotAudio;
403
- muted(value: unknown): IDotAudio;
404
- preload(value: unknown): IDotAudio;
405
- src(value: unknown): IDotAudio;
406
-
407
- // Special functions:
408
- pause(): IDotAudio;
409
- play(): IDotAudio;
410
- stop(): IDotAudio;
411
-
412
- // Events:
413
- onAbort(callback: (e: Event)=>void): IDotAudio;
414
- onCantPlayThrough(callback: (e: Event)=>void): IDotAudio;
415
- onDurationChange(callback: (e: Event)=>void): IDotAudio;
416
- onEmptied(callback: (e: Event)=>void): IDotAudio;
417
- onEnded(callback: (e: Event)=>void): IDotAudio;
418
- onLoadedData(callback: (e: Event)=>void): IDotAudio;
419
- onLoadStart(callback: (e: Event)=>void): IDotAudio;
420
- onLoadedMetadata(callback: (e: Event)=>void): IDotAudio;
421
- onPause(callback: (e: Event)=>void): IDotAudio;
422
- onPlay(callback: (e: Event)=>void): IDotAudio;
423
- onPlaying(callback: (e: Event)=>void): IDotAudio;
424
- onProgress(callback: (e: Event)=>void): IDotAudio;
425
- onRateChange(callback: (e: Event)=>void): IDotAudio;
426
- onSeeked(callback: (e: Event)=>void): IDotAudio;
427
- onSeeking(callback: (e: Event)=>void): IDotAudio;
428
- onStalled(callback: (e: Event)=>void): IDotAudio;
429
- onSuspend(callback: (e: Event)=>void): IDotAudio;
430
- onTimeUpdate(callback: (e: Event)=>void): IDotAudio;
431
- onVolumeChange(callback: (e: Event)=>void): IDotAudio;
432
- onWaiting(callback: (e: Event)=>void): IDotAudio;
433
- onCanPlay(callback: (e: Event)=>void): IDotAudio;
434
- }
435
- interface IDotBlockQuote extends IDotElementDocument<IDotBlockQuote>{
436
- quoteCite(value: unknown): IDotBlockQuote; // cite
437
- }
438
- interface IDotBody extends IDotElementDocument<IDotBody>{
439
- /** @deprecated Deprecated in HTML5. Use CSS. */
440
- align(value: unknown): IDotBody;
441
- /** @deprecated Deprecated in HTML5. Use CSS. */
442
- background(value: unknown): IDotBody;
443
-
444
- // Events
445
- onHashChange(callback: (e: Event)=>void): IDotBody;
446
- onOffline(callback: (e: Event)=>void): IDotBody;
447
- onOnline(callback: (e: Event)=>void): IDotBody;
448
- onPageHide(callback: (e: Event)=>void): IDotBody;
449
- onPageShow(callback: (e: Event)=>void): IDotBody;
450
- onPopState(callback: (e: Event)=>void): IDotBody;
451
- onResize(callback: (e: Event)=>void): IDotBody;
452
- onStorage(callback: (e: Event)=>void): IDotBody;
453
- }
454
- interface IDotBr extends IDotElementDocument<IDotBr>{
455
- /** @deprecated Deprecated in HTML5. Use CSS. */
456
- clear(value: unknown): IDotBr;
457
- }
458
- interface IDotButton extends IDotElementDocument<IDotButton>{
459
- autoFocus(value: unknown): IDotButton;
460
- formAction(value: unknown): IDotButton;
461
- disabled(value?: unknown): IDotButton;
462
- name(value: unknown): IDotButton;
463
- type(value: unknown): IDotButton;
464
- whichForm(value: unknown): IDotButton; // form
465
- value(value: unknown): IDotButton;
466
- }
467
- interface IDotCanvas extends IDotElementDocument<IDotCanvas>{
468
- height(value: unknown): IDotCanvas;
469
- width(value: unknown): IDotCanvas;
470
- }
471
- interface IDotCol extends IDotElementDocument<IDotCol>{
472
- /** @deprecated Deprecated in HTML5. Use CSS. */
473
- charOff(value: unknown): IDotCol;
474
- colSpan(value: unknown): IDotCol; // span
475
- vAlign(value: unknown): IDotCol;
476
- }
477
- interface IDotColGroup extends IDotElementDocument<IDotColGroup>{
478
- /** @deprecated Deprecated in HTML5. Use CSS. */
479
- charOff(value: unknown): IDotColGroup;
480
- colSpan(value: unknown): IDotColGroup; // span
481
- vAlign(value: unknown): IDotColGroup;
482
- }
483
- interface IDotDel extends IDotElementDocument<IDotDel>{
484
- dateTime(value: unknown): IDotDel;
485
- quoteCite(value: unknown): IDotDel; // cite
486
- }
487
- interface IDotDetails extends IDotElementDocument<IDotDetails>{
488
- open(value: unknown): IDotDetails;
489
-
490
- // Events:
491
- onToggle (callback: (e: Event)=>void): IDotDetails;
492
- }
493
- interface IDotEmbed extends IDotElementDocument<IDotEmbed>{
494
- height(value: unknown): IDotEmbed;
495
- src(value: unknown): IDotEmbed;
496
- type(value: unknown): IDotEmbed;
497
- width(value: unknown): IDotEmbed;
498
- }
499
- interface IDotFieldSet extends IDotElementDocument<IDotFieldSet>{
500
- disabled(value: unknown): IDotFieldSet;
501
- name(value: unknown): IDotFieldSet;
502
- whichForm(value: unknown): IDotFieldSet; // form
503
- }
504
- interface IDotForm extends IDotElementDocument<IDotForm>{
505
- acceptCharset(value: unknown): IDotForm; // accept-charset
506
- action(value: unknown): IDotForm;
507
- autoComplete(value: unknown): IDotForm;
508
- encType(value: unknown): IDotForm;
509
- method(value: unknown): IDotForm;
510
- name(value: unknown): IDotForm;
511
- noValidate(value: boolean): IDotForm;
512
- rel(value: unknown): IDotForm;
513
- target(value: unknown): IDotForm;
514
- }
515
- interface IDotHr extends IDotElementDocument<IDotHr>{
516
- noShade(value: unknown): IDotHr;
517
- }
518
- interface IDotIFrame extends IDotElementDocument<IDotIFrame>{
519
- height(value: unknown): IDotIFrame;
520
- longDesc(value: unknown): IDotIFrame;
521
- marginHeight(value: unknown): IDotIFrame;
522
- marginWidth(value: unknown): IDotIFrame;
523
- name(value: unknown): IDotIFrame;
524
- sandbox(value: unknown): IDotIFrame;
525
- scrolling(value: unknown): IDotIFrame;
526
- seamless(value: unknown): IDotIFrame;
527
- src(value: unknown): IDotIFrame;
528
- srcDoc(value: unknown): IDotIFrame;
529
- width(value: unknown): IDotIFrame;
530
- }
531
- interface IDotImg extends IDotElementDocument<IDotImg>{
532
- alt(value: unknown): IDotImg;
533
- height(value: unknown): IDotImg;
534
- /** @deprecated Deprecated in HTML5. Use CSS. */
535
- hSpace(value: unknown): IDotImg;
536
- isMap(value: unknown): IDotImg;
537
- longDesc(value: unknown): IDotImg;
538
- sizes(value: unknown): IDotImg;
539
- src(value: unknown): IDotImg;
540
- srcSet(value: unknown): IDotImg;
541
- useMap(value: unknown): IDotImg;
542
- width(value: unknown): IDotImg;
543
- }
544
- interface IDotInput extends IDotElementDocument<IDotInput>{
545
- accept(value: unknown): IDotInput;
546
- alt(value: unknown): IDotInput;
547
- autoComplete(value: unknown): IDotInput;
548
- autoFocus(value: unknown): IDotInput;
549
- checked(value?: boolean): IDotInput;
550
- dirName(value: unknown): IDotInput;
551
- disabled(value: unknown): IDotInput;
552
- formAction(value: unknown): IDotInput;
553
- list(value: unknown): IDotInput;
554
- max(value: unknown): IDotInput;
555
- maxLength(value: unknown): IDotInput;
556
- min(value: unknown): IDotInput;
557
- multiple(value: unknown): IDotInput;
558
- name(value: unknown): IDotInput;
559
- pattern(value: unknown): IDotInput;
560
- placeholder(value: unknown): IDotInput;
561
- readOnly(value: unknown): IDotInput;
562
- required(value: unknown): IDotInput;
563
- size(value: unknown): IDotInput;
564
- src(value: unknown): IDotInput;
565
- step(value: unknown): IDotInput;
566
- type(value: unknown): IDotInput;
567
- whichForm(value: unknown): IDotInput; // form
568
- value(value: unknown): IDotInput;
569
- width(value: unknown): IDotInput;
570
-
571
- // Special functions:
572
- bindTo(value: unknown): IDotInput;
573
- getVal(): string
574
- setVal(value: unknown): IDotInput;
575
-
576
- // Input-specific events:
577
- onSearch(callback: (e: Event)=>void): IDotInput;
578
- }
579
- interface IDotIns extends IDotElementDocument<IDotIns>{
580
- dateTime(value: unknown): IDotIns;
581
- quoteCite(value: unknown): IDotIns; // cite
582
- }
583
- interface IDotKeyGen extends IDotElementDocument<IDotKeyGen>{
584
- challenge(value: unknown): IDotKeyGen;
585
- keyType(value: unknown): IDotKeyGen;
586
- }
587
- interface IDotLabel extends IDotElementDocument<IDotLabel>{
588
- for(value: unknown): IDotLabel;
589
- whichForm(value: unknown): IDotLabel; // form
590
- }
591
- interface IDotLi extends IDotElementDocument<IDotLi>{
592
- value(value: unknown): IDotLi;
593
- }
594
- interface IDotMap extends IDotElementDocument<IDotMap>{
595
- name(value: unknown): IDotMap;
596
- }
597
- interface IDotMenu extends IDotElementDocument<IDotMenu>{
598
- type(value: unknown): IDotMenu;
599
- }
600
- interface IDotMeter extends IDotElementDocument<IDotMeter>{
601
- high(value: unknown): IDotMeter;
602
- low(value: unknown): IDotMeter;
603
- max(value: unknown): IDotMeter;
604
- min(value: unknown): IDotMeter;
605
- optimum(value: unknown): IDotMeter;
606
- whichForm(value: unknown): IDotMeter; // form
607
- value(value: unknown): IDotMeter;
608
- }
609
- interface IDotObject extends IDotElementDocument<IDotObject>{
610
- classId(value: unknown): IDotObject;
611
- codeBase(value: unknown): IDotObject;
612
- codeType(value: unknown): IDotObject;
613
- objectData(value: unknown): IDotObject; // data
614
- declare(value: unknown): IDotObject;
615
- height(value: unknown): IDotObject;
616
- name(value: unknown): IDotObject;
617
- standby(value: unknown): IDotObject;
618
- type(value: unknown): IDotObject;
619
- useMap(value: unknown): IDotObject;
620
- whichForm(value: unknown): IDotObject; // form
621
- width(value: unknown): IDotObject;
622
- }
623
- interface IDotOl extends IDotElementDocument<IDotOl>{
624
- reversed(value: unknown): IDotOl;
625
- start(value: unknown): IDotOl;
626
- }
627
- interface IDotOptGroup extends IDotElementDocument<IDotOptGroup>{
628
- disabled(value: unknown): IDotOptGroup;
629
- }
630
- interface IDotOption extends IDotElementDocument<IDotOption>{
631
- disabled(value: unknown): IDotOption;
632
- optionLabel(value: unknown): IDotOption; // label
633
- selected(value?: boolean): IDotOption;
634
- value(value: unknown): IDotOption;
635
-
636
- // Special functions:
637
- bindTo(value: unknown): IDotOption;
638
- getVal(): string;
639
- setVal(value: unknown): IDotOption;
640
- }
641
- interface IDotOutput extends IDotElementDocument<IDotOutput>{
642
- for(value: unknown): IDotOutput;
643
- name(value: unknown): IDotOutput;
644
- whichForm(value: unknown): IDotOutput; // form
645
- }
646
- interface IDotParam extends IDotElementDocument<IDotParam>{
647
- name(value: unknown): IDotParam;
648
- value(value: unknown): IDotParam;
649
- valueType(value: unknown): IDotParam;
650
- }
651
- interface IDotProgress extends IDotElementDocument<IDotProgress>{
652
- max(value: unknown): IDotProgress;
653
- value(value: unknown): IDotProgress;
654
- }
655
- interface IDotQ extends IDotElementDocument<IDotQ>{
656
- quoteCite(value: unknown): IDotQ; // cite
657
- }
658
- interface IDotSelect extends IDotElementDocument<IDotSelect>{
659
- autoFocus(value: unknown): IDotSelect;
660
- disabled(value: unknown): IDotSelect;
661
- multiple(value: unknown): IDotSelect;
662
- name(value: unknown): IDotSelect;
663
- required(value: unknown): IDotSelect;
664
- size(value: unknown): IDotSelect;
665
- whichForm(value: unknown): IDotSelect; // form
666
-
667
- // Special functions:
668
- bindTo(value: unknown): IDotSelect;
669
- getVal(): string;
670
- setVal(value: unknown): IDotSelect;
671
- }
672
- interface IDotSource extends IDotElementDocument<IDotSource>{
673
- media(value: unknown): IDotSource;
674
- src(value: unknown): IDotSource;
675
- type(value: unknown): IDotSource;
676
- sizes(value: unknown): IDotSource;
677
- src(value: unknown): IDotSource;
678
- srcSet(value: unknown): IDotSource;
679
- type(value: unknown): IDotSource;
680
- }
681
- interface IDotTable extends IDotElementDocument<IDotTable>{
682
- /** @deprecated Deprecated in HTML5. Use CSS. */
683
- border(value: unknown): IDotTable;
684
- /** @deprecated Deprecated in HTML5. Use CSS. */
685
- cellPadding(value: unknown): IDotTable;
686
- /** @deprecated Deprecated in HTML5. Use CSS. */
687
- cellSpacing(value: unknown): IDotTable;
688
- /** @deprecated Deprecated in HTML5. Use CSS. */
689
- frame(value: unknown): IDotTable;
690
- rules(value: unknown): IDotTable;
691
- tableSummary(value: unknown): IDotTable; // summary
692
- }
693
- interface IDotTextArea extends IDotElementDocument<IDotTextArea>{
694
- autoFocus(value: unknown): IDotTextArea;
695
- cols(value: unknown): IDotTextArea;
696
- dirName(value: unknown): IDotTextArea;
697
- disabled(value: unknown): IDotTextArea;
698
- maxLength(value: unknown): IDotTextArea;
699
- name(value: unknown): IDotTextArea;
700
- placeholder(value: unknown): IDotTextArea;
701
- readOnly(value: unknown): IDotTextArea;
702
- required(value: unknown): IDotTextArea;
703
- rows(value: unknown): IDotTextArea;
704
- whichForm(value: unknown): IDotTextArea; // form
705
- wrap(value: unknown): IDotTextArea;
706
-
707
- // Special functions:
708
- bindTo(value: unknown): IDotTextArea;
709
- getVal(): string;
710
- setVal(value: unknown): IDotTextArea;
711
- }
712
- interface IDotTBody extends IDotElementDocument<IDotTBody>{
713
- /** @deprecated Deprecated in HTML5. Use CSS. */
714
- charOff(value: unknown): IDotTBody;
715
- vAlign(value: unknown): IDotTBody;
716
- }
717
- interface IDotTd extends IDotElementDocument<IDotTd>{
718
-
719
- /** @deprecated Deprecated in HTML5. Use CSS. */
720
- axis(value: unknown): IDotTd;
721
- /** @deprecated Deprecated in HTML5. Use CSS. */
722
- char(value: unknown): IDotTd;
723
- colSpan(value: unknown): IDotTd;
724
- /** @deprecated Deprecated in HTML5. Use CSS. */
725
- charOff(value: unknown): IDotTd;
726
- headers(value: unknown): IDotTd;
727
- /** @deprecated Deprecated in HTML5. Use CSS. */
728
- nowrap(value: unknown): IDotTd;
729
- rowSpan(value: unknown): IDotTd;
730
- vAlign(value: unknown): IDotTd;
731
-
732
- }
733
- interface IDotTFoot extends IDotElementDocument<IDotTFoot>{
734
- /** @deprecated Deprecated in HTML5. Use CSS. */
735
- charOff(value: unknown): IDotTFoot;
736
- vAlign(value: unknown): IDotTFoot;
737
- }
738
- interface IDotTime extends IDotElementDocument<IDotTime>{
739
- dateTime(value: unknown): IDotTime;
740
- }
741
- interface IDotTh extends IDotElementDocument<IDotTh>{
742
- /** @deprecated Deprecated in HTML5. Use CSS. */
743
- axis(value: unknown): IDotTh;
744
- colSpan(value: unknown): IDotTh;
745
- /** @deprecated Deprecated in HTML5. Use CSS. */
746
- charOff(value: unknown): IDotTh;
747
- headers(value: unknown): IDotTh;
748
- rowSpan(value: unknown): IDotTh;
749
- scope(value: unknown): IDotTh;
750
- vAlign(value: unknown): IDotTh;
751
- }
752
- interface IDotTHead extends IDotElementDocument<IDotTHead>{
753
- /** @deprecated Deprecated in HTML5. Use CSS. */
754
- charOff(value: unknown): IDotTHead;
755
- vAlign(value: unknown): IDotTHead;
756
- }
757
- interface IDotTr extends IDotElementDocument<IDotTr>{
758
- /** @deprecated Deprecated in HTML5. Use CSS. */
759
- charOff(value: unknown): IDotTr;
760
- vAlign(value: unknown): IDotTr;
761
- }
762
- interface IDotTrack extends IDotElementDocument<IDotTrack>{
763
- default(value: unknown): IDotTrack;
764
- kind(value: unknown): IDotTrack;
765
- src(value: unknown): IDotTrack;
766
- srcLang(value: unknown): IDotTrack;
767
- trackLabel(value: unknown): IDotTrack; // label
768
-
769
- // Events:
770
- onCueChange(callback: (e: Event)=>void): IDotTrack;
771
- }
772
- interface IDotVideo extends IDotElementDocument<IDotVideo>{
773
- autoPlay(value: unknown): IDotVideo;
774
- buffered(value: unknown): IDotVideo;
775
- controls(value: unknown): IDotVideo;
776
- height(value: unknown): IDotVideo;
777
- loop(value: unknown): IDotVideo;
778
- muted(value: unknown): IDotVideo;
779
- poster(value: unknown): IDotVideo;
780
- preload(value: unknown): IDotVideo;
781
- src(value: unknown): IDotVideo;
782
- width(value: unknown): IDotVideo;
783
-
784
- // Special functions:
785
- pause(): IDotVideo;
786
- play(): IDotVideo;
787
- stop(): IDotVideo;
788
-
789
- // Events:
790
- onAbort(callback: (e: Event)=>void): IDotVideo;
791
- onCantPlayThrough(callback: (e: Event)=>void): IDotVideo;
792
- onDurationChange(callback: (e: Event)=>void): IDotVideo;
793
- onEmptied(callback: (e: Event)=>void): IDotVideo;
794
- onEnded(callback: (e: Event)=>void): IDotVideo;
795
- onLoadedData(callback: (e: Event)=>void): IDotVideo;
796
- onLoadStart(callback: (e: Event)=>void): IDotVideo;
797
- onLoadedMetadata(callback: (e: Event)=>void): IDotVideo;
798
- onPause(callback: (e: Event)=>void): IDotVideo;
799
- onPlay(callback: (e: Event)=>void): IDotVideo;
800
- onPlaying(callback: (e: Event)=>void): IDotVideo;
801
- onProgress(callback: (e: Event)=>void): IDotVideo;
802
- onRateChange(callback: (e: Event)=>void): IDotVideo;
803
- onSeeked(callback: (e: Event)=>void): IDotVideo;
804
- onSeeking(callback: (e: Event)=>void): IDotVideo;
805
- onStalled(callback: (e: Event)=>void): IDotVideo;
806
- onSuspend(callback: (e: Event)=>void): IDotVideo;
807
- onTimeUpdate(callback: (e: Event)=>void): IDotVideo;
808
- onVolumeChange(callback: (e: Event)=>void): IDotVideo;
809
- onWaiting(callback: (e: Event)=>void): IDotVideo;
810
- onCanPlay(callback: (e: Event)=>void): IDotVideo;
811
- }