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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
@@ -1,5 +1,5 @@
1
1
 
2
- import { IDotElement, IDotGenericElement } from "./i-dot";
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>): IDotElement;
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
- aLink(value: unknown): T;
292
+ color(value: PrimativeOrObservable<unknown>): T;
300
293
  /** @deprecated Deprecated in HTML5. Use CSS. */
301
- archive(value: unknown): T;
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"|"false"|"plaintext-only">): T;
304
+ contentEditable(value: PrimativeOrObservable<"true">|PrimativeOrObservable<"false">|PrimativeOrObservable<"plaintext-only">): T;
310
305
  dir(value: PrimativeOrObservable<string>): T;
311
- draggable(value: PrimativeOrObservable<"true"|"false">): T; // This one is enumerated. "true" or "false" is mandatory.
312
- dropZone(value: "move"|"copy"|"link"): T; // Might not be supported anywhere.
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"|"false">): T; // This one should ideally render as "true" or "false", not be removed.
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
- media(value: unknown): IDotA;
394
- ping(value: unknown): IDotA;
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
- rev(value: unknown): IDotA;
397
- target(value: PrimativeOrObservable<"_blank"|"_parent"|"_self"|"_top">): IDotA;
398
- type(value: unknown): IDotA; // This might be fake news.
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: unknown): IDotArea;
402
- coords(value: unknown): IDotArea;
403
- download(value: unknown): IDotArea;
404
- hRef(value: unknown): IDotArea;
405
- hRefLang(value: unknown): IDotArea;
406
- media(value: unknown): IDotArea;
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: unknown): IDotArea; // Fake?
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"|"metadata"|"none">): IDotAudio;
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: unknown): IDotBlockQuote; // cite
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: unknown): IDotButton;
474
- formAction(value: unknown): IDotButton;
475
- disabled(value?: unknown): IDotButton;
476
- name(value: unknown): IDotButton;
477
- type(value: unknown): IDotButton;
478
- whichForm(value: unknown): IDotButton; // form
479
- value(value: unknown): IDotButton;
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: unknown): IDotCanvas;
483
- width(value: unknown): IDotCanvas;
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: unknown): IDotCol; // span
489
- vAlign(value: unknown): IDotCol;
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: unknown): IDotColGroup; // span
495
- vAlign(value: unknown): IDotColGroup;
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: unknown): IDotDel;
499
- quoteCite(value: unknown): IDotDel; // cite
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: unknown): IDotDetails;
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: unknown): IDotEmbed;
509
- src(value: unknown): IDotEmbed;
510
- type(value: unknown): IDotEmbed;
511
- width(value: unknown): IDotEmbed;
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: unknown): IDotFieldSet;
515
- name(value: unknown): IDotFieldSet;
516
- whichForm(value: unknown): IDotFieldSet; // form
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: unknown): IDotForm; // accept-charset
520
- action(value: unknown): IDotForm;
521
- autoComplete(value: unknown): IDotForm;
522
- encType(value: unknown): IDotForm;
523
- method(value: unknown): IDotForm;
524
- name(value: unknown): IDotForm;
525
- noValidate(value: boolean): IDotForm;
526
- rel(value: unknown): IDotForm;
527
- target(value: unknown): IDotForm;
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
- height(value: unknown): IDotIFrame;
534
- longDesc(value: unknown): IDotIFrame;
535
- marginHeight(value: unknown): IDotIFrame;
536
- marginWidth(value: unknown): IDotIFrame;
537
- name(value: unknown): IDotIFrame;
538
- sandbox(value: unknown): IDotIFrame;
539
- scrolling(value: unknown): IDotIFrame;
540
- seamless(value: unknown): IDotIFrame;
541
- src(value: unknown): IDotIFrame;
542
- srcDoc(value: unknown): IDotIFrame;
543
- width(value: unknown): IDotIFrame;
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: unknown): IDotImg;
551
- longDesc(value: unknown): IDotImg;
552
- sizes(value: unknown): IDotImg;
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: unknown): IDotImg;
555
- useMap(value: unknown): IDotImg;
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: unknown): IDotInput;
560
- alt(value: unknown): IDotInput;
561
- autoComplete(value: unknown): IDotInput;
562
- autoFocus(value: unknown): IDotInput;
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: unknown): IDotInput;
567
- list(value: unknown): IDotInput;
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: unknown): IDotInput;
588
+ multiple(value: PrimativeOrObservable<boolean>): IDotInput;
572
589
  name(value: PrimativeOrObservable<string>): IDotInput;
