dothtml-interfaces 0.1.20 → 0.1.22
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/package.json +1 -1
- package/src/i-component.d.ts +2 -2
- package/src/i-dot.d.ts +303 -258
package/package.json
CHANGED
package/src/i-component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { IDotGenericElement } from "./i-dot";
|
|
3
3
|
import IDotCss from "./i-dot-css";
|
|
4
4
|
|
|
5
5
|
export interface FrameworkItems {
|
|
@@ -25,7 +25,7 @@ export default interface IComponent {
|
|
|
25
25
|
/**
|
|
26
26
|
* A function returning DOThtml (required).
|
|
27
27
|
*/
|
|
28
|
-
build(...args: Array<any>):
|
|
28
|
+
build(...args: Array<any>): IDotGenericElement;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* An optional function that is called after builder that stylizes the component using a scoped style builder.
|
package/src/i-dot.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type DotContentPrimitive = string|number|boolean;
|
|
|
8
8
|
type DotContentBasic = DotContentPrimitive|Node|Element|NodeList|IComponent|IDotDocument//typeof DotDocument;
|
|
9
9
|
export type DotContent = DotContentBasic|Array<DotContent>|IObservable;//|(()=>DotContent);
|
|
10
10
|
|
|
11
|
-
type
|
|
11
|
+
type AttrVal<T = string|number|boolean> = T|IObservable<T>;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Global interface containing elements.
|
|
@@ -151,6 +151,7 @@ export interface IDotDocument
|
|
|
151
151
|
|
|
152
152
|
kbd(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
153
153
|
|
|
154
|
+
/** @deprecated Deprecated in HTML5. */
|
|
154
155
|
keyGen(content?: DotContent): IDotKeyGen;
|
|
155
156
|
label(content?: DotContent): IDotLabel;
|
|
156
157
|
|
|
@@ -260,12 +261,6 @@ export interface IDotConditionalDocument extends IDotDocument{
|
|
|
260
261
|
otherwise(callback: DotContent): IDotDocument;
|
|
261
262
|
}
|
|
262
263
|
|
|
263
|
-
/**
|
|
264
|
-
* Public interface indicating the return type of the Component builder method. Represents any VDBO containing an element.
|
|
265
|
-
* The VDBO returned by Component builder method must contain exactly one element.
|
|
266
|
-
*/
|
|
267
|
-
export interface IDotElement extends IDotElementDocument<IDotGenericElement>{}
|
|
268
|
-
|
|
269
264
|
// Attribute interface (for all elements):
|
|
270
265
|
export interface IDotElementDocument<T extends IDotDocument> extends IDotDocument
|
|
271
266
|
{
|
|
@@ -290,34 +285,51 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
|
|
|
290
285
|
*/
|
|
291
286
|
ref(name: string, index?:number): T;
|
|
292
287
|
|
|
293
|
-
// TODO: move to specific elements.
|
|
294
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
295
|
-
bgColor(value: unknown): T;
|
|
296
288
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
297
|
-
|
|
289
|
+
bgColor(value: AttrVal<unknown>): T;
|
|
298
290
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
299
|
-
|
|
291
|
+
color(value: AttrVal<unknown>): T;
|
|
300
292
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
// autoSave(value: unknown): IDotMajor;
|
|
293
|
+
aLink(value: AttrVal<unknown>): T;
|
|
294
|
+
/** @deprecated Deprecated in HTML5. */
|
|
295
|
+
archive(value: AttrVal<unknown>): T;
|
|
305
296
|
|
|
306
297
|
// TODO: we're still missing some additional global attributes. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/
|
|
307
|
-
|
|
298
|
+
areaHidden(value: AttrVal<boolean>): T;
|
|
299
|
+
areaLabel(value: AttrVal<string>): T;
|
|
300
|
+
areaDescribedBy(value: AttrVal<string>): T;
|
|
301
|
+
areaControls(value: AttrVal<string>): T;
|
|
302
|
+
areaExpanded(value: AttrVal<boolean>): T;
|
|
303
|
+
areaChecked(value: AttrVal<string>): T;
|
|
304
|
+
areaSelected(value: AttrVal<boolean>): T;
|
|
305
|
+
accessKey(value: AttrVal<string>): T; // This could potentially be enumerated. But care should be taken as these types are already quite complex.
|
|
308
306
|
class(value: unknown): T; // TODO: need a better way of setting classes.
|
|
309
|
-
contentEditable(value:
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
307
|
+
contentEditable(value: AttrVal<"true">|AttrVal<"false">|AttrVal<"plaintext-only">): T;
|
|
308
|
+
contextMenu(value: AttrVal<string>): T;
|
|
309
|
+
dir(value: AttrVal<string>): T;
|
|
310
|
+
draggable(value: AttrVal<"true">|AttrVal<"false">): T;
|
|
311
|
+
dropZone(value: AttrVal<"move">|AttrVal<"copy">|AttrVal<"link">): T;
|
|
312
|
+
exportParts(value: AttrVal<string>): T;
|
|
313
|
+
hidden(value: AttrVal<boolean>): T;
|
|
314
314
|
id(value: string): T;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
inert(value: AttrVal<boolean>): T;
|
|
316
|
+
inputMode(value: AttrVal<string>): T;
|
|
317
|
+
is(value: AttrVal<string>): T;
|
|
318
|
+
itemId(value: AttrVal<string>): T;
|
|
319
|
+
itemProp(value: AttrVal<string>): T;
|
|
320
|
+
itemRef(value: AttrVal<string>): T;
|
|
321
|
+
itemScope(value: AttrVal<string>): T;
|
|
322
|
+
itemType(value: AttrVal<string>): T;
|
|
323
|
+
lang(value: AttrVal<string>): T;
|
|
324
|
+
nOnce(value: AttrVal<string>): T;
|
|
325
|
+
part(value: AttrVal<string>): T;
|
|
326
|
+
role(value: AttrVal<string>): T;
|
|
327
|
+
spellCheck(value: AttrVal<"true">|AttrVal<"false">): T;
|
|
318
328
|
style(value: string|IDotcssProp): T;
|
|
319
|
-
tabIndex(value:
|
|
320
|
-
title(value:
|
|
329
|
+
tabIndex(value: AttrVal<number>): T;
|
|
330
|
+
title(value: AttrVal<string>): T;
|
|
331
|
+
translate(value: AttrVal<string>): T;
|
|
332
|
+
virtualKeyboardPolicy(value: AttrVal<"auto">|AttrVal<"manual">): T;
|
|
321
333
|
|
|
322
334
|
// Events
|
|
323
335
|
|
|
@@ -387,36 +399,44 @@ interface IMountedComponent extends IDotDocument{
|
|
|
387
399
|
}
|
|
388
400
|
|
|
389
401
|
interface IDotA extends IDotElementDocument<IDotA>{
|
|
390
|
-
download(value:
|
|
391
|
-
hRef(value:
|
|
392
|
-
hRefLang(value:
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
402
|
+
download(value: AttrVal<boolean>): IDotA;
|
|
403
|
+
hRef(value: AttrVal<string>): IDotA;
|
|
404
|
+
hRefLang(value: AttrVal<string>): IDotA;
|
|
405
|
+
charset(value: AttrVal<string>): IDotA;
|
|
406
|
+
coords(value: AttrVal<string>): IDotA;
|
|
407
|
+
shape(value: AttrVal<string>): IDotA;
|
|
408
|
+
media(value: AttrVal<string>): IDotA;
|
|
409
|
+
ping(value: AttrVal<string>): IDotA; // Space separated. Consider an array. Or do what we're doing for class.
|
|
410
|
+
rel(value: AttrVal<string>): IDotA;
|
|
411
|
+
/** @deprecated Deprecated in HTML5. */
|
|
412
|
+
rev(value: AttrVal<unknown>): IDotA;
|
|
413
|
+
name(value: AttrVal<string>): IDotA;
|
|
414
|
+
// rev(value: unknown): IDotA; // Not supported in HTML 5.
|
|
415
|
+
target(value: AttrVal<"_blank">|AttrVal<"_parent">|AttrVal<"_self">|AttrVal<"_top">): IDotA;
|
|
416
|
+
type(value: AttrVal<string>): IDotA;
|
|
399
417
|
}
|
|
400
418
|
interface IDotArea extends IDotElementDocument<IDotArea>{
|
|
401
|
-
alt(value:
|
|
402
|
-
coords(value:
|
|
403
|
-
download(value:
|
|
404
|
-
hRef(value:
|
|
405
|
-
hRefLang(value:
|
|
406
|
-
media(value:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
419
|
+
alt(value: AttrVal<string>): IDotArea;
|
|
420
|
+
coords(value: AttrVal<string>): IDotArea;
|
|
421
|
+
download(value: AttrVal<string>): IDotArea;
|
|
422
|
+
hRef(value: AttrVal<string>): IDotArea;
|
|
423
|
+
hRefLang(value: AttrVal<string>): IDotArea;
|
|
424
|
+
media(value: AttrVal<string>): IDotArea;
|
|
425
|
+
/** @deprecated Deprecated in HTML5. */
|
|
426
|
+
noHRef(value: AttrVal<string>): IDotArea;
|
|
427
|
+
rel(value: AttrVal<string>): IDotArea;
|
|
428
|
+
shape(value: AttrVal<string>): IDotArea;
|
|
429
|
+
target(value: AttrVal<string>): IDotArea;
|
|
411
430
|
}
|
|
412
431
|
interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
413
|
-
autoPlay(value:
|
|
414
|
-
buffered(value: unknown): IDotAudio;
|
|
415
|
-
controls(value:
|
|
416
|
-
loop(value:
|
|
417
|
-
muted(value:
|
|
418
|
-
preload(value:
|
|
419
|
-
src(value:
|
|
432
|
+
autoPlay(value: AttrVal<boolean>): IDotAudio;
|
|
433
|
+
// buffered(value: unknown): IDotAudio; // Not used?
|
|
434
|
+
controls(value: AttrVal<boolean>): IDotAudio;
|
|
435
|
+
loop(value: AttrVal<boolean>): IDotAudio;
|
|
436
|
+
muted(value: AttrVal<boolean>): IDotAudio;
|
|
437
|
+
preload(value: AttrVal<"auto">|AttrVal<"metadata">|AttrVal<"none">): IDotAudio;
|
|
438
|
+
src(value: AttrVal<string>): IDotAudio;
|
|
439
|
+
crossOrigin(value: AttrVal<"anonymous">|AttrVal<"use-credentials">): IDotAudio;
|
|
420
440
|
|
|
421
441
|
// Special functions:
|
|
422
442
|
pause(): IDotAudio;
|
|
@@ -447,7 +467,7 @@ interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
|
447
467
|
onCanPlay(callback: (e: Event)=>void): IDotAudio;
|
|
448
468
|
}
|
|
449
469
|
interface IDotBlockQuote extends IDotElementDocument<IDotBlockQuote>{
|
|
450
|
-
quoteCite(value:
|
|
470
|
+
quoteCite(value: AttrVal<string>): IDotBlockQuote; // alias for cite
|
|
451
471
|
}
|
|
452
472
|
interface IDotBody extends IDotElementDocument<IDotBody>{
|
|
453
473
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
@@ -470,117 +490,133 @@ interface IDotBr extends IDotElementDocument<IDotBr>{
|
|
|
470
490
|
clear(value: unknown): IDotBr;
|
|
471
491
|
}
|
|
472
492
|
interface IDotButton extends IDotElementDocument<IDotButton>{
|
|
473
|
-
autoFocus(value:
|
|
474
|
-
formAction(value:
|
|
475
|
-
disabled(value?:
|
|
476
|
-
name(value:
|
|
477
|
-
type(value:
|
|
478
|
-
whichForm(value:
|
|
479
|
-
value(value:
|
|
493
|
+
autoFocus(value: AttrVal<boolean>): IDotButton;
|
|
494
|
+
formAction(value: AttrVal<string>): IDotButton;
|
|
495
|
+
disabled(value?: AttrVal<boolean>): IDotButton;
|
|
496
|
+
name(value: AttrVal<string>): IDotButton;
|
|
497
|
+
type(value: AttrVal<"button">|AttrVal<"submit">|AttrVal<"reset">): IDotButton;
|
|
498
|
+
whichForm(value: AttrVal<string>): IDotButton; // alias for form
|
|
499
|
+
value(value: AttrVal<string>): IDotButton;
|
|
480
500
|
}
|
|
481
501
|
interface IDotCanvas extends IDotElementDocument<IDotCanvas>{
|
|
482
|
-
height(value:
|
|
483
|
-
width(value:
|
|
502
|
+
height(value: AttrVal<number>): IDotCanvas;
|
|
503
|
+
width(value: AttrVal<number>): IDotCanvas;
|
|
484
504
|
}
|
|
485
505
|
interface IDotCol extends IDotElementDocument<IDotCol>{
|
|
486
506
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
487
|
-
charOff(value: unknown): IDotCol;
|
|
488
|
-
colSpan(value:
|
|
489
|
-
vAlign(value:
|
|
507
|
+
charOff(value: AttrVal<unknown>): IDotCol;
|
|
508
|
+
colSpan(value: AttrVal<number>): IDotCol; // alias for span
|
|
509
|
+
vAlign(value: AttrVal<number>): IDotCol;
|
|
490
510
|
}
|
|
491
511
|
interface IDotColGroup extends IDotElementDocument<IDotColGroup>{
|
|
492
512
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
493
|
-
charOff(value: unknown): IDotColGroup;
|
|
494
|
-
colSpan(value:
|
|
495
|
-
|
|
513
|
+
charOff(value: AttrVal<unknown>): IDotColGroup;
|
|
514
|
+
colSpan(value: AttrVal<number>): IDotColGroup; // alias for span
|
|
515
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
516
|
+
vAlign(value: AttrVal<unknown>): IDotColGroup;
|
|
496
517
|
}
|
|
497
518
|
interface IDotDel extends IDotElementDocument<IDotDel>{
|
|
498
|
-
dateTime(value:
|
|
499
|
-
quoteCite(value:
|
|
519
|
+
dateTime(value: AttrVal<string>): IDotDel; // Would be cool if this could accept dates and just format them internally...
|
|
520
|
+
quoteCite(value: AttrVal<string>): IDotDel; // alias for cite
|
|
500
521
|
}
|
|
501
522
|
interface IDotDetails extends IDotElementDocument<IDotDetails>{
|
|
502
|
-
open(value:
|
|
523
|
+
open(value: AttrVal<boolean>): IDotDetails;
|
|
503
524
|
|
|
504
525
|
// Events:
|
|
505
526
|
onToggle (callback: (e: Event)=>void): IDotDetails;
|
|
506
527
|
}
|
|
507
528
|
interface IDotEmbed extends IDotElementDocument<IDotEmbed>{
|
|
508
|
-
height(value:
|
|
509
|
-
src(value:
|
|
510
|
-
type(value:
|
|
511
|
-
width(value:
|
|
529
|
+
height(value: AttrVal<number>): IDotEmbed;
|
|
530
|
+
src(value: AttrVal<string>): IDotEmbed;
|
|
531
|
+
type(value: AttrVal<string>): IDotEmbed;
|
|
532
|
+
width(value: AttrVal<number>): IDotEmbed;
|
|
512
533
|
}
|
|
513
534
|
interface IDotFieldSet extends IDotElementDocument<IDotFieldSet>{
|
|
514
|
-
disabled(value:
|
|
515
|
-
name(value:
|
|
516
|
-
whichForm(value:
|
|
535
|
+
disabled(value: AttrVal<boolean>): IDotFieldSet;
|
|
536
|
+
name(value: AttrVal<string>): IDotFieldSet;
|
|
537
|
+
whichForm(value: AttrVal<string>): IDotFieldSet; // alias for form
|
|
517
538
|
}
|
|
518
539
|
interface IDotForm extends IDotElementDocument<IDotForm>{
|
|
519
|
-
acceptCharset(value:
|
|
520
|
-
action(value:
|
|
521
|
-
autoComplete(value:
|
|
522
|
-
encType(value:
|
|
523
|
-
method(value:
|
|
524
|
-
name(value:
|
|
525
|
-
noValidate(value: boolean): IDotForm;
|
|
526
|
-
rel(value:
|
|
527
|
-
target(value:
|
|
540
|
+
acceptCharset(value: AttrVal<string>): IDotForm; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
|
|
541
|
+
action(value: AttrVal<string>): IDotForm;
|
|
542
|
+
autoComplete(value: AttrVal<"on">|AttrVal<"off">): IDotForm;
|
|
543
|
+
encType(value: AttrVal<"application/x-www-form-urlencoded">|AttrVal<"multipart/form-data">|AttrVal<"text/plain">): IDotForm;
|
|
544
|
+
method(value: AttrVal<"get">|AttrVal<"post">): IDotForm;
|
|
545
|
+
name(value: AttrVal<string>): IDotForm;
|
|
546
|
+
noValidate(value: AttrVal<boolean>): IDotForm;
|
|
547
|
+
// rel(value: PrimativeOrObservable<string>): IDotForm; // Not used with forms?
|
|
548
|
+
target(value: AttrVal<"_self">|AttrVal<"_blank">|AttrVal<"_parent">|AttrVal<"_top">): IDotForm;
|
|
528
549
|
}
|
|
529
550
|
interface IDotHr extends IDotElementDocument<IDotHr>{
|
|
530
551
|
noShade(value: unknown): IDotHr;
|
|
531
552
|
}
|
|
532
553
|
interface IDotIFrame extends IDotElementDocument<IDotIFrame>{
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
554
|
+
allow(value: AttrVal<string>): IDotIFrame;
|
|
555
|
+
allowFullScreen(value: AttrVal<boolean>): IDotIFrame;
|
|
556
|
+
/** @deprecated Deprecated in HTML5. */
|
|
557
|
+
frameBorder(value: AttrVal<0>|AttrVal<1>): IDotIFrame;
|
|
558
|
+
height(value: AttrVal<number>): IDotIFrame;
|
|
559
|
+
/** @deprecated Deprecated in HTML5. */
|
|
560
|
+
longDesc(value: AttrVal<string>): IDotIFrame;
|
|
561
|
+
marginHeight(value: AttrVal<number>): IDotIFrame;
|
|
562
|
+
marginWidth(value: AttrVal<number>): IDotIFrame;
|
|
563
|
+
name(value: AttrVal<string>): IDotIFrame;
|
|
564
|
+
referrerPolicy(value: AttrVal<string>): IDotIFrame;
|
|
565
|
+
sandbox(value: AttrVal<string>): IDotIFrame;
|
|
566
|
+
/** @deprecated Deprecated in HTML5. */
|
|
567
|
+
scrolling(value: AttrVal<string>): IDotIFrame;
|
|
568
|
+
seamless(value: AttrVal<boolean>): IDotIFrame;
|
|
569
|
+
src(value: AttrVal<string>): IDotIFrame;
|
|
570
|
+
srcDoc(value: AttrVal<string>): IDotIFrame;
|
|
571
|
+
width(value: AttrVal<number>): IDotIFrame;
|
|
544
572
|
}
|
|
545
573
|
interface IDotImg extends IDotElementDocument<IDotImg>{
|
|
546
|
-
alt(value:
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
574
|
+
alt(value: AttrVal<string>): IDotImg;
|
|
575
|
+
crossOrigin(value: AttrVal<"anonymous">|AttrVal<"use-credentials">): IDotImg;
|
|
576
|
+
decoding(value: AttrVal<"async">|AttrVal<"auto">|AttrVal<"sync">): IDotImg;
|
|
577
|
+
height(value: AttrVal<number>): IDotImg;
|
|
578
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
579
|
+
hSpace(value: AttrVal<unknown>): IDotImg;
|
|
580
|
+
isMap(value: AttrVal<boolean>): IDotImg;
|
|
581
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
582
|
+
loading(value: AttrVal<"eager">|AttrVal<"lazy">): IDotImg;
|
|
583
|
+
longDesc(value: AttrVal<string>): IDotImg;
|
|
584
|
+
referrerPolicy(value: AttrVal<string>): IDotImg;
|
|
585
|
+
sizes(value: AttrVal<string>): IDotImg;
|
|
586
|
+
src(value: AttrVal<string>): IDotImg;
|
|
587
|
+
srcSet(value: AttrVal<string>): IDotImg; // Comma separated. Consider accepting an array.
|
|
588
|
+
useMap(value: AttrVal<number>): IDotImg;
|
|
589
|
+
width(value: AttrVal<number>): IDotImg;
|
|
557
590
|
}
|
|
558
591
|
interface IDotInput extends IDotElementDocument<IDotInput>{
|
|
559
|
-
accept(value:
|
|
560
|
-
alt(value:
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
592
|
+
accept(value: AttrVal<string>): IDotInput;
|
|
593
|
+
alt(value: AttrVal<string>): IDotInput;
|
|
594
|
+
autoCapitalize(value: AttrVal<"none">|AttrVal<"sentences">|AttrVal<"words">|AttrVal<"characters">): IDotInput;
|
|
595
|
+
autoComplete(value: AttrVal<"on">|AttrVal<"off">): IDotInput;
|
|
596
|
+
autoFocus(value: AttrVal<boolean>): IDotInput;
|
|
597
|
+
checked(value?: AttrVal<boolean>): IDotInput;
|
|
598
|
+
enterKeyHint(value: AttrVal<"enter">|AttrVal<"done">|AttrVal<"go">|AttrVal<"next">|AttrVal<"preveous">|AttrVal<"search">|AttrVal<"send">): IDotInput;
|
|
599
|
+
dirName(value: AttrVal<string>): IDotInput;
|
|
600
|
+
disabled(value: AttrVal<boolean>): IDotInput;
|
|
601
|
+
formAction(value: AttrVal<string>): IDotInput;
|
|
602
|
+
height(value: AttrVal<number>): IDotInput;
|
|
603
|
+
list(value: AttrVal<string>): IDotInput;
|
|
604
|
+
max(value: AttrVal<number>): IDotInput;
|
|
605
|
+
maxLength(value: AttrVal<number>): IDotInput;
|
|
606
|
+
min(value: AttrVal<number>): IDotInput;
|
|
607
|
+
multiple(value: AttrVal<boolean>): IDotInput;
|
|
608
|
+
name(value: AttrVal<string>): IDotInput;
|
|
609
|
+
pattern(value: AttrVal<string>): IDotInput;
|
|
610
|
+
placeholder(value: AttrVal<string>): IDotInput;
|
|
611
|
+
readOnly(value: AttrVal<boolean>): IDotInput;
|
|
612
|
+
required(value: AttrVal<boolean>): IDotInput;
|
|
613
|
+
size(value: AttrVal<number>): IDotInput;
|
|
614
|
+
src(value: AttrVal<string>): IDotInput;
|
|
615
|
+
step(value: AttrVal<string>|AttrVal<number>): IDotInput;
|
|
580
616
|
type(value: "button"|"checkbox"|"color"|"date"|"datetime-local"|"email"|"file"|"hidden"|"image"|"month"|"number"|"password"|"radio"|"range"|"reset"|"search"|"submit"|"tel"|"text"|"time"|"url"|"week"): IDotInput;
|
|
581
|
-
whichForm(value:
|
|
582
|
-
value(value:
|
|
583
|
-
width(value:
|
|
617
|
+
whichForm(value: AttrVal<string>): IDotInput; // form
|
|
618
|
+
value(value: AttrVal<string>): IDotInput;
|
|
619
|
+
width(value: AttrVal<number>): IDotInput;
|
|
584
620
|
|
|
585
621
|
// Special functions:
|
|
586
622
|
// getVal(): string
|
|
@@ -590,206 +626,215 @@ interface IDotInput extends IDotElementDocument<IDotInput>{
|
|
|
590
626
|
onSearch(callback: (e: Event)=>void): IDotInput;
|
|
591
627
|
}
|
|
592
628
|
interface IDotIns extends IDotElementDocument<IDotIns>{
|
|
593
|
-
dateTime(value:
|
|
594
|
-
quoteCite(value:
|
|
629
|
+
dateTime(value: AttrVal<string>): IDotIns;
|
|
630
|
+
quoteCite(value: AttrVal<string>): IDotIns; // alias for cite
|
|
595
631
|
}
|
|
596
632
|
interface IDotKeyGen extends IDotElementDocument<IDotKeyGen>{
|
|
597
|
-
challenge(value:
|
|
598
|
-
keyType(value:
|
|
633
|
+
challenge(value: AttrVal<string>): IDotKeyGen;
|
|
634
|
+
keyType(value: AttrVal<string>): IDotKeyGen;
|
|
599
635
|
}
|
|
600
636
|
interface IDotLabel extends IDotElementDocument<IDotLabel>{
|
|
601
|
-
for(value:
|
|
602
|
-
whichForm(value: unknown): IDotLabel; // form
|
|
637
|
+
for(value: AttrVal<string>): IDotLabel;
|
|
603
638
|
}
|
|
604
639
|
interface IDotLi extends IDotElementDocument<IDotLi>{
|
|
605
|
-
value(value:
|
|
640
|
+
value(value: AttrVal<number>): IDotLi;
|
|
606
641
|
}
|
|
607
642
|
interface IDotMap extends IDotElementDocument<IDotMap>{
|
|
608
|
-
name(value:
|
|
643
|
+
name(value: AttrVal<string>): IDotMap;
|
|
609
644
|
}
|
|
610
645
|
interface IDotMenu extends IDotElementDocument<IDotMenu>{
|
|
611
|
-
type(value:
|
|
646
|
+
type(value: AttrVal<string>): IDotMenu;
|
|
612
647
|
}
|
|
613
648
|
interface IDotMeter extends IDotElementDocument<IDotMeter>{
|
|
614
|
-
high(value:
|
|
615
|
-
low(value:
|
|
616
|
-
max(value:
|
|
617
|
-
min(value:
|
|
618
|
-
optimum(value:
|
|
619
|
-
|
|
620
|
-
value(value: unknown): IDotMeter;
|
|
649
|
+
high(value: AttrVal<number>): IDotMeter;
|
|
650
|
+
low(value: AttrVal<number>): IDotMeter;
|
|
651
|
+
max(value: AttrVal<number>): IDotMeter;
|
|
652
|
+
min(value: AttrVal<number>): IDotMeter;
|
|
653
|
+
optimum(value: AttrVal<number>): IDotMeter;
|
|
654
|
+
value(value: AttrVal<number>): IDotMeter;
|
|
621
655
|
}
|
|
622
656
|
interface IDotObject extends IDotElementDocument<IDotObject>{
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
width(value:
|
|
657
|
+
archive(value: AttrVal<string>): IDotObject;
|
|
658
|
+
classId(value: AttrVal<string>): IDotObject;
|
|
659
|
+
codeBase(value: AttrVal<string>): IDotObject;
|
|
660
|
+
codeType(value: AttrVal<string>): IDotObject;
|
|
661
|
+
objectData(value: AttrVal<string>): IDotObject; // alias for data
|
|
662
|
+
declare(value: AttrVal<boolean>): IDotObject;
|
|
663
|
+
height(value: AttrVal<number>): IDotObject;
|
|
664
|
+
name(value: AttrVal<string>): IDotObject;
|
|
665
|
+
standby(value: AttrVal<string>): IDotObject;
|
|
666
|
+
type(value: AttrVal<string>): IDotObject;
|
|
667
|
+
useMap(value: AttrVal<string>): IDotObject;
|
|
668
|
+
width(value: AttrVal<number>): IDotObject;
|
|
635
669
|
}
|
|
636
670
|
interface IDotOl extends IDotElementDocument<IDotOl>{
|
|
637
|
-
reversed(value:
|
|
638
|
-
start(value:
|
|
671
|
+
reversed(value: boolean): IDotOl;
|
|
672
|
+
start(value: number): IDotOl;
|
|
639
673
|
}
|
|
640
674
|
interface IDotOptGroup extends IDotElementDocument<IDotOptGroup>{
|
|
641
|
-
disabled(value:
|
|
675
|
+
disabled(value: boolean): IDotOptGroup;
|
|
642
676
|
}
|
|
643
677
|
interface IDotOption extends IDotElementDocument<IDotOption>{
|
|
644
|
-
disabled(value:
|
|
645
|
-
optionLabel(value:
|
|
646
|
-
selected(value
|
|
647
|
-
value(value:
|
|
678
|
+
disabled(value: AttrVal<boolean>): IDotOption;
|
|
679
|
+
optionLabel(value: AttrVal<string>): IDotOption; // alias for label
|
|
680
|
+
selected(value: AttrVal<boolean>): IDotOption;
|
|
681
|
+
value(value: AttrVal<string>): IDotOption;
|
|
648
682
|
|
|
649
683
|
// Special functions:
|
|
650
684
|
// getVal(): string;
|
|
651
685
|
// setVal(value: unknown): IDotOption;
|
|
652
686
|
}
|
|
653
687
|
interface IDotOutput extends IDotElementDocument<IDotOutput>{
|
|
654
|
-
for(value:
|
|
655
|
-
name(value:
|
|
656
|
-
whichForm(value:
|
|
688
|
+
for(value: AttrVal<string>): IDotOutput;
|
|
689
|
+
name(value: AttrVal<string>): IDotOutput;
|
|
690
|
+
whichForm(value: AttrVal<string>): IDotOutput; // alias for form
|
|
657
691
|
}
|
|
658
692
|
interface IDotParam extends IDotElementDocument<IDotParam>{
|
|
659
|
-
name(value:
|
|
660
|
-
value(value:
|
|
661
|
-
|
|
693
|
+
name(value: AttrVal<string>): IDotParam;
|
|
694
|
+
value(value: AttrVal<string>): IDotParam;
|
|
695
|
+
/** @deprecated Deprecated in HTML5. */
|
|
696
|
+
valueType(value: AttrVal<unknown>): IDotParam;
|
|
662
697
|
}
|
|
663
698
|
interface IDotProgress extends IDotElementDocument<IDotProgress>{
|
|
664
|
-
max(value:
|
|
665
|
-
value(value:
|
|
699
|
+
max(value: AttrVal<number>): IDotProgress;
|
|
700
|
+
value(value: AttrVal<number>): IDotProgress;
|
|
666
701
|
}
|
|
667
702
|
interface IDotQ extends IDotElementDocument<IDotQ>{
|
|
668
|
-
quoteCite(value:
|
|
703
|
+
quoteCite(value: AttrVal<string>): IDotQ; // alias for cite
|
|
669
704
|
}
|
|
670
705
|
interface IDotSelect extends IDotElementDocument<IDotSelect>{
|
|
671
|
-
autoFocus(value:
|
|
672
|
-
disabled(value:
|
|
673
|
-
multiple(value:
|
|
674
|
-
name(value:
|
|
675
|
-
required(value:
|
|
676
|
-
size(value:
|
|
677
|
-
whichForm(value:
|
|
678
|
-
|
|
679
|
-
// Special functions:
|
|
680
|
-
// getVal(): string;
|
|
681
|
-
// setVal(value: unknown): IDotSelect;
|
|
706
|
+
autoFocus(value: AttrVal<boolean>): IDotSelect;
|
|
707
|
+
disabled(value: AttrVal<boolean>): IDotSelect;
|
|
708
|
+
multiple(value: AttrVal<boolean>): IDotSelect;
|
|
709
|
+
name(value: AttrVal<string>): IDotSelect;
|
|
710
|
+
required(value: AttrVal<boolean>): IDotSelect;
|
|
711
|
+
size(value: AttrVal<number>): IDotSelect;
|
|
712
|
+
whichForm(value: AttrVal<string>): IDotSelect; // alias for form
|
|
713
|
+
value(value: AttrVal<string>); // Pseudo attribute for convenience.
|
|
682
714
|
}
|
|
683
715
|
interface IDotSource extends IDotElementDocument<IDotSource>{
|
|
684
|
-
media(value:
|
|
685
|
-
src(value:
|
|
686
|
-
type(value:
|
|
687
|
-
sizes(value:
|
|
688
|
-
src(value:
|
|
689
|
-
srcSet(value:
|
|
690
|
-
type(value:
|
|
716
|
+
media(value: AttrVal<string>): IDotSource;
|
|
717
|
+
src(value: AttrVal<string>): IDotSource;
|
|
718
|
+
type(value: AttrVal<string>): IDotSource;
|
|
719
|
+
sizes(value: AttrVal<string>): IDotSource;
|
|
720
|
+
src(value: AttrVal<string>): IDotSource;
|
|
721
|
+
srcSet(value: AttrVal<string>): IDotSource;
|
|
722
|
+
type(value: AttrVal<string>): IDotSource;
|
|
691
723
|
}
|
|
692
724
|
interface IDotTable extends IDotElementDocument<IDotTable>{
|
|
693
725
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
694
|
-
border(value:
|
|
726
|
+
border(value: AttrVal<string>|AttrVal<number>): IDotTable;
|
|
727
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
728
|
+
cellPadding(value: AttrVal<string>|AttrVal<number>): IDotTable;
|
|
695
729
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
696
|
-
|
|
730
|
+
cellSpacing(value: AttrVal<string>|AttrVal<number>): IDotTable;
|
|
697
731
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
698
|
-
|
|
732
|
+
frame(value: AttrVal<string>|AttrVal<number>): IDotTable;
|
|
733
|
+
/** @deprecated Deprecated in HTML5. */
|
|
734
|
+
height(value: AttrVal<number>): IDotTable;
|
|
699
735
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
tableSummary(value:
|
|
736
|
+
rules(value: AttrVal<string>): IDotTable;
|
|
737
|
+
/** @deprecated Deprecated in HTML5. */
|
|
738
|
+
tableSummary(value: AttrVal<string>): IDotTable; // summary
|
|
739
|
+
/** @deprecated Deprecated in HTML5. */
|
|
740
|
+
width(value: AttrVal<number>): IDotTable;
|
|
703
741
|
}
|
|
704
742
|
interface IDotTextArea extends IDotElementDocument<IDotTextArea>{
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
// setVal(value: unknown): IDotTextArea;
|
|
743
|
+
autoCapitalize(value: AttrVal<"none">|AttrVal<"sentences">|AttrVal<"words">|AttrVal<"characters">): IDotTextArea;
|
|
744
|
+
autoFocus(value: AttrVal<boolean>): IDotTextArea;
|
|
745
|
+
cols(value: AttrVal<number>): IDotTextArea;
|
|
746
|
+
dirName(value: AttrVal<string>): IDotTextArea;
|
|
747
|
+
disabled(value: AttrVal<boolean>): IDotTextArea;
|
|
748
|
+
enterKeyHint(value: AttrVal<"enter">|AttrVal<"done">|AttrVal<"go">|AttrVal<"next">|AttrVal<"preveous">|AttrVal<"search">|AttrVal<"send">): IDotTextArea;
|
|
749
|
+
maxLength(value: AttrVal<number>): IDotTextArea;
|
|
750
|
+
name(value: AttrVal<string>): IDotTextArea;
|
|
751
|
+
placeholder(value: AttrVal<string>): IDotTextArea;
|
|
752
|
+
readOnly(value: AttrVal<boolean>): IDotTextArea;
|
|
753
|
+
required(value: AttrVal<boolean>): IDotTextArea;
|
|
754
|
+
rows(value: AttrVal<number>): IDotTextArea;
|
|
755
|
+
whichForm(value: AttrVal<string>): IDotTextArea; // alias for form
|
|
756
|
+
wrap(value: AttrVal<string>): IDotTextArea;
|
|
757
|
+
value(value: AttrVal<string>); // Pseudo attribute for convenience.
|
|
721
758
|
}
|
|
722
759
|
interface IDotTBody extends IDotElementDocument<IDotTBody>{
|
|
723
760
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
724
|
-
charOff(value: unknown): IDotTBody;
|
|
725
|
-
|
|
761
|
+
charOff(value: AttrVal<unknown>): IDotTBody;
|
|
762
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
763
|
+
vAlign(value: AttrVal<unknown>): IDotTBody;
|
|
726
764
|
}
|
|
727
765
|
interface IDotTd extends IDotElementDocument<IDotTd>{
|
|
728
766
|
|
|
729
767
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
730
|
-
axis(value:
|
|
768
|
+
axis(value: AttrVal<string>): IDotTd;
|
|
731
769
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
732
|
-
char(value:
|
|
733
|
-
colSpan(value:
|
|
770
|
+
char(value: AttrVal<string>): IDotTd;
|
|
771
|
+
colSpan(value: AttrVal<number>): IDotTd;
|
|
734
772
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
735
|
-
charOff(value:
|
|
736
|
-
headers(value:
|
|
773
|
+
charOff(value: AttrVal<string>): IDotTd;
|
|
774
|
+
headers(value: AttrVal<string>): IDotTd;
|
|
737
775
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
738
|
-
|
|
739
|
-
rowSpan(value:
|
|
740
|
-
|
|
741
|
-
|
|
776
|
+
noWrap(value: AttrVal<boolean>): IDotTd;
|
|
777
|
+
rowSpan(value: AttrVal<number>): IDotTd;
|
|
778
|
+
scope(value: AttrVal<string>): IDotTd;
|
|
779
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
780
|
+
vAlign(value: AttrVal<string>): IDotTd;
|
|
742
781
|
}
|
|
743
782
|
interface IDotTFoot extends IDotElementDocument<IDotTFoot>{
|
|
744
783
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
745
|
-
charOff(value:
|
|
746
|
-
|
|
784
|
+
charOff(value: AttrVal<number>): IDotTFoot;
|
|
785
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
786
|
+
vAlign(value: AttrVal<string>): IDotTFoot;
|
|
747
787
|
}
|
|
748
788
|
interface IDotTime extends IDotElementDocument<IDotTime>{
|
|
749
|
-
dateTime(value:
|
|
789
|
+
dateTime(value: AttrVal<string>): IDotTime;
|
|
750
790
|
}
|
|
751
791
|
interface IDotTh extends IDotElementDocument<IDotTh>{
|
|
752
792
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
753
|
-
axis(value:
|
|
754
|
-
colSpan(value:
|
|
793
|
+
axis(value: AttrVal<string>): IDotTh;
|
|
794
|
+
colSpan(value: AttrVal<number>): IDotTh;
|
|
795
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
796
|
+
charOff(value: AttrVal<string>): IDotTh;
|
|
797
|
+
headers(value: AttrVal<string>): IDotTh;
|
|
798
|
+
rowSpan(value: AttrVal<number>): IDotTh;
|
|
799
|
+
scope(value: AttrVal<string>): IDotTh;
|
|
755
800
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
756
|
-
|
|
757
|
-
headers(value: unknown): IDotTh;
|
|
758
|
-
rowSpan(value: unknown): IDotTh;
|
|
759
|
-
scope(value: unknown): IDotTh;
|
|
760
|
-
vAlign(value: unknown): IDotTh;
|
|
801
|
+
vAlign(value: AttrVal<string>): IDotTh;
|
|
761
802
|
}
|
|
762
803
|
interface IDotTHead extends IDotElementDocument<IDotTHead>{
|
|
763
804
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
764
|
-
charOff(value:
|
|
765
|
-
|
|
805
|
+
charOff(value: AttrVal<string>|AttrVal<number>): IDotTHead;
|
|
806
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
807
|
+
vAlign(value: AttrVal<string>): IDotTHead;
|
|
766
808
|
}
|
|
767
809
|
interface IDotTr extends IDotElementDocument<IDotTr>{
|
|
768
810
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
769
|
-
charOff(value:
|
|
770
|
-
|
|
811
|
+
charOff(value: AttrVal<string>|AttrVal<number>): IDotTr;
|
|
812
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
813
|
+
vAlign(value: AttrVal<string>): IDotTr;
|
|
771
814
|
}
|
|
772
815
|
interface IDotTrack extends IDotElementDocument<IDotTrack>{
|
|
773
|
-
default(value:
|
|
774
|
-
kind(value:
|
|
775
|
-
src(value:
|
|
776
|
-
srcLang(value:
|
|
777
|
-
trackLabel(value:
|
|
816
|
+
default(value: AttrVal<boolean>): IDotTrack;
|
|
817
|
+
kind(value: AttrVal<string>): IDotTrack;
|
|
818
|
+
src(value: AttrVal<string>): IDotTrack;
|
|
819
|
+
srcLang(value: AttrVal<string>): IDotTrack;
|
|
820
|
+
trackLabel(value: AttrVal<string>): IDotTrack; // alias for label
|
|
778
821
|
|
|
779
822
|
// Events:
|
|
780
823
|
onCueChange(callback: (e: Event)=>void): IDotTrack;
|
|
781
824
|
}
|
|
782
825
|
interface IDotVideo extends IDotElementDocument<IDotVideo>{
|
|
783
|
-
autoPlay(value:
|
|
784
|
-
buffered(value: unknown): IDotVideo;
|
|
785
|
-
controls(value:
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
826
|
+
autoPlay(value: AttrVal<boolean>): IDotVideo;
|
|
827
|
+
buffered(value: IObservable<unknown>): IDotVideo; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
|
|
828
|
+
controls(value: AttrVal<boolean>): IDotVideo;
|
|
829
|
+
crossOrigin(value: AttrVal<"anonymous">|AttrVal<"use-credentials">): IDotVideo;
|
|
830
|
+
height(value: AttrVal<number>): IDotVideo;
|
|
831
|
+
loop(value: AttrVal<boolean>): IDotVideo;
|
|
832
|
+
muted(value: AttrVal<boolean>): IDotVideo;
|
|
833
|
+
playsInline(value: AttrVal<boolean>): IDotVideo;
|
|
834
|
+
poster(value: AttrVal<string>): IDotVideo;
|
|
835
|
+
preload(value: AttrVal<"none">|AttrVal<"metadata">|AttrVal<"auto">): IDotVideo;
|
|
836
|
+
src(value: AttrVal<string>): IDotVideo;
|
|
837
|
+
width(value: AttrVal<number>): IDotVideo;
|
|
793
838
|
|
|
794
839
|
// Special functions:
|
|
795
840
|
pause(): IDotVideo;
|