dothtml-interfaces 0.1.19 → 0.1.21
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 +226 -202
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
|
@@ -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
|
{
|
|
@@ -292,13 +287,13 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
|
|
|
292
287
|
|
|
293
288
|
// TODO: move to specific elements.
|
|
294
289
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
295
|
-
bgColor(value: unknown): T;
|
|
296
|
-
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
297
|
-
color(value: unknown): T;
|
|
290
|
+
bgColor(value: PrimativeOrObservable<unknown>): T;
|
|
298
291
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
299
|
-
|
|
292
|
+
color(value: PrimativeOrObservable<unknown>): T;
|
|
300
293
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
301
|
-
|
|
294
|
+
aLink(value: PrimativeOrObservable<unknown>): T;
|
|
295
|
+
/** @deprecated Deprecated in HTML5. */
|
|
296
|
+
archive(value: PrimativeOrObservable<unknown>): T;
|
|
302
297
|
// Only add this if we decide to add the search element.
|
|
303
298
|
// /** @deprecated Non-standard attribute. */
|
|
304
299
|
// autoSave(value: unknown): IDotMajor;
|
|
@@ -306,15 +301,15 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
|
|
|
306
301
|
// TODO: we're still missing some additional global attributes. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/
|
|
307
302
|
accessKey(value: PrimativeOrObservable<string>): T; // This could potentially be enumerated. But care should be taken as these types are already quite complex.
|
|
308
303
|
class(value: unknown): T; // TODO: need a better way of setting classes.
|
|
309
|
-
contentEditable(value: PrimativeOrObservable<"true"
|
|
304
|
+
contentEditable(value: PrimativeOrObservable<"true">|PrimativeOrObservable<"false">|PrimativeOrObservable<"plaintext-only">): T;
|
|
310
305
|
dir(value: PrimativeOrObservable<string>): T;
|
|
311
|
-
draggable(value: PrimativeOrObservable<"true"
|
|
312
|
-
dropZone(value: "move"
|
|
306
|
+
draggable(value: PrimativeOrObservable<"true">|PrimativeOrObservable<"false">): T; // This one is enumerated. "true" or "false" is mandatory.
|
|
307
|
+
dropZone(value: PrimativeOrObservable<"move">|PrimativeOrObservable<"copy">|PrimativeOrObservable<"link">): T; // Might not be supported anywhere.
|
|
313
308
|
hidden(value: PrimativeOrObservable<boolean>): T;
|
|
314
309
|
id(value: string): T;
|
|
315
310
|
itemProp(value: PrimativeOrObservable<string>): T;
|
|
316
311
|
lang(value: PrimativeOrObservable<string>): T;
|
|
317
|
-
spellCheck(value: PrimativeOrObservable<"true"
|
|
312
|
+
spellCheck(value: PrimativeOrObservable<"true">|PrimativeOrObservable<"false">): T; // This one should ideally render as "true" or "false", not be removed.
|
|
318
313
|
style(value: string|IDotcssProp): T;
|
|
319
314
|
tabIndex(value: PrimativeOrObservable<number>): T;
|
|
320
315
|
title(value: PrimativeOrObservable<string>): T;
|
|
@@ -390,33 +385,41 @@ interface IDotA extends IDotElementDocument<IDotA>{
|
|
|
390
385
|
download(value: PrimativeOrObservable<boolean>): IDotA;
|
|
391
386
|
hRef(value: PrimativeOrObservable<string>): IDotA;
|
|
392
387
|
hRefLang(value: PrimativeOrObservable<string>): IDotA;
|
|
393
|
-
|
|
394
|
-
|
|
388
|
+
charset(value: PrimativeOrObservable<string>): IDotA;
|
|
389
|
+
coords(value: PrimativeOrObservable<string>): IDotA;
|
|
390
|
+
shape(value: PrimativeOrObservable<string>): IDotA;
|
|
391
|
+
media(value: PrimativeOrObservable<string>): IDotA;
|
|
392
|
+
ping(value: PrimativeOrObservable<string>): IDotA; // Space separated. Consider an array. Or do what we're doing for class.
|
|
395
393
|
rel(value: PrimativeOrObservable<string>): IDotA;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
394
|
+
/** @deprecated Deprecated in HTML5. */
|
|
395
|
+
rev(value: PrimativeOrObservable<unknown>): IDotA;
|
|
396
|
+
name(value: PrimativeOrObservable<string>): IDotA;
|
|
397
|
+
// rev(value: unknown): IDotA; // Not supported in HTML 5.
|
|
398
|
+
target(value: PrimativeOrObservable<"_blank">|PrimativeOrObservable<"_parent">|PrimativeOrObservable<"_self">|PrimativeOrObservable<"_top">): IDotA;
|
|
399
|
+
type(value: PrimativeOrObservable<string>): IDotA;
|
|
399
400
|
}
|
|
400
401
|
interface IDotArea extends IDotElementDocument<IDotArea>{
|
|
401
|
-
alt(value:
|
|
402
|
-
coords(value:
|
|
403
|
-
download(value:
|
|
404
|
-
hRef(value:
|
|
405
|
-
hRefLang(value:
|
|
406
|
-
media(value:
|
|
402
|
+
alt(value: PrimativeOrObservable<string>): IDotArea;
|
|
403
|
+
coords(value: PrimativeOrObservable<string>): IDotArea;
|
|
404
|
+
download(value: PrimativeOrObservable<string>): IDotArea;
|
|
405
|
+
hRef(value: PrimativeOrObservable<string>): IDotArea;
|
|
406
|
+
hRefLang(value: PrimativeOrObservable<string>): IDotArea;
|
|
407
|
+
media(value: PrimativeOrObservable<string>): IDotArea;
|
|
408
|
+
/** @deprecated Deprecated in HTML5. */
|
|
407
409
|
noHRef(value: PrimativeOrObservable<string>): IDotArea;
|
|
408
|
-
rel(value:
|
|
410
|
+
rel(value: PrimativeOrObservable<string>): IDotArea;
|
|
409
411
|
shape(value: PrimativeOrObservable<string>): IDotArea;
|
|
410
412
|
target(value: PrimativeOrObservable<string>): IDotArea;
|
|
411
413
|
}
|
|
412
414
|
interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
413
415
|
autoPlay(value: PrimativeOrObservable<boolean>): IDotAudio;
|
|
414
|
-
buffered(value: unknown): IDotAudio;
|
|
416
|
+
// buffered(value: unknown): IDotAudio; // Not used?
|
|
415
417
|
controls(value: PrimativeOrObservable<boolean>): IDotAudio;
|
|
416
418
|
loop(value: PrimativeOrObservable<boolean>): IDotAudio;
|
|
417
419
|
muted(value: PrimativeOrObservable<boolean>): IDotAudio;
|
|
418
|
-
preload(value: PrimativeOrObservable<"auto"
|
|
420
|
+
preload(value: PrimativeOrObservable<"auto">|PrimativeOrObservable<"metadata">|PrimativeOrObservable<"none">): IDotAudio;
|
|
419
421
|
src(value: PrimativeOrObservable<string>): IDotAudio;
|
|
422
|
+
crossOrigin(value: PrimativeOrObservable<"anonymous">|PrimativeOrObservable<"use-credentials">): IDotAudio;
|
|
420
423
|
|
|
421
424
|
// Special functions:
|
|
422
425
|
pause(): IDotAudio;
|
|
@@ -447,7 +450,7 @@ interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
|
447
450
|
onCanPlay(callback: (e: Event)=>void): IDotAudio;
|
|
448
451
|
}
|
|
449
452
|
interface IDotBlockQuote extends IDotElementDocument<IDotBlockQuote>{
|
|
450
|
-
quoteCite(value:
|
|
453
|
+
quoteCite(value: PrimativeOrObservable<string>): IDotBlockQuote; // alias for cite
|
|
451
454
|
}
|
|
452
455
|
interface IDotBody extends IDotElementDocument<IDotBody>{
|
|
453
456
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
@@ -470,116 +473,130 @@ interface IDotBr extends IDotElementDocument<IDotBr>{
|
|
|
470
473
|
clear(value: unknown): IDotBr;
|
|
471
474
|
}
|
|
472
475
|
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:
|
|
476
|
+
autoFocus(value: PrimativeOrObservable<boolean>): IDotButton;
|
|
477
|
+
formAction(value: PrimativeOrObservable<string>): IDotButton;
|
|
478
|
+
disabled(value?: PrimativeOrObservable<boolean>): IDotButton;
|
|
479
|
+
name(value: PrimativeOrObservable<string>): IDotButton;
|
|
480
|
+
type(value: PrimativeOrObservable<"button">|PrimativeOrObservable<"submit">|PrimativeOrObservable<"reset">): IDotButton;
|
|
481
|
+
whichForm(value: PrimativeOrObservable<string>): IDotButton; // alias for form
|
|
482
|
+
value(value: PrimativeOrObservable<string>): IDotButton;
|
|
480
483
|
}
|
|
481
484
|
interface IDotCanvas extends IDotElementDocument<IDotCanvas>{
|
|
482
|
-
height(value:
|
|
483
|
-
width(value:
|
|
485
|
+
height(value: PrimativeOrObservable<number>): IDotCanvas;
|
|
486
|
+
width(value: PrimativeOrObservable<number>): IDotCanvas;
|
|
484
487
|
}
|
|
485
488
|
interface IDotCol extends IDotElementDocument<IDotCol>{
|
|
486
489
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
487
|
-
charOff(value: unknown): IDotCol;
|
|
488
|
-
colSpan(value:
|
|
489
|
-
vAlign(value:
|
|
490
|
+
charOff(value: PrimativeOrObservable<unknown>): IDotCol;
|
|
491
|
+
colSpan(value: PrimativeOrObservable<number>): IDotCol; // alias for span
|
|
492
|
+
vAlign(value: PrimativeOrObservable<number>): IDotCol;
|
|
490
493
|
}
|
|
491
494
|
interface IDotColGroup extends IDotElementDocument<IDotColGroup>{
|
|
492
495
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
493
|
-
charOff(value: unknown): IDotColGroup;
|
|
494
|
-
colSpan(value:
|
|
495
|
-
|
|
496
|
+
charOff(value: PrimativeOrObservable<unknown>): IDotColGroup;
|
|
497
|
+
colSpan(value: PrimativeOrObservable<number>): IDotColGroup; // alias for span
|
|
498
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
499
|
+
vAlign(value: PrimativeOrObservable<unknown>): IDotColGroup;
|
|
496
500
|
}
|
|
497
501
|
interface IDotDel extends IDotElementDocument<IDotDel>{
|
|
498
|
-
dateTime(value:
|
|
499
|
-
quoteCite(value:
|
|
502
|
+
dateTime(value: PrimativeOrObservable<string>): IDotDel; // Would be cool if this could accept dates and just format them internally...
|
|
503
|
+
quoteCite(value: PrimativeOrObservable<string>): IDotDel; // alias for cite
|
|
500
504
|
}
|
|
501
505
|
interface IDotDetails extends IDotElementDocument<IDotDetails>{
|
|
502
|
-
open(value:
|
|
506
|
+
open(value: PrimativeOrObservable<boolean>): IDotDetails;
|
|
503
507
|
|
|
504
508
|
// Events:
|
|
505
509
|
onToggle (callback: (e: Event)=>void): IDotDetails;
|
|
506
510
|
}
|
|
507
511
|
interface IDotEmbed extends IDotElementDocument<IDotEmbed>{
|
|
508
|
-
height(value:
|
|
509
|
-
src(value:
|
|
510
|
-
type(value:
|
|
511
|
-
width(value:
|
|
512
|
+
height(value: PrimativeOrObservable<number>): IDotEmbed;
|
|
513
|
+
src(value: PrimativeOrObservable<string>): IDotEmbed;
|
|
514
|
+
type(value: PrimativeOrObservable<string>): IDotEmbed;
|
|
515
|
+
width(value: PrimativeOrObservable<number>): IDotEmbed;
|
|
512
516
|
}
|
|
513
517
|
interface IDotFieldSet extends IDotElementDocument<IDotFieldSet>{
|
|
514
|
-
disabled(value:
|
|
515
|
-
name(value:
|
|
516
|
-
whichForm(value:
|
|
518
|
+
disabled(value: PrimativeOrObservable<boolean>): IDotFieldSet;
|
|
519
|
+
name(value: PrimativeOrObservable<string>): IDotFieldSet;
|
|
520
|
+
whichForm(value: PrimativeOrObservable<string>): IDotFieldSet; // alias for form
|
|
517
521
|
}
|
|
518
522
|
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:
|
|
523
|
+
acceptCharset(value: PrimativeOrObservable<string>): IDotForm; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
|
|
524
|
+
action(value: PrimativeOrObservable<string>): IDotForm;
|
|
525
|
+
autoComplete(value: PrimativeOrObservable<"on">|PrimativeOrObservable<"off">): IDotForm;
|
|
526
|
+
encType(value: PrimativeOrObservable<"application/x-www-form-urlencoded">|PrimativeOrObservable<"multipart/form-data">|PrimativeOrObservable<"text/plain">): IDotForm;
|
|
527
|
+
method(value: PrimativeOrObservable<"get">|PrimativeOrObservable<"post">): IDotForm;
|
|
528
|
+
name(value: PrimativeOrObservable<string>): IDotForm;
|
|
529
|
+
noValidate(value: PrimativeOrObservable<boolean>): IDotForm;
|
|
530
|
+
// rel(value: PrimativeOrObservable<string>): IDotForm; // Not used with forms?
|
|
531
|
+
target(value: PrimativeOrObservable<"_self">|PrimativeOrObservable<"_blank">|PrimativeOrObservable<"_parent">|PrimativeOrObservable<"_top">): IDotForm;
|
|
528
532
|
}
|
|
529
533
|
interface IDotHr extends IDotElementDocument<IDotHr>{
|
|
530
534
|
noShade(value: unknown): IDotHr;
|
|
531
535
|
}
|
|
532
536
|
interface IDotIFrame extends IDotElementDocument<IDotIFrame>{
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
537
|
+
allow(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
538
|
+
allowFullScreen(value: PrimativeOrObservable<boolean>): IDotIFrame;
|
|
539
|
+
/** @deprecated Deprecated in HTML5. */
|
|
540
|
+
frameBorder(value: PrimativeOrObservable<0>|PrimativeOrObservable<1>): IDotIFrame;
|
|
541
|
+
height(value: PrimativeOrObservable<number>): IDotIFrame;
|
|
542
|
+
/** @deprecated Deprecated in HTML5. */
|
|
543
|
+
longDesc(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
544
|
+
marginHeight(value: PrimativeOrObservable<number>): IDotIFrame;
|
|
545
|
+
marginWidth(value: PrimativeOrObservable<number>): IDotIFrame;
|
|
546
|
+
name(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
547
|
+
referrerPolicy(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
548
|
+
sandbox(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
549
|
+
/** @deprecated Deprecated in HTML5. */
|
|
550
|
+
scrolling(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
551
|
+
seamless(value: PrimativeOrObservable<boolean>): IDotIFrame;
|
|
552
|
+
src(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
553
|
+
srcDoc(value: PrimativeOrObservable<string>): IDotIFrame;
|
|
554
|
+
width(value: PrimativeOrObservable<number>): IDotIFrame;
|
|
544
555
|
}
|
|
545
556
|
interface IDotImg extends IDotElementDocument<IDotImg>{
|
|
546
557
|
alt(value: PrimativeOrObservable<string>): IDotImg;
|
|
558
|
+
crossOrigin(value: PrimativeOrObservable<"anonymous">|PrimativeOrObservable<"use-credentials">): IDotImg;
|
|
559
|
+
decoding(value: PrimativeOrObservable<"async">|PrimativeOrObservable<"auto">|PrimativeOrObservable<"sync">): IDotImg;
|
|
547
560
|
height(value: PrimativeOrObservable<number>): IDotImg;
|
|
548
561
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
549
|
-
hSpace(value: unknown): IDotImg;
|
|
550
|
-
isMap(value:
|
|
551
|
-
|
|
552
|
-
|
|
562
|
+
hSpace(value: PrimativeOrObservable<unknown>): IDotImg;
|
|
563
|
+
isMap(value: PrimativeOrObservable<boolean>): IDotImg;
|
|
564
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
565
|
+
loading(value: PrimativeOrObservable<"eager">|PrimativeOrObservable<"lazy">): IDotImg;
|
|
566
|
+
longDesc(value: PrimativeOrObservable<string>): IDotImg;
|
|
567
|
+
referrerPolicy(value: PrimativeOrObservable<string>): IDotImg;
|
|
568
|
+
sizes(value: PrimativeOrObservable<string>): IDotImg;
|
|
553
569
|
src(value: PrimativeOrObservable<string>): IDotImg;
|
|
554
|
-
srcSet(value:
|
|
555
|
-
useMap(value:
|
|
570
|
+
srcSet(value: PrimativeOrObservable<string>): IDotImg; // Comma separated. Consider accepting an array.
|
|
571
|
+
useMap(value: PrimativeOrObservable<number>): IDotImg;
|
|
556
572
|
width(value: PrimativeOrObservable<number>): IDotImg;
|
|
557
573
|
}
|
|
558
574
|
interface IDotInput extends IDotElementDocument<IDotInput>{
|
|
559
|
-
accept(value:
|
|
560
|
-
alt(value:
|
|
561
|
-
autoComplete(value:
|
|
562
|
-
autoFocus(value:
|
|
575
|
+
accept(value: PrimativeOrObservable<string>): IDotInput;
|
|
576
|
+
alt(value: PrimativeOrObservable<string>): IDotInput;
|
|
577
|
+
autoComplete(value: PrimativeOrObservable<"on">|PrimativeOrObservable<"off">): IDotInput;
|
|
578
|
+
autoFocus(value: PrimativeOrObservable<boolean>): IDotInput;
|
|
563
579
|
checked(value?: PrimativeOrObservable<boolean>): IDotInput;
|
|
564
580
|
dirName(value: PrimativeOrObservable<string>): IDotInput;
|
|
565
581
|
disabled(value: PrimativeOrObservable<boolean>): IDotInput;
|
|
566
|
-
formAction(value:
|
|
567
|
-
|
|
582
|
+
formAction(value: PrimativeOrObservable<string>): IDotInput;
|
|
583
|
+
height(value: PrimativeOrObservable<number>): IDotInput;
|
|
584
|
+
list(value: PrimativeOrObservable<string>): IDotInput;
|
|
568
585
|
max(value: PrimativeOrObservable<number>): IDotInput;
|
|
569
586
|
maxLength(value: PrimativeOrObservable<number>): IDotInput;
|
|
570
587
|
min(value: PrimativeOrObservable<number>): IDotInput;
|
|
571
|
-
multiple(value:
|
|
588
|
+
multiple(value: PrimativeOrObservable<boolean>): IDotInput;
|
|
572
589
|
name(value: PrimativeOrObservable<string>): IDotInput;
|
|
573
590
|
pattern(value: PrimativeOrObservable<string>): IDotInput;
|
|
574
|
-
placeholder(value:
|
|
591
|
+
placeholder(value: PrimativeOrObservable<string>): IDotInput;
|
|
575
592
|
readOnly(value: PrimativeOrObservable<boolean>): IDotInput;
|
|
576
593
|
required(value: PrimativeOrObservable<boolean>): IDotInput;
|
|
577
|
-
size(value:
|
|
594
|
+
size(value: PrimativeOrObservable<number>): IDotInput;
|
|
578
595
|
src(value: PrimativeOrObservable<string>): IDotInput;
|
|
579
|
-
step(value:
|
|
596
|
+
step(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotInput;
|
|
580
597
|
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: PrimativeOrObservable<string
|
|
598
|
+
whichForm(value: PrimativeOrObservable<string>): IDotInput; // form
|
|
599
|
+
value(value: PrimativeOrObservable<string>): IDotInput;
|
|
583
600
|
width(value: PrimativeOrObservable<number>): IDotInput;
|
|
584
601
|
|
|
585
602
|
// Special functions:
|
|
@@ -590,61 +607,59 @@ interface IDotInput extends IDotElementDocument<IDotInput>{
|
|
|
590
607
|
onSearch(callback: (e: Event)=>void): IDotInput;
|
|
591
608
|
}
|
|
592
609
|
interface IDotIns extends IDotElementDocument<IDotIns>{
|
|
593
|
-
dateTime(value:
|
|
594
|
-
quoteCite(value:
|
|
610
|
+
dateTime(value: PrimativeOrObservable<string>): IDotIns;
|
|
611
|
+
quoteCite(value: PrimativeOrObservable<string>): IDotIns; // alias for cite
|
|
595
612
|
}
|
|
596
613
|
interface IDotKeyGen extends IDotElementDocument<IDotKeyGen>{
|
|
597
|
-
challenge(value:
|
|
598
|
-
keyType(value:
|
|
614
|
+
challenge(value: PrimativeOrObservable<string>): IDotKeyGen;
|
|
615
|
+
keyType(value: PrimativeOrObservable<string>): IDotKeyGen;
|
|
599
616
|
}
|
|
600
617
|
interface IDotLabel extends IDotElementDocument<IDotLabel>{
|
|
601
|
-
for(value:
|
|
602
|
-
whichForm(value: unknown): IDotLabel; // form
|
|
618
|
+
for(value: PrimativeOrObservable<string>): IDotLabel;
|
|
603
619
|
}
|
|
604
620
|
interface IDotLi extends IDotElementDocument<IDotLi>{
|
|
605
|
-
value(value:
|
|
621
|
+
value(value: PrimativeOrObservable<number>): IDotLi;
|
|
606
622
|
}
|
|
607
623
|
interface IDotMap extends IDotElementDocument<IDotMap>{
|
|
608
|
-
name(value:
|
|
624
|
+
name(value: PrimativeOrObservable<string>): IDotMap;
|
|
609
625
|
}
|
|
610
626
|
interface IDotMenu extends IDotElementDocument<IDotMenu>{
|
|
611
|
-
type(value:
|
|
627
|
+
type(value: PrimativeOrObservable<string>): IDotMenu;
|
|
612
628
|
}
|
|
613
629
|
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;
|
|
630
|
+
high(value: PrimativeOrObservable<number>): IDotMeter;
|
|
631
|
+
low(value: PrimativeOrObservable<number>): IDotMeter;
|
|
632
|
+
max(value: PrimativeOrObservable<number>): IDotMeter;
|
|
633
|
+
min(value: PrimativeOrObservable<number>): IDotMeter;
|
|
634
|
+
optimum(value: PrimativeOrObservable<number>): IDotMeter;
|
|
635
|
+
value(value: PrimativeOrObservable<number>): IDotMeter;
|
|
621
636
|
}
|
|
622
637
|
interface IDotObject extends IDotElementDocument<IDotObject>{
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
width(value:
|
|
638
|
+
archive(value: PrimativeOrObservable<string>): IDotObject;
|
|
639
|
+
classId(value: PrimativeOrObservable<string>): IDotObject;
|
|
640
|
+
codeBase(value: PrimativeOrObservable<string>): IDotObject;
|
|
641
|
+
codeType(value: PrimativeOrObservable<string>): IDotObject;
|
|
642
|
+
objectData(value: PrimativeOrObservable<string>): IDotObject; // alias for data
|
|
643
|
+
declare(value: PrimativeOrObservable<boolean>): IDotObject;
|
|
644
|
+
height(value: PrimativeOrObservable<number>): IDotObject;
|
|
645
|
+
name(value: PrimativeOrObservable<string>): IDotObject;
|
|
646
|
+
standby(value: PrimativeOrObservable<string>): IDotObject;
|
|
647
|
+
type(value: PrimativeOrObservable<string>): IDotObject;
|
|
648
|
+
useMap(value: PrimativeOrObservable<string>): IDotObject;
|
|
649
|
+
width(value: PrimativeOrObservable<number>): IDotObject;
|
|
635
650
|
}
|
|
636
651
|
interface IDotOl extends IDotElementDocument<IDotOl>{
|
|
637
|
-
reversed(value:
|
|
638
|
-
start(value:
|
|
652
|
+
reversed(value: boolean): IDotOl;
|
|
653
|
+
start(value: number): IDotOl;
|
|
639
654
|
}
|
|
640
655
|
interface IDotOptGroup extends IDotElementDocument<IDotOptGroup>{
|
|
641
|
-
disabled(value:
|
|
656
|
+
disabled(value: boolean): IDotOptGroup;
|
|
642
657
|
}
|
|
643
658
|
interface IDotOption extends IDotElementDocument<IDotOption>{
|
|
644
|
-
disabled(value:
|
|
645
|
-
optionLabel(value:
|
|
646
|
-
selected(value
|
|
647
|
-
value(value:
|
|
659
|
+
disabled(value: PrimativeOrObservable<boolean>): IDotOption;
|
|
660
|
+
optionLabel(value: PrimativeOrObservable<string>): IDotOption; // alias for label
|
|
661
|
+
selected(value: PrimativeOrObservable<boolean>): IDotOption;
|
|
662
|
+
value(value: PrimativeOrObservable<string>): IDotOption;
|
|
648
663
|
|
|
649
664
|
// Special functions:
|
|
650
665
|
// getVal(): string;
|
|
@@ -653,141 +668,150 @@ interface IDotOption extends IDotElementDocument<IDotOption>{
|
|
|
653
668
|
interface IDotOutput extends IDotElementDocument<IDotOutput>{
|
|
654
669
|
for(value: PrimativeOrObservable<string>): IDotOutput;
|
|
655
670
|
name(value: PrimativeOrObservable<string>): IDotOutput;
|
|
656
|
-
whichForm(value:
|
|
671
|
+
whichForm(value: PrimativeOrObservable<string>): IDotOutput; // alias for form
|
|
657
672
|
}
|
|
658
673
|
interface IDotParam extends IDotElementDocument<IDotParam>{
|
|
659
|
-
name(value:
|
|
660
|
-
value(value:
|
|
661
|
-
|
|
674
|
+
name(value: PrimativeOrObservable<string>): IDotParam;
|
|
675
|
+
value(value: PrimativeOrObservable<string>): IDotParam;
|
|
676
|
+
/** @deprecated Deprecated in HTML5. */
|
|
677
|
+
valueType(value: PrimativeOrObservable<unknown>): IDotParam;
|
|
662
678
|
}
|
|
663
679
|
interface IDotProgress extends IDotElementDocument<IDotProgress>{
|
|
664
|
-
max(value:
|
|
665
|
-
value(value:
|
|
680
|
+
max(value: PrimativeOrObservable<number>): IDotProgress;
|
|
681
|
+
value(value: PrimativeOrObservable<number>): IDotProgress;
|
|
666
682
|
}
|
|
667
683
|
interface IDotQ extends IDotElementDocument<IDotQ>{
|
|
668
|
-
quoteCite(value:
|
|
684
|
+
quoteCite(value: PrimativeOrObservable<string>): IDotQ; // alias for cite
|
|
669
685
|
}
|
|
670
686
|
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;
|
|
687
|
+
autoFocus(value: PrimativeOrObservable<boolean>): IDotSelect;
|
|
688
|
+
disabled(value: PrimativeOrObservable<boolean>): IDotSelect;
|
|
689
|
+
multiple(value: PrimativeOrObservable<boolean>): IDotSelect;
|
|
690
|
+
name(value: PrimativeOrObservable<string>): IDotSelect;
|
|
691
|
+
required(value: PrimativeOrObservable<boolean>): IDotSelect;
|
|
692
|
+
size(value: PrimativeOrObservable<number>): IDotSelect;
|
|
693
|
+
whichForm(value: PrimativeOrObservable<string>): IDotSelect; // alias for form
|
|
694
|
+
value(value: PrimativeOrObservable<string>); // Pseudo attribute for convenience.
|
|
682
695
|
}
|
|
683
696
|
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:
|
|
697
|
+
media(value: PrimativeOrObservable<string>): IDotSource;
|
|
698
|
+
src(value: PrimativeOrObservable<string>): IDotSource;
|
|
699
|
+
type(value: PrimativeOrObservable<string>): IDotSource;
|
|
700
|
+
sizes(value: PrimativeOrObservable<string>): IDotSource;
|
|
701
|
+
src(value: PrimativeOrObservable<string>): IDotSource;
|
|
702
|
+
srcSet(value: PrimativeOrObservable<string>): IDotSource;
|
|
703
|
+
type(value: PrimativeOrObservable<string>): IDotSource;
|
|
691
704
|
}
|
|
692
705
|
interface IDotTable extends IDotElementDocument<IDotTable>{
|
|
693
706
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
694
|
-
border(value:
|
|
707
|
+
border(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
|
|
695
708
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
696
|
-
cellPadding(value:
|
|
709
|
+
cellPadding(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
|
|
697
710
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
698
|
-
cellSpacing(value:
|
|
711
|
+
cellSpacing(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
|
|
699
712
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
700
|
-
frame(value:
|
|
701
|
-
|
|
702
|
-
|
|
713
|
+
frame(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
|
|
714
|
+
/** @deprecated Deprecated in HTML5. */
|
|
715
|
+
height(value: PrimativeOrObservable<number>): IDotTable;
|
|
716
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
717
|
+
rules(value: PrimativeOrObservable<string>): IDotTable;
|
|
718
|
+
/** @deprecated Deprecated in HTML5. */
|
|
719
|
+
tableSummary(value: PrimativeOrObservable<string>): IDotTable; // summary
|
|
720
|
+
/** @deprecated Deprecated in HTML5. */
|
|
721
|
+
width(value: PrimativeOrObservable<number>): IDotTable;
|
|
703
722
|
}
|
|
704
723
|
interface IDotTextArea extends IDotElementDocument<IDotTextArea>{
|
|
705
724
|
autoFocus(value: PrimativeOrObservable<boolean>): IDotTextArea;
|
|
706
725
|
cols(value: PrimativeOrObservable<number>): IDotTextArea;
|
|
707
726
|
dirName(value: PrimativeOrObservable<string>): IDotTextArea;
|
|
708
727
|
disabled(value: PrimativeOrObservable<boolean>): IDotTextArea;
|
|
709
|
-
maxLength(value:
|
|
710
|
-
name(value: string): IDotTextArea;
|
|
711
|
-
placeholder(value:
|
|
712
|
-
readOnly(value:
|
|
713
|
-
required(value:
|
|
728
|
+
maxLength(value: PrimativeOrObservable<number>): IDotTextArea;
|
|
729
|
+
name(value: PrimativeOrObservable<string>): IDotTextArea;
|
|
730
|
+
placeholder(value: PrimativeOrObservable<string>): IDotTextArea;
|
|
731
|
+
readOnly(value: PrimativeOrObservable<boolean>): IDotTextArea;
|
|
732
|
+
required(value: PrimativeOrObservable<boolean>): IDotTextArea;
|
|
714
733
|
rows(value: PrimativeOrObservable<number>): IDotTextArea;
|
|
715
|
-
whichForm(value:
|
|
716
|
-
wrap(value:
|
|
717
|
-
|
|
718
|
-
// Special functions:
|
|
719
|
-
// getVal(): string;
|
|
720
|
-
// setVal(value: unknown): IDotTextArea;
|
|
734
|
+
whichForm(value: PrimativeOrObservable<string>): IDotTextArea; // alias for form
|
|
735
|
+
wrap(value: PrimativeOrObservable<string>): IDotTextArea;
|
|
736
|
+
value(value: PrimativeOrObservable<string>); // Pseudo attribute for convenience.
|
|
721
737
|
}
|
|
722
738
|
interface IDotTBody extends IDotElementDocument<IDotTBody>{
|
|
723
739
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
724
|
-
charOff(value: unknown): IDotTBody;
|
|
725
|
-
|
|
740
|
+
charOff(value: PrimativeOrObservable<unknown>): IDotTBody;
|
|
741
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
742
|
+
vAlign(value: PrimativeOrObservable<unknown>): IDotTBody;
|
|
726
743
|
}
|
|
727
744
|
interface IDotTd extends IDotElementDocument<IDotTd>{
|
|
728
745
|
|
|
729
746
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
730
|
-
axis(value:
|
|
747
|
+
axis(value: PrimativeOrObservable<string>): IDotTd;
|
|
731
748
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
732
|
-
char(value:
|
|
733
|
-
colSpan(value:
|
|
749
|
+
char(value: PrimativeOrObservable<string>): IDotTd;
|
|
750
|
+
colSpan(value: PrimativeOrObservable<number>): IDotTd;
|
|
734
751
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
735
|
-
charOff(value:
|
|
736
|
-
headers(value:
|
|
752
|
+
charOff(value: PrimativeOrObservable<string>): IDotTd;
|
|
753
|
+
headers(value: PrimativeOrObservable<string>): IDotTd;
|
|
737
754
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
738
|
-
|
|
739
|
-
rowSpan(value:
|
|
740
|
-
|
|
741
|
-
|
|
755
|
+
noWrap(value: PrimativeOrObservable<boolean>): IDotTd;
|
|
756
|
+
rowSpan(value: PrimativeOrObservable<number>): IDotTd;
|
|
757
|
+
scope(value: PrimativeOrObservable<string>): IDotTd;
|
|
758
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
759
|
+
vAlign(value: PrimativeOrObservable<string>): IDotTd;
|
|
742
760
|
}
|
|
743
761
|
interface IDotTFoot extends IDotElementDocument<IDotTFoot>{
|
|
744
762
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
745
|
-
charOff(value:
|
|
746
|
-
|
|
763
|
+
charOff(value: PrimativeOrObservable<number>): IDotTFoot;
|
|
764
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
765
|
+
vAlign(value: PrimativeOrObservable<string>): IDotTFoot;
|
|
747
766
|
}
|
|
748
767
|
interface IDotTime extends IDotElementDocument<IDotTime>{
|
|
749
|
-
dateTime(value:
|
|
768
|
+
dateTime(value: PrimativeOrObservable<string>): IDotTime;
|
|
750
769
|
}
|
|
751
770
|
interface IDotTh extends IDotElementDocument<IDotTh>{
|
|
752
771
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
753
|
-
axis(value:
|
|
754
|
-
colSpan(value:
|
|
772
|
+
axis(value: PrimativeOrObservable<string>): IDotTh;
|
|
773
|
+
colSpan(value: PrimativeOrObservable<number>): IDotTh;
|
|
774
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
775
|
+
charOff(value: PrimativeOrObservable<string>): IDotTh;
|
|
776
|
+
headers(value: PrimativeOrObservable<string>): IDotTh;
|
|
777
|
+
rowSpan(value: PrimativeOrObservable<number>): IDotTh;
|
|
778
|
+
scope(value: PrimativeOrObservable<string>): IDotTh;
|
|
755
779
|
/** @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;
|
|
780
|
+
vAlign(value: PrimativeOrObservable<string>): IDotTh;
|
|
761
781
|
}
|
|
762
782
|
interface IDotTHead extends IDotElementDocument<IDotTHead>{
|
|
763
783
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
764
|
-
charOff(value:
|
|
765
|
-
|
|
784
|
+
charOff(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTHead;
|
|
785
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
786
|
+
vAlign(value: PrimativeOrObservable<string>): IDotTHead;
|
|
766
787
|
}
|
|
767
788
|
interface IDotTr extends IDotElementDocument<IDotTr>{
|
|
768
789
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
769
|
-
charOff(value:
|
|
770
|
-
|
|
790
|
+
charOff(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTr;
|
|
791
|
+
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
792
|
+
vAlign(value: PrimativeOrObservable<string>): IDotTr;
|
|
771
793
|
}
|
|
772
794
|
interface IDotTrack extends IDotElementDocument<IDotTrack>{
|
|
773
|
-
default(value:
|
|
774
|
-
kind(value:
|
|
775
|
-
src(value:
|
|
776
|
-
srcLang(value:
|
|
777
|
-
trackLabel(value:
|
|
795
|
+
default(value: PrimativeOrObservable<boolean>): IDotTrack;
|
|
796
|
+
kind(value: PrimativeOrObservable<string>): IDotTrack;
|
|
797
|
+
src(value: PrimativeOrObservable<string>): IDotTrack;
|
|
798
|
+
srcLang(value: PrimativeOrObservable<string>): IDotTrack;
|
|
799
|
+
trackLabel(value: PrimativeOrObservable<string>): IDotTrack; // alias for label
|
|
778
800
|
|
|
779
801
|
// Events:
|
|
780
802
|
onCueChange(callback: (e: Event)=>void): IDotTrack;
|
|
781
803
|
}
|
|
782
804
|
interface IDotVideo extends IDotElementDocument<IDotVideo>{
|
|
783
805
|
autoPlay(value: PrimativeOrObservable<boolean>): IDotVideo;
|
|
784
|
-
buffered(value: unknown): IDotVideo;
|
|
806
|
+
buffered(value: IObservable<unknown>): IDotVideo; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
|
|
785
807
|
controls(value: PrimativeOrObservable<boolean>): IDotVideo;
|
|
808
|
+
crossOrigin(value: PrimativeOrObservable<"anonymous">|PrimativeOrObservable<"use-credentials">): IDotVideo;
|
|
786
809
|
height(value: PrimativeOrObservable<number>): IDotVideo;
|
|
787
810
|
loop(value: PrimativeOrObservable<boolean>): IDotVideo;
|
|
788
811
|
muted(value: PrimativeOrObservable<boolean>): IDotVideo;
|
|
812
|
+
playsInline(value: PrimativeOrObservable<boolean>): IDotVideo;
|
|
789
813
|
poster(value: PrimativeOrObservable<string>): IDotVideo;
|
|
790
|
-
preload(value: PrimativeOrObservable<
|
|
814
|
+
preload(value: PrimativeOrObservable<"none">|PrimativeOrObservable<"metadata">|PrimativeOrObservable<"auto">): IDotVideo;
|
|
791
815
|
src(value: PrimativeOrObservable<string>): IDotVideo;
|
|
792
816
|
width(value: PrimativeOrObservable<number>): IDotVideo;
|
|
793
817
|
|