573
590
  pattern(value: PrimativeOrObservable<string>): IDotInput;
574
- placeholder(value: unknown): IDotInput;
591
+ placeholder(value: PrimativeOrObservable<string>): IDotInput;
575
592
  readOnly(value: PrimativeOrObservable<boolean>): IDotInput;
576
593
  required(value: PrimativeOrObservable<boolean>): IDotInput;
577
- size(value: unknown): IDotInput;
594
+ size(value: PrimativeOrObservable<number>): IDotInput;
578
595
  src(value: PrimativeOrObservable<string>): IDotInput;
579
- step(value: unknown): IDotInput;
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: unknown): IDotInput; // form
582
- value(value: PrimativeOrObservable<string|boolean|number>): IDotInput;
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: unknown): IDotIns;
594
- quoteCite(value: unknown): IDotIns; // cite
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: unknown): IDotKeyGen;
598
- keyType(value: unknown): IDotKeyGen;
614
+ challenge(value: PrimativeOrObservable<string>): IDotKeyGen;
615
+ keyType(value: PrimativeOrObservable<string>): IDotKeyGen;
599
616
  }
600
617
  interface IDotLabel extends IDotElementDocument<IDotLabel>{
601
- for(value: unknown): IDotLabel;
602
- whichForm(value: unknown): IDotLabel; // form
618
+ for(value: PrimativeOrObservable<string>): IDotLabel;
603
619
  }
604
620
  interface IDotLi extends IDotElementDocument<IDotLi>{
605
- value(value: unknown): IDotLi;
621
+ value(value: PrimativeOrObservable<number>): IDotLi;
606
622
  }
607
623
  interface IDotMap extends IDotElementDocument<IDotMap>{
608
- name(value: unknown): IDotMap;
624
+ name(value: PrimativeOrObservable<string>): IDotMap;
609
625
  }
610
626
  interface IDotMenu extends IDotElementDocument<IDotMenu>{
611
- type(value: unknown): IDotMenu;
627
+ type(value: PrimativeOrObservable<string>): IDotMenu;
612
628
  }
613
629
  interface IDotMeter extends IDotElementDocument<IDotMeter>{
614
- high(value: unknown): IDotMeter;
615
- low(value: unknown): IDotMeter;
616
- max(value: unknown): IDotMeter;
617
- min(value: unknown): IDotMeter;
618
- optimum(value: unknown): IDotMeter;
619
- whichForm(value: unknown): IDotMeter; // form
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
- classId(value: unknown): IDotObject;
624
- codeBase(value: unknown): IDotObject;
625
- codeType(value: unknown): IDotObject;
626
- objectData(value: unknown): IDotObject; // data
627
- declare(value: unknown): IDotObject;
628
- height(value: unknown): IDotObject;
629
- name(value: unknown): IDotObject;
630
- standby(value: unknown): IDotObject;
631
- type(value: unknown): IDotObject;
632
- useMap(value: unknown): IDotObject;
633
- whichForm(value: unknown): IDotObject; // form
634
- width(value: unknown): IDotObject;
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: unknown): IDotOl;
638
- start(value: unknown): IDotOl;
652
+ reversed(value: boolean): IDotOl;
653
+ start(value: number): IDotOl;
639
654
  }
640
655
  interface IDotOptGroup extends IDotElementDocument<IDotOptGroup>{
641
- disabled(value: unknown): IDotOptGroup;
656
+ disabled(value: boolean): IDotOptGroup;
642
657
  }
643
658
  interface IDotOption extends IDotElementDocument<IDotOption>{
644
- disabled(value: unknown): IDotOption;
645
- optionLabel(value: unknown): IDotOption; // label
646
- selected(value?: boolean): IDotOption;
647
- value(value: unknown): IDotOption;
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: unknown): IDotOutput; // form
671
+ whichForm(value: PrimativeOrObservable<string>): IDotOutput; // alias for form
657
672
  }
