dothtml-interfaces 0.4.4 → 0.4.6
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/bindings/i-binding.d.ts +12 -0
- package/src/bindings/i-observer.d.ts +3 -0
- package/src/bindings/i-reactive.d.ts +4 -0
- package/src/bindings/i-ref.d.ts +4 -0
- package/src/{i-reactive.d.ts → bindings/i-watcher.d.ts} +2 -18
- package/src/i-dot.d.ts +52 -48
- package/src/index.d.ts +4 -1
- package/src/styles/css-types.d.ts +2 -1
- package/src/styles/i-css-prop.d.ts +2 -1
- package/src/styles/mapped-types/angle-prop.d.ts +1 -1
- package/src/styles/mapped-types/color-props.d.ts +2 -1
- package/src/styles/mapped-types/length-prop.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBinding } from "./i-binding";
|
|
1
2
|
|
|
2
3
|
export interface IWatcher<T = any>{
|
|
3
4
|
// Get the value.
|
|
@@ -34,21 +35,4 @@ export interface IWatcher<T = any>{
|
|
|
34
35
|
}))): IBinding<T, Td>;
|
|
35
36
|
|
|
36
37
|
bind(): IBinding<T>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface IObserver<T = any>{
|
|
40
|
-
observerUpdate(value: T, obsreverId: number): void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface IBinding<T = any, Td = T>{
|
|
44
|
-
_source: IWatcher<T>;
|
|
45
|
-
_get: ()=>Td;
|
|
46
|
-
_set: (v: string|number|boolean)=>void;
|
|
47
|
-
|
|
48
|
-
_transform: {
|
|
49
|
-
display?: (v: T)=>Td;
|
|
50
|
-
read?: (v: string)=>T;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type IReactive = IBinding|IWatcher;
|
|
38
|
+
}
|
package/src/i-dot.d.ts
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
import IDotComponent from "./i-dot-component";
|
|
3
3
|
import IDotCss from "./styles/i-dot-css";
|
|
4
4
|
import IEventBus from "./i-event-bus";
|
|
5
|
-
import {IReactive
|
|
5
|
+
import {IReactive} from "./bindings/i-reactive";
|
|
6
|
+
import { IBinding } from "./bindings/i-binding";
|
|
7
|
+
import { IWatcher } from "./bindings/i-watcher";
|
|
6
8
|
import IDotcssProp from "./styles/i-css-prop";
|
|
9
|
+
import { IRef } from "./bindings/i-ref";
|
|
7
10
|
|
|
8
|
-
type DotContentPrimitive = string | number | boolean;
|
|
11
|
+
type DotContentPrimitive = string | number | boolean | undefined | null;
|
|
9
12
|
type DotContentBasic = DotContentPrimitive | Node | Element | NodeList | IDotComponent | IDotDocument//typeof DotDocument;
|
|
10
13
|
export type DotContent = DotContentBasic | Array<DotContent> | IReactive;//|(()=>DotContent);
|
|
11
14
|
|
|
@@ -378,6 +381,7 @@ export interface IDotCore extends IDotDocument {
|
|
|
378
381
|
window: IDotWindowBuilder;
|
|
379
382
|
|
|
380
383
|
watch<Ti = IReactive | Array<any> | { [key: string | number]: any } | string | number | boolean>(initValue?: Ti, key?: (Ti extends Array<any> | { [key: string | number]: any } ? string : never)): IWatcher<Ti>;
|
|
384
|
+
ref(): IRef;
|
|
381
385
|
|
|
382
386
|
// Keep these around for a bit to show how it was done before in case I need to change anything prior to the v6 launch.
|
|
383
387
|
// component<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
@@ -421,7 +425,7 @@ export interface IDotConditionalDocument extends IDotDocument {
|
|
|
421
425
|
}
|
|
422
426
|
|
|
423
427
|
// Attribute interface (for all elements):
|
|
424
|
-
export interface IDotGlobalAttrs {
|
|
428
|
+
export interface IDotGlobalAttrs<T extends HTMLElement = HTMLElement> {
|
|
425
429
|
/**
|
|
426
430
|
* Create a custom attribute.
|
|
427
431
|
*/
|
|
@@ -437,7 +441,7 @@ export interface IDotGlobalAttrs {
|
|
|
437
441
|
// TODO: this needs to be redone now.
|
|
438
442
|
// The better way might be using the new reactive system instead of references.
|
|
439
443
|
// For now I'll leave it like this:
|
|
440
|
-
|
|
444
|
+
ref?: IRef<T>;
|
|
441
445
|
|
|
442
446
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
443
447
|
bgColor?: AttrVal<unknown>;
|
|
@@ -550,7 +554,7 @@ export interface IDotGlobalAttrs {
|
|
|
550
554
|
// prop(name: string, value: any): IMountedComponent<T>;
|
|
551
555
|
// }
|
|
552
556
|
|
|
553
|
-
interface IDotA extends IDotGlobalAttrs {
|
|
557
|
+
interface IDotA extends IDotGlobalAttrs<HTMLAnchorElement> {
|
|
554
558
|
download?: AttrVal<boolean>;
|
|
555
559
|
hRef?: AttrVal<string>;
|
|
556
560
|
hRefLang?: AttrVal<string>;
|
|
@@ -566,7 +570,7 @@ interface IDotA extends IDotGlobalAttrs {
|
|
|
566
570
|
target?: AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_self"> | AttrVal<"_top">;
|
|
567
571
|
type?: AttrVal<string>;
|
|
568
572
|
}
|
|
569
|
-
interface IDotArea extends IDotGlobalAttrs {
|
|
573
|
+
interface IDotArea extends IDotGlobalAttrs<HTMLAreaElement> {
|
|
570
574
|
alt?: AttrVal<string>;
|
|
571
575
|
coords?: AttrVal<string>;
|
|
572
576
|
download?: AttrVal<string>;
|
|
@@ -578,7 +582,7 @@ interface IDotArea extends IDotGlobalAttrs {
|
|
|
578
582
|
shape?: AttrVal<string>;
|
|
579
583
|
target?: AttrVal<string>;
|
|
580
584
|
}
|
|
581
|
-
interface IDotAudio extends IDotGlobalAttrs {
|
|
585
|
+
interface IDotAudio extends IDotGlobalAttrs<HTMLAudioElement> {
|
|
582
586
|
autoPlay?: AttrVal<boolean>;
|
|
583
587
|
// buffered?: unknown; // Not used?
|
|
584
588
|
controls?: AttrVal<boolean>;
|
|
@@ -617,11 +621,11 @@ interface IDotAudio extends IDotGlobalAttrs {
|
|
|
617
621
|
onWaiting?: (e: Event) => void;
|
|
618
622
|
onCanPlay?: (e: Event) => void;
|
|
619
623
|
}
|
|
620
|
-
interface IDotBlockQuote extends IDotGlobalAttrs {
|
|
624
|
+
interface IDotBlockQuote extends IDotGlobalAttrs<HTMLQuoteElement> {
|
|
621
625
|
quoteCite?: AttrVal<string>; // alias for cite
|
|
622
626
|
}
|
|
623
627
|
|
|
624
|
-
interface IDotBody extends IDotGlobalAttrs {
|
|
628
|
+
interface IDotBody extends IDotGlobalAttrs<HTMLBodyElement> {
|
|
625
629
|
align?: unknown; // Deprecated in HTML5. Use CSS.
|
|
626
630
|
background?: unknown; // Deprecated in HTML5. Use CSS.
|
|
627
631
|
|
|
@@ -636,11 +640,11 @@ interface IDotBody extends IDotGlobalAttrs {
|
|
|
636
640
|
onStorage?: (e: StorageEvent) => void;
|
|
637
641
|
}
|
|
638
642
|
|
|
639
|
-
interface IDotBr extends IDotGlobalAttrs {
|
|
643
|
+
interface IDotBr extends IDotGlobalAttrs<HTMLBRElement> {
|
|
640
644
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
641
645
|
clear?: unknown;
|
|
642
646
|
}
|
|
643
|
-
interface IDotButton extends IDotGlobalAttrs {
|
|
647
|
+
interface IDotButton extends IDotGlobalAttrs<HTMLButtonElement> {
|
|
644
648
|
autoFocus?: AttrVal<boolean>;
|
|
645
649
|
formAction?: AttrVal<string>;
|
|
646
650
|
disabled?: AttrVal<boolean>;
|
|
@@ -649,19 +653,19 @@ interface IDotButton extends IDotGlobalAttrs {
|
|
|
649
653
|
whichForm?: AttrVal<string>; // alias for form
|
|
650
654
|
value?: AttrVal<string>;
|
|
651
655
|
}
|
|
652
|
-
interface IDotCanvas extends IDotGlobalAttrs {
|
|
656
|
+
interface IDotCanvas extends IDotGlobalAttrs<HTMLCanvasElement> {
|
|
653
657
|
height?: AttrVal<number>;
|
|
654
658
|
width?: AttrVal<number>;
|
|
655
659
|
}
|
|
656
660
|
|
|
657
|
-
interface IDotCol extends IDotGlobalAttrs {
|
|
661
|
+
interface IDotCol extends IDotGlobalAttrs<HTMLTableColElement> {
|
|
658
662
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
659
663
|
charOff?: AttrVal<unknown>;
|
|
660
664
|
colSpan?: AttrVal<number>; // alias for span
|
|
661
665
|
vAlign?: AttrVal<number>;
|
|
662
666
|
}
|
|
663
667
|
|
|
664
|
-
interface IDotColGroup extends IDotGlobalAttrs {
|
|
668
|
+
interface IDotColGroup extends IDotGlobalAttrs<HTMLTableColElement> {
|
|
665
669
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
666
670
|
charOff?: AttrVal<unknown>;
|
|
667
671
|
colSpan?: AttrVal<number>; // alias for span
|
|
@@ -674,23 +678,23 @@ interface IDotDel extends IDotGlobalAttrs {
|
|
|
674
678
|
quoteCite?: AttrVal<string>; // alias for cite
|
|
675
679
|
}
|
|
676
680
|
|
|
677
|
-
interface IDotDetails extends IDotGlobalAttrs {
|
|
681
|
+
interface IDotDetails extends IDotGlobalAttrs<HTMLDetailsElement> {
|
|
678
682
|
open?: AttrVal<boolean>;
|
|
679
683
|
// Events:
|
|
680
684
|
onToggle?: (e: Event) => void;
|
|
681
685
|
}
|
|
682
|
-
interface IDotEmbed extends IDotGlobalAttrs {
|
|
686
|
+
interface IDotEmbed extends IDotGlobalAttrs<HTMLEmbedElement> {
|
|
683
687
|
height?: AttrVal<number>;
|
|
684
688
|
src?: AttrVal<string>;
|
|
685
689
|
type?: AttrVal<string>;
|
|
686
690
|
width?: AttrVal<number>;
|
|
687
691
|
}
|
|
688
|
-
interface IDotFieldSet extends IDotGlobalAttrs {
|
|
692
|
+
interface IDotFieldSet extends IDotGlobalAttrs<HTMLFieldSetElement> {
|
|
689
693
|
disabled?: AttrVal<boolean>;
|
|
690
694
|
name?: AttrVal<string>;
|
|
691
695
|
whichForm?: AttrVal<string>; // alias for form
|
|
692
696
|
}
|
|
693
|
-
interface IDotForm extends IDotGlobalAttrs {
|
|
697
|
+
interface IDotForm extends IDotGlobalAttrs<HTMLFormElement> {
|
|
694
698
|
acceptCharset?: AttrVal<string>; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
|
|
695
699
|
action?: AttrVal<string>;
|
|
696
700
|
autoComplete?: AttrVal<"on"> | AttrVal<"off">;
|
|
@@ -701,10 +705,10 @@ interface IDotForm extends IDotGlobalAttrs {
|
|
|
701
705
|
target?: AttrVal<"_self"> | AttrVal<"_blank"> | AttrVal<"_parent"> | AttrVal<"_top">;
|
|
702
706
|
// rel?: PrimativeOrObservable<string> IDotForm; // Not used with forms?
|
|
703
707
|
}
|
|
704
|
-
interface IDotHr extends IDotGlobalAttrs {
|
|
708
|
+
interface IDotHr extends IDotGlobalAttrs<HTMLHRElement> {
|
|
705
709
|
noShade?: AttrVal<unknown>;
|
|
706
710
|
}
|
|
707
|
-
interface IDotIFrame extends IDotGlobalAttrs {
|
|
711
|
+
interface IDotIFrame extends IDotGlobalAttrs<HTMLIFrameElement> {
|
|
708
712
|
allow?: AttrVal<string>;
|
|
709
713
|
allowFullScreen?: AttrVal<boolean>;
|
|
710
714
|
/** @deprecated Deprecated in HTML5. */
|
|
@@ -724,7 +728,7 @@ interface IDotIFrame extends IDotGlobalAttrs {
|
|
|
724
728
|
srcDoc?: AttrVal<string>;
|
|
725
729
|
width?: AttrVal<number>;
|
|
726
730
|
}
|
|
727
|
-
interface IDotImg extends IDotGlobalAttrs {
|
|
731
|
+
interface IDotImg extends IDotGlobalAttrs<HTMLImageElement> {
|
|
728
732
|
alt?: AttrVal<string>;
|
|
729
733
|
crossOrigin?: AttrVal<"anonymous"> | AttrVal<"use-credentials">;
|
|
730
734
|
decoding?: AttrVal<"async"> | AttrVal<"auto"> | AttrVal<"sync">;
|
|
@@ -742,7 +746,7 @@ interface IDotImg extends IDotGlobalAttrs {
|
|
|
742
746
|
useMap?: AttrVal<number>;
|
|
743
747
|
width?: AttrVal<number>;
|
|
744
748
|
}
|
|
745
|
-
interface IDotInput extends IDotGlobalAttrs {
|
|
749
|
+
interface IDotInput extends IDotGlobalAttrs<HTMLInputElement> {
|
|
746
750
|
accept?: AttrVal<string>;
|
|
747
751
|
alt?: AttrVal<string>;
|
|
748
752
|
autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
|
|
@@ -790,23 +794,23 @@ interface IDotKeyGen extends IDotGlobalAttrs {
|
|
|
790
794
|
keyType?: AttrVal<string>;
|
|
791
795
|
}
|
|
792
796
|
|
|
793
|
-
interface IDotLabel extends IDotGlobalAttrs {
|
|
797
|
+
interface IDotLabel extends IDotGlobalAttrs<HTMLLabelElement> {
|
|
794
798
|
for?: AttrVal<string>;
|
|
795
799
|
}
|
|
796
800
|
|
|
797
|
-
interface IDotLi extends IDotGlobalAttrs {
|
|
801
|
+
interface IDotLi extends IDotGlobalAttrs<HTMLLIElement> {
|
|
798
802
|
value?: AttrVal<number>;
|
|
799
803
|
}
|
|
800
804
|
|
|
801
|
-
interface IDotMap extends IDotGlobalAttrs {
|
|
805
|
+
interface IDotMap extends IDotGlobalAttrs<HTMLMapElement> {
|
|
802
806
|
name?: AttrVal<string>;
|
|
803
807
|
}
|
|
804
808
|
|
|
805
|
-
interface IDotMenu extends IDotGlobalAttrs {
|
|
809
|
+
interface IDotMenu extends IDotGlobalAttrs<HTMLMenuElement> {
|
|
806
810
|
type?: AttrVal<string>;
|
|
807
811
|
}
|
|
808
812
|
|
|
809
|
-
interface IDotMeter extends IDotGlobalAttrs {
|
|
813
|
+
interface IDotMeter extends IDotGlobalAttrs<HTMLMeterElement> {
|
|
810
814
|
high?: AttrVal<number>;
|
|
811
815
|
low?: AttrVal<number>;
|
|
812
816
|
max?: AttrVal<number>;
|
|
@@ -815,7 +819,7 @@ interface IDotMeter extends IDotGlobalAttrs {
|
|
|
815
819
|
value?: AttrVal<number>;
|
|
816
820
|
}
|
|
817
821
|
|
|
818
|
-
interface IDotObject extends IDotGlobalAttrs {
|
|
822
|
+
interface IDotObject extends IDotGlobalAttrs<HTMLObjectElement> {
|
|
819
823
|
archive?: AttrVal<string>;
|
|
820
824
|
classId?: AttrVal<string>;
|
|
821
825
|
codeBase?: AttrVal<string>;
|
|
@@ -830,46 +834,46 @@ interface IDotObject extends IDotGlobalAttrs {
|
|
|
830
834
|
width?: AttrVal<number>;
|
|
831
835
|
}
|
|
832
836
|
|
|
833
|
-
interface IDotOl extends IDotGlobalAttrs {
|
|
837
|
+
interface IDotOl extends IDotGlobalAttrs<HTMLUListElement> {
|
|
834
838
|
/** @deprecated Deprecated in HTML5. */
|
|
835
839
|
reversed?: AttrVal<boolean>;
|
|
836
840
|
start?: AttrVal<number>;
|
|
837
841
|
}
|
|
838
842
|
|
|
839
|
-
interface IDotOptGroup extends IDotGlobalAttrs {
|
|
843
|
+
interface IDotOptGroup extends IDotGlobalAttrs<HTMLUListElement> {
|
|
840
844
|
disabled?: AttrVal<boolean>;
|
|
841
845
|
}
|
|
842
846
|
|
|
843
|
-
interface IDotOption extends IDotGlobalAttrs {
|
|
847
|
+
interface IDotOption extends IDotGlobalAttrs<HTMLUListElement> {
|
|
844
848
|
disabled?: AttrVal<boolean>;
|
|
845
849
|
optionLabel?: AttrVal<string>; // Alias for label
|
|
846
850
|
selected?: AttrVal<boolean>;
|
|
847
851
|
value?: AttrVal<string>;
|
|
848
852
|
}
|
|
849
853
|
|
|
850
|
-
interface IDotOutput extends IDotGlobalAttrs {
|
|
854
|
+
interface IDotOutput extends IDotGlobalAttrs<HTMLOutputElement> {
|
|
851
855
|
for?: AttrVal<string>;
|
|
852
856
|
name?: AttrVal<string>;
|
|
853
857
|
whichForm?: AttrVal<string>; // Alias for form
|
|
854
858
|
}
|
|
855
859
|
|
|
856
|
-
interface IDotParam extends IDotGlobalAttrs {
|
|
860
|
+
interface IDotParam extends IDotGlobalAttrs<HTMLParamElement> {
|
|
857
861
|
name?: AttrVal<string>;
|
|
858
862
|
value?: AttrVal<string>;
|
|
859
863
|
/** @deprecated Deprecated in HTML5. */
|
|
860
864
|
valueType?: AttrVal<unknown>;
|
|
861
865
|
}
|
|
862
866
|
|
|
863
|
-
interface IDotProgress extends IDotGlobalAttrs {
|
|
867
|
+
interface IDotProgress extends IDotGlobalAttrs<HTMLProgressElement> {
|
|
864
868
|
max?: AttrVal<number>;
|
|
865
869
|
value?: AttrVal<number>;
|
|
866
870
|
}
|
|
867
871
|
|
|
868
|
-
interface IDotQ extends IDotGlobalAttrs {
|
|
872
|
+
interface IDotQ extends IDotGlobalAttrs<HTMLQuoteElement> {
|
|
869
873
|
quoteCite?: AttrVal<string>; // alias for cite
|
|
870
874
|
}
|
|
871
875
|
|
|
872
|
-
interface IDotSelect extends IDotGlobalAttrs {
|
|
876
|
+
interface IDotSelect extends IDotGlobalAttrs<HTMLSelectElement> {
|
|
873
877
|
autoFocus?: AttrVal<boolean>;
|
|
874
878
|
disabled?: AttrVal<boolean>;
|
|
875
879
|
multiple?: AttrVal<boolean>;
|
|
@@ -880,14 +884,14 @@ interface IDotSelect extends IDotGlobalAttrs {
|
|
|
880
884
|
value?: AttrVal<string>; // Pseudo attribute for convenience.
|
|
881
885
|
}
|
|
882
886
|
|
|
883
|
-
interface IDotSource extends IDotGlobalAttrs {
|
|
887
|
+
interface IDotSource extends IDotGlobalAttrs<HTMLSourceElement> {
|
|
884
888
|
media?: AttrVal<string>;
|
|
885
889
|
src?: AttrVal<string>;
|
|
886
890
|
type?: AttrVal<string>;
|
|
887
891
|
sizes?: AttrVal<string>;
|
|
888
892
|
srcSet?: AttrVal<string>;
|
|
889
893
|
}
|
|
890
|
-
interface IDotTable extends IDotGlobalAttrs {
|
|
894
|
+
interface IDotTable extends IDotGlobalAttrs<HTMLTableElement> {
|
|
891
895
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
892
896
|
border?: AttrVal<string> | AttrVal<number>;
|
|
893
897
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
@@ -906,7 +910,7 @@ interface IDotTable extends IDotGlobalAttrs {
|
|
|
906
910
|
width?: AttrVal<number>;
|
|
907
911
|
}
|
|
908
912
|
|
|
909
|
-
interface IDotTextArea extends IDotGlobalAttrs {
|
|
913
|
+
interface IDotTextArea extends IDotGlobalAttrs<HTMLTextAreaElement> {
|
|
910
914
|
autoCapitalize?: AttrVal<"none"> | AttrVal<"sentences"> | AttrVal<"words"> | AttrVal<"characters">;
|
|
911
915
|
autoFocus?: AttrVal<boolean>;
|
|
912
916
|
cols?: AttrVal<number>;
|
|
@@ -924,14 +928,14 @@ interface IDotTextArea extends IDotGlobalAttrs {
|
|
|
924
928
|
value?: AttrVal<string>; // Pseudo attribute for convenience.
|
|
925
929
|
}
|
|
926
930
|
|
|
927
|
-
interface IDotTBody extends IDotGlobalAttrs {
|
|
931
|
+
interface IDotTBody extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
928
932
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
929
933
|
charOff?: AttrVal<unknown>;
|
|
930
934
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
931
935
|
vAlign?: AttrVal<unknown>;
|
|
932
936
|
}
|
|
933
937
|
|
|
934
|
-
interface IDotTd extends IDotGlobalAttrs {
|
|
938
|
+
interface IDotTd extends IDotGlobalAttrs<HTMLTableCellElement> {
|
|
935
939
|
|
|
936
940
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
937
941
|
axis?: AttrVal<string>;
|
|
@@ -949,18 +953,18 @@ interface IDotTd extends IDotGlobalAttrs {
|
|
|
949
953
|
vAlign?: AttrVal<string>;
|
|
950
954
|
}
|
|
951
955
|
|
|
952
|
-
interface IDotTFoot extends IDotGlobalAttrs {
|
|
956
|
+
interface IDotTFoot extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
953
957
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
954
958
|
charOff?: AttrVal<number>;
|
|
955
959
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
956
960
|
vAlign?: AttrVal<string>;
|
|
957
961
|
}
|
|
958
962
|
|
|
959
|
-
interface IDotTime extends IDotGlobalAttrs {
|
|
963
|
+
interface IDotTime extends IDotGlobalAttrs<HTMLTimeElement> {
|
|
960
964
|
dateTime?: AttrVal<string>;
|
|
961
965
|
}
|
|
962
966
|
|
|
963
|
-
interface IDotTh extends IDotGlobalAttrs {
|
|
967
|
+
interface IDotTh extends IDotGlobalAttrs<HTMLTableCellElement> {
|
|
964
968
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
965
969
|
axis?: AttrVal<string>;
|
|
966
970
|
colSpan?: AttrVal<number>;
|
|
@@ -973,21 +977,21 @@ interface IDotTh extends IDotGlobalAttrs {
|
|
|
973
977
|
vAlign?: AttrVal<string>;
|
|
974
978
|
}
|
|
975
979
|
|
|
976
|
-
interface IDotTHead extends IDotGlobalAttrs {
|
|
980
|
+
interface IDotTHead extends IDotGlobalAttrs<HTMLTableSectionElement> {
|
|
977
981
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
978
982
|
charOff?: AttrVal<string> | AttrVal<number>;
|
|
979
983
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
980
984
|
vAlign?: AttrVal<string>;
|
|
981
985
|
}
|
|
982
986
|
|
|
983
|
-
interface IDotTr extends IDotGlobalAttrs {
|
|
987
|
+
interface IDotTr extends IDotGlobalAttrs<HTMLTableRowElement> {
|
|
984
988
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
985
989
|
charOff?: AttrVal<string> | AttrVal<number>;
|
|
986
990
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
987
991
|
vAlign?: AttrVal<string>;
|
|
988
992
|
}
|
|
989
993
|
|
|
990
|
-
interface IDotTrack extends IDotGlobalAttrs {
|
|
994
|
+
interface IDotTrack extends IDotGlobalAttrs<HTMLTrackElement> {
|
|
991
995
|
default?: AttrVal<boolean>;
|
|
992
996
|
kind?: AttrVal<string>;
|
|
993
997
|
src?: AttrVal<string>;
|
|
@@ -998,7 +1002,7 @@ interface IDotTrack extends IDotGlobalAttrs {
|
|
|
998
1002
|
onCueChange?: (e: Event) => void;
|
|
999
1003
|
}
|
|
1000
1004
|
|
|
1001
|
-
interface IDotVideo extends IDotGlobalAttrs {
|
|
1005
|
+
interface IDotVideo extends IDotGlobalAttrs<HTMLVideoElement> {
|
|
1002
1006
|
autoPlay?: AttrVal<boolean>;
|
|
1003
1007
|
buffered?: IReactive; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
|
|
1004
1008
|
controls?: AttrVal<boolean>;
|
package/src/index.d.ts
CHANGED
|
@@ -8,5 +8,8 @@ export * from "./styles/i-dot-css";
|
|
|
8
8
|
|
|
9
9
|
export { default as IDotComponent, FrameworkItems } from "./i-dot-component";
|
|
10
10
|
|
|
11
|
-
export { IWatcher
|
|
11
|
+
export { IWatcher } from "./bindings/i-watcher";
|
|
12
|
+
export { IObserver } from "./bindings/i-observer";
|
|
13
|
+
export { IBinding } from "./bindings/i-binding";
|
|
14
|
+
export { IReactive } from "./bindings/i-reactive";
|
|
12
15
|
export { default as IEventBus } from "./i-event-bus";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IBinding
|
|
1
|
+
import { IBinding } from "../bindings/i-binding";
|
|
2
|
+
import { IWatcher } from "../bindings/i-watcher";
|
|
2
3
|
|
|
3
4
|
// Global keyword values.
|
|
4
5
|
export type GKV = IWatcher<string>|IBinding<any, string>|"inherit"|"initial"|"unset"|"revert"|"revert-layer";
|
|
@@ -5,7 +5,8 @@ import IShadowProp from "./complex-css-types/i-shadow-prop";
|
|
|
5
5
|
import ITransformationProp from "./complex-css-types/i-transformation-prop";
|
|
6
6
|
import ColorProp from "./mapped-types/color-props";
|
|
7
7
|
import LengthProp from "./mapped-types/length-prop";
|
|
8
|
-
import { IBinding
|
|
8
|
+
import { IBinding } from "../bindings/i-binding";
|
|
9
|
+
import { IWatcher } from "../bindings/i-watcher";
|
|
9
10
|
|
|
10
11
|
type BackgroundPositionShorthand2D = string;
|
|
11
12
|
type BackgroundRepeatValues2d = "no-repeat"|"repeat"|"space"|"round";
|