658
673
  interface IDotParam extends IDotElementDocument<IDotParam>{
659
- name(value: unknown): IDotParam;
660
- value(value: unknown): IDotParam;
661
- valueType(value: unknown): IDotParam;
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: unknown): IDotProgress;
665
- value(value: unknown): IDotProgress;
680
+ max(value: PrimativeOrObservable<number>): IDotProgress;
681
+ value(value: PrimativeOrObservable<number>): IDotProgress;
666
682
  }
667
683
  interface IDotQ extends IDotElementDocument<IDotQ>{
668
- quoteCite(value: unknown): IDotQ; // cite
684
+ quoteCite(value: PrimativeOrObservable<string>): IDotQ; // alias for cite
669
685
  }
670
686
  interface IDotSelect extends IDotElementDocument<IDotSelect>{
671
- autoFocus(value: unknown): IDotSelect;
672
- disabled(value: unknown): IDotSelect;
673
- multiple(value: unknown): IDotSelect;
674
- name(value: unknown): IDotSelect;
675
- required(value: unknown): IDotSelect;
676
- size(value: unknown): IDotSelect;
677
- whichForm(value: unknown): IDotSelect; // form
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: unknown): IDotSource;
685
- src(value: unknown): IDotSource;
686
- type(value: unknown): IDotSource;
687
- sizes(value: unknown): IDotSource;
688
- src(value: unknown): IDotSource;
689
- srcSet(value: unknown): IDotSource;
690
- type(value: unknown): IDotSource;
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: unknown): IDotTable;
707
+ border(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
695
708
  /** @deprecated Deprecated in HTML5. Use CSS. */
696
- cellPadding(value: unknown): IDotTable;
709
+ cellPadding(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
697
710
  /** @deprecated Deprecated in HTML5. Use CSS. */
698
- cellSpacing(value: unknown): IDotTable;
711
+ cellSpacing(value: PrimativeOrObservable<string>|PrimativeOrObservable<number>): IDotTable;
699
712
  /** @deprecated Deprecated in HTML5. Use CSS. */
700
- frame(value: unknown): IDotTable;
701
- rules(value: unknown): IDotTable;
702
- tableSummary(value: unknown): IDotTable; // summary
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: unknown): IDotTextArea;
710
- name(value: string): IDotTextArea;
711
- placeholder(value: unknown): IDotTextArea;
712
- readOnly(value: unknown): IDotTextArea;
713
- required(value: unknown): IDotTextArea;
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: unknown): IDotTextArea; // form
716
- wrap(value: unknown): IDotTextArea;
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
- vAlign(value: unknown): IDotTBody;
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: unknown): IDotTd;
747
+ axis(value: PrimativeOrObservable<string>): IDotTd;
731
748
  /** @deprecated Deprecated in HTML5. Use CSS. */
732
- char(value: unknown): IDotTd;
733
- colSpan(value: unknown): IDotTd;
749
+ char(value: PrimativeOrObservable<string>): IDotTd;
750
+ colSpan(value: PrimativeOrObservable<number>): IDotTd;
734
751
  /** @deprecated Deprecated in HTML5. Use CSS. */
735
- charOff(value: unknown): IDotTd;
736
- headers(value: unknown): IDotTd;
752
+ charOff(value: PrimativeOrObservable<string>): IDotTd;
753
+ headers(value: PrimativeOrObservable<string>): IDotTd;
737
754
  /** @deprecated Deprecated in HTML5. Use CSS. */
738
- nowrap(value: unknown): IDotTd;
739
- rowSpan(value: unknown): IDotTd;
740
- vAlign(value: unknown): IDotTd;
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: unknown): IDotTFoot;
746
- vAlign(value: unknown): IDotTFoot;
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: unknown): IDotTime;
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: unknown): IDotTh;
754
- colSpan(value: unknown): IDotTh;
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
- charOff(value: unknown): IDotTh;
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: unknown): IDotTHead;
765
- vAlign(value: unknown): IDotTHead;
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: unknown): IDotTr;
770
- vAlign(value: unknown): IDotTr;
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: unknown): IDotTrack;
774
- kind(value: unknown): IDotTrack;
775
- src(value: unknown): IDotTrack;
776
- srcLang(value: unknown): IDotTrack;
777
- trackLabel(value: unknown): IDotTrack; // label
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<boolean>): IDotVideo;
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