dothtml-interfaces 0.1.36 → 0.1.38
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 +4 -0
- package/src/i-dot-css.d.ts +705 -702
- package/src/i-dot.d.ts +304 -194
package/src/i-dot.d.ts
CHANGED
|
@@ -19,7 +19,8 @@ export interface IDotDocument
|
|
|
19
19
|
(document?: Element, classPrefix?: number, targetWindow?: Window&(typeof globalThis)): void;
|
|
20
20
|
|
|
21
21
|
// Internal use only:
|
|
22
|
-
|
|
22
|
+
// Removed in v6.
|
|
23
|
+
// _appendOrCreateDocument(content: DotContent, parentEl?: Element, beforeNode?: Node|number);
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* A conditional function, analogous to if. Renders the specified DOT if a condition is met. Dynamic binding is possible when condition and callback are functions.
|
|
@@ -39,7 +40,7 @@ export interface IDotDocument
|
|
|
39
40
|
/**
|
|
40
41
|
* Creates a custom element.
|
|
41
42
|
*/
|
|
42
|
-
el(tag: string, content?: DotContent):
|
|
43
|
+
el(tag: string, content?: DotContent): IDotDocument
|
|
43
44
|
|
|
44
45
|
// Special "tags"
|
|
45
46
|
/**
|
|
@@ -52,6 +53,7 @@ export interface IDotDocument
|
|
|
52
53
|
text(content: string|number|boolean|IReactive): IDotDocument;
|
|
53
54
|
/**
|
|
54
55
|
* Mounts a component.
|
|
56
|
+
* TODO: add second arg.
|
|
55
57
|
*/
|
|
56
58
|
mount(component: IComponent): IMountedComponent;
|
|
57
59
|
/**
|
|
@@ -70,159 +72,265 @@ export interface IDotDocument
|
|
|
70
72
|
/**
|
|
71
73
|
* Get the last HTML element added to the targeted document.
|
|
72
74
|
*/
|
|
73
|
-
getLast(): HTMLElement;
|
|
75
|
+
// getLast(): HTMLElement;
|
|
74
76
|
/**
|
|
75
77
|
* Deletes each element within the targeted document.
|
|
76
78
|
*/
|
|
77
79
|
empty(): IDotDocument;
|
|
78
80
|
|
|
79
|
-
|
|
81
|
+
// Redundant in v6.
|
|
82
|
+
// scopeClass(prefix: number|string|null, content: DotContent): IDotDocument;
|
|
80
83
|
|
|
81
84
|
// Tags.
|
|
82
|
-
a(content?: DotContent):
|
|
85
|
+
a(content?: DotContent, attrs?: (attrs: IDotA)=>IDotA): IDotDocument;
|
|
86
|
+
a(attrs: (attrs: IDotA)=>IDotA): IDotDocument;
|
|
83
87
|
|
|
84
|
-
aside(content?: DotContent
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
aside(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
89
|
+
aside(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
90
|
+
abbr(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
91
|
+
abbr(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
92
|
+
address(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
93
|
+
address(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
94
|
+
|
|
95
|
+
area(content?: DotContent, attrs?: (attrs: IDotArea)=>IDotArea): IDotDocument;
|
|
96
|
+
area(attrs: (attrs: IDotArea)=>IDotArea): IDotDocument;
|
|
89
97
|
|
|
90
|
-
article(content?: DotContent
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
article(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
99
|
+
article(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
100
|
+
|
|
101
|
+
audio(content?: DotContent, attrs?: (attrs: IDotAudio)=>IDotAudio): IDotDocument;
|
|
102
|
+
audio(attrs: (attrs: IDotAudio)=>IDotAudio): IDotDocument;
|
|
103
|
+
|
|
104
|
+
b(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
105
|
+
b(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
106
|
+
bdi(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
107
|
+
bdi(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
108
|
+
bdo(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
109
|
+
bdo(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
110
|
+
|
|
111
|
+
blockQuote(content?: DotContent, attrs?: (attrs: IDotBlockQuote)=>IDotBlockQuote): IDotDocument;
|
|
112
|
+
blockQuote(attrs: (attrs: IDotBlockQuote)=>IDotBlockQuote): IDotDocument;
|
|
97
113
|
|
|
98
|
-
|
|
99
|
-
body(content?: DotContent
|
|
100
|
-
|
|
101
|
-
button(content?: DotContent): IDotButton;
|
|
102
|
-
canvas(content?: DotContent): IDotCanvas;
|
|
114
|
+
// This shouldn't really be used - if it is, then it should have the custom behavior of rewriting the existing document body, rather than adding a second one.
|
|
115
|
+
body(content?: DotContent, attrs?: (attrs: IDotBody)=>IDotBody): IDotDocument;
|
|
116
|
+
body(content?: DotContent): IDotDocument;
|
|
103
117
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
118
|
+
br(content?: DotContent, attrs?: (attrs: IDotBr)=>IDotBr): IDotDocument;
|
|
119
|
+
br(attrs: (attrs: IDotBr)=>IDotBr): IDotDocument;
|
|
120
|
+
button(content?: DotContent, attrs?: (attrs: IDotButton)=>IDotButton): IDotDocument;
|
|
121
|
+
button(attrs: (attrs: IDotButton)=>IDotButton): IDotDocument;
|
|
122
|
+
canvas(content?: DotContent, attrs?: (attrs: IDotCanvas)=>IDotCanvas): IDotDocument;
|
|
123
|
+
canvas(attrs: (attrs: IDotCanvas)=>IDotCanvas): IDotDocument;
|
|
107
124
|
|
|
108
|
-
|
|
109
|
-
|
|
125
|
+
caption(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
126
|
+
caption(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
127
|
+
cite(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
128
|
+
cite(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
129
|
+
code(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
130
|
+
code(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
110
131
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
del(content?: DotContent): IDotDel;
|
|
117
|
-
details(content?: DotContent): IDotDetails;
|
|
118
|
-
|
|
119
|
-
dfn(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
120
|
-
dialog(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
121
|
-
div(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
122
|
-
dl(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
123
|
-
dt(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
124
|
-
em(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
125
|
-
|
|
126
|
-
embed(content?: DotContent): IDotEmbed;
|
|
127
|
-
fieldSet(content?: DotContent): IDotFieldSet;
|
|
128
|
-
|
|
129
|
-
figCaption(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
130
|
-
figure(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
131
|
-
footer(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
132
|
-
|
|
133
|
-
form(content?: DotContent): IDotForm;
|
|
134
|
-
|
|
135
|
-
h1(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
136
|
-
h2(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
137
|
-
h3(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
138
|
-
h4(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
139
|
-
h5(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
140
|
-
h6(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
141
|
-
header(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
142
|
-
|
|
143
|
-
hr(content?: DotContent): IDotHr;
|
|
144
|
-
|
|
145
|
-
i(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
146
|
-
|
|
147
|
-
iFrame(content?: DotContent): IDotIFrame;
|
|
148
|
-
img(content?: DotContent): IDotImg;
|
|
149
|
-
input(content?: DotContent): IDotInput;
|
|
150
|
-
ins(content?: DotContent): IDotIns;
|
|
132
|
+
col(content?: DotContent, attrs?: (attrs: IDotCol)=>IDotCol): IDotDocument;
|
|
133
|
+
col(attrs: (attrs: IDotCol)=>IDotCol): IDotDocument;
|
|
134
|
+
colGroup(content?: DotContent, attrs?: (attrs: IDotColGroup)=>IDotColGroup): IDotDocument;
|
|
135
|
+
colGroup(attrs: (attrs: IDotColGroup)=>IDotColGroup): IDotDocument;
|
|
151
136
|
|
|
152
|
-
|
|
137
|
+
content(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
138
|
+
content(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
139
|
+
data(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
140
|
+
data(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
141
|
+
dataList(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
142
|
+
dataList(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
143
|
+
dd(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
144
|
+
dd(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
145
|
+
|
|
146
|
+
del(content?: DotContent, attrs?: (attrs: IDotDel)=>IDotDel): IDotDocument;
|
|
147
|
+
del(attrs: (attrs: IDotDel)=>IDotDel): IDotDocument;
|
|
148
|
+
details(content?: DotContent, attrs?: (attrs: IDotDetails)=>IDotDetails): IDotDocument;
|
|
149
|
+
details(attrs: (attrs: IDotDetails)=>IDotDetails): IDotDocument;
|
|
150
|
+
|
|
151
|
+
dfn(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
152
|
+
dfn(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
153
|
+
dialog(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
154
|
+
dialog(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
155
|
+
div(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
156
|
+
div(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
157
|
+
dl(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
158
|
+
dl(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
159
|
+
dt(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
160
|
+
dt(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
161
|
+
em(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
162
|
+
em(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
163
|
+
|
|
164
|
+
embed(content?: DotContent, attrs?: (attrs: IDotEmbed)=>IDotEmbed): IDotDocument;
|
|
165
|
+
embed(attrs: (attrs: IDotEmbed)=>IDotEmbed): IDotDocument;
|
|
166
|
+
fieldSet(content?: DotContent, attrs?: (attrs: IDotFieldSet)=>IDotFieldSet): IDotDocument;
|
|
167
|
+
fieldSet(attrs: (attrs: IDotFieldSet)=>IDotFieldSet): IDotDocument;
|
|
168
|
+
|
|
169
|
+
figCaption(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
170
|
+
figCaption(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
171
|
+
figure(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
172
|
+
figure(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
173
|
+
footer(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
174
|
+
footer(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
175
|
+
|
|
176
|
+
form(content?: DotContent, attrs?: (attrs: IDotForm)=>IDotForm): IDotDocument;
|
|
177
|
+
form(attrs: (attrs: IDotForm)=>IDotForm): IDotDocument;
|
|
178
|
+
|
|
179
|
+
h1(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
180
|
+
h1(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
181
|
+
h2(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
182
|
+
h2(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
183
|
+
h3(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
184
|
+
h3(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
185
|
+
h4(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
186
|
+
h4(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
187
|
+
h5(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
188
|
+
h5(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
189
|
+
h6(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
190
|
+
h6(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
191
|
+
header(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
192
|
+
header(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
193
|
+
|
|
194
|
+
hr(content?: DotContent, attrs?: (attrs: IDotHr)=>IDotHr): IDotDocument;
|
|
195
|
+
hr(attrs: (attrs: IDotHr)=>IDotHr): IDotDocument;
|
|
196
|
+
|
|
197
|
+
i(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
198
|
+
i(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
199
|
+
|
|
200
|
+
iFrame(content?: DotContent, attrs?: (attrs: IDotIFrame)=>IDotIFrame): IDotDocument;
|
|
201
|
+
iFrame(attrs: (attrs: IDotIFrame)=>IDotIFrame): IDotDocument;
|
|
202
|
+
img(content?: DotContent, attrs?: (attrs: IDotImg)=>IDotImg): IDotDocument;
|
|
203
|
+
img(attrs: (attrs: IDotImg)=>IDotImg): IDotDocument;
|
|
204
|
+
input(content?: DotContent, attrs?: (attrs: IDotInput)=>IDotInput): IDotDocument;
|
|
205
|
+
input(attrs: (attrs: IDotInput)=>IDotInput): IDotDocument;
|
|
206
|
+
ins(content?: DotContent, attrs?: (attrs: IDotIns)=>IDotIns): IDotDocument;
|
|
207
|
+
ins(attrs: (attrs: IDotIns)=>IDotIns): IDotDocument;
|
|
208
|
+
|
|
209
|
+
kbd(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
210
|
+
kbd(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
153
211
|
|
|
154
212
|
/** @deprecated Deprecated in HTML5. */
|
|
155
|
-
keyGen(content?: DotContent):
|
|
156
|
-
|
|
213
|
+
keyGen(content?: DotContent, attrs?: (attrs: IDotKeyGen)=>IDotKeyGen): IDotDocument;
|
|
214
|
+
keyGen(attrs: (attrs: IDotKeyGen)=>IDotKeyGen): IDotDocument;
|
|
215
|
+
label(content?: DotContent, attrs?: (attrs: IDotLabel)=>IDotLabel): IDotDocument;
|
|
216
|
+
label(attrs: (attrs: IDotLabel)=>IDotLabel): IDotDocument;
|
|
157
217
|
|
|
158
|
-
legend(content?: DotContent
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
218
|
+
legend(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
219
|
+
legend(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
220
|
+
|
|
221
|
+
li(content?: DotContent, attrs?: (attrs: IDotLi)=>IDotLi): IDotDocument;
|
|
222
|
+
li(attrs: (attrs: IDotLi)=>IDotLi): IDotDocument;
|
|
223
|
+
|
|
224
|
+
main(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
225
|
+
main(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
226
|
+
|
|
227
|
+
map(content?: DotContent, attrs?: (attrs: IDotMap)=>IDotMap): IDotDocument;
|
|
228
|
+
map(attrs: (attrs: IDotMap)=>IDotMap): IDotDocument;
|
|
229
|
+
|
|
230
|
+
mark(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
231
|
+
mark(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
232
|
+
|
|
233
|
+
menu(content?: DotContent, attrs?: (attrs: IDotMenu)=>IDotMenu): IDotDocument;
|
|
234
|
+
menu(attrs: (attrs: IDotMenu)=>IDotMenu): IDotDocument;
|
|
235
|
+
meter(content?: DotContent, attrs?: (attrs: IDotMeter)=>IDotMeter): IDotDocument;
|
|
236
|
+
meter(attrs: (attrs: IDotMeter)=>IDotMeter): IDotDocument;
|
|
237
|
+
|
|
238
|
+
nav(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
239
|
+
nav(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
240
|
+
|
|
241
|
+
object(content?: DotContent, attrs?: (attrs: IDotObject)=>IDotObject): IDotDocument;
|
|
242
|
+
object(attrs: (attrs: IDotObject)=>IDotObject): IDotDocument;
|
|
243
|
+
ol(content?: DotContent, attrs?: (attrs: IDotOl)=>IDotOl): IDotDocument;
|
|
244
|
+
ol(attrs: (attrs: IDotOl)=>IDotOl): IDotDocument;
|
|
245
|
+
optGroup(content?: DotContent, attrs?: (attrs: IDotOptGroup)=>IDotOptGroup): IDotDocument;
|
|
246
|
+
optGroup(attrs: (attrs: IDotOptGroup)=>IDotOptGroup): IDotDocument;
|
|
247
|
+
option(content?: DotContent, attrs?: (attrs: IDotOption)=>IDotOption): IDotDocument;
|
|
248
|
+
option(attrs: (attrs: IDotOption)=>IDotOption): IDotDocument;
|
|
249
|
+
output(content?: DotContent, attrs?: (attrs: IDotOutput)=>IDotOutput): IDotDocument;
|
|
250
|
+
output(attrs: (attrs: IDotOutput)=>IDotOutput): IDotDocument;
|
|
251
|
+
|
|
252
|
+
p(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
253
|
+
p(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
254
|
+
|
|
255
|
+
param(content?: DotContent, attrs?: (attrs: IDotParam)=>IDotParam): IDotDocument;
|
|
256
|
+
param(attrs: (attrs: IDotParam)=>IDotParam): IDotDocument;
|
|
257
|
+
|
|
258
|
+
pre(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
259
|
+
pre(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
260
|
+
|
|
261
|
+
progress(content?: DotContent, attrs?: (attrs: IDotProgress)=>IDotProgress): IDotDocument;
|
|
262
|
+
progress(attrs: (attrs: IDotProgress)=>IDotProgress): IDotDocument;
|
|
263
|
+
q(content?: DotContent, attrs?: (attrs: IDotQ)=>IDotQ): IDotDocument;
|
|
264
|
+
q(attrs: (attrs: IDotQ)=>IDotQ): IDotDocument;
|
|
265
|
+
|
|
266
|
+
rp(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
267
|
+
rp(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
268
|
+
rt(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
269
|
+
rt(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
270
|
+
ruby(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
271
|
+
ruby(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
272
|
+
s(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
273
|
+
s(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
274
|
+
samp(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
275
|
+
samp(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
276
|
+
section(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
277
|
+
section(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
278
|
+
|
|
279
|
+
select(content?: DotContent, attrs?: (attrs: IDotSelect)=>IDotSelect): IDotDocument;
|
|
280
|
+
select(attrs: (attrs: IDotSelect)=>IDotSelect): IDotDocument;
|
|
281
|
+
|
|
282
|
+
small(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
283
|
+
small(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
284
|
+
|
|
285
|
+
source(content?: DotContent, attrs?: (attrs: IDotSource)=>IDotSource): IDotDocument;
|
|
286
|
+
source(attrs: (attrs: IDotSource)=>IDotSource): IDotDocument;
|
|
287
|
+
|
|
288
|
+
span(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
289
|
+
span(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
290
|
+
strong(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
291
|
+
strong(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
292
|
+
svg(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
293
|
+
svg(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
294
|
+
sub(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
295
|
+
sub(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
296
|
+
summary(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
297
|
+
summary(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
298
|
+
sup(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
299
|
+
sup(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
300
|
+
|
|
301
|
+
table(content?: DotContent, attrs?: (attrs: IDotTable)=>IDotTable): IDotDocument;
|
|
302
|
+
table(attrs: (attrs: IDotTable)=>IDotTable): IDotDocument;
|
|
303
|
+
tBody(content?: DotContent, attrs?: (attrs: IDotTBody)=>IDotTBody): IDotDocument;
|
|
304
|
+
tBody(attrs: (attrs: IDotTBody)=>IDotTBody): IDotDocument;
|
|
305
|
+
td(content?: DotContent, attrs?: (attrs: IDotTd)=>IDotTd): IDotDocument;
|
|
306
|
+
td(attrs: (attrs: IDotTd)=>IDotTd): IDotDocument;
|
|
307
|
+
textArea(content?: DotContent, attrs?: (attrs: IDotTextArea)=>IDotTextArea): IDotDocument;
|
|
308
|
+
textArea(attrs: (attrs: IDotTextArea)=>IDotTextArea): IDotDocument;
|
|
309
|
+
tFoot(content?: DotContent, attrs?: (attrs: IDotTFoot)=>IDotTFoot): IDotDocument;
|
|
310
|
+
tFoot(attrs: (attrs: IDotTFoot)=>IDotTFoot): IDotDocument;
|
|
311
|
+
th(content?: DotContent, attrs?: (attrs: IDotTh)=>IDotTh): IDotDocument;
|
|
312
|
+
th(attrs: (attrs: IDotTh)=>IDotTh): IDotDocument;
|
|
313
|
+
tHead(content?: DotContent, attrs?: (attrs: IDotTHead)=>IDotTHead): IDotDocument;
|
|
314
|
+
tHead(attrs: (attrs: IDotTHead)=>IDotTHead): IDotDocument;
|
|
315
|
+
time(content?: DotContent, attrs?: (attrs: IDotTime)=>IDotTime): IDotDocument;
|
|
316
|
+
time(attrs: (attrs: IDotTime)=>IDotTime): IDotDocument;
|
|
317
|
+
tr(content?: DotContent, attrs?: (attrs: IDotTr)=>IDotTr): IDotDocument;
|
|
318
|
+
tr(attrs: (attrs: IDotTr)=>IDotTr): IDotDocument;
|
|
319
|
+
track(content?: DotContent, attrs?: (attrs: IDotTrack)=>IDotTrack): IDotDocument;
|
|
320
|
+
track(attrs: (attrs: IDotTrack)=>IDotTrack): IDotDocument;
|
|
321
|
+
|
|
322
|
+
u(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
323
|
+
u(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
324
|
+
ul(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
325
|
+
ul(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
326
|
+
var(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
327
|
+
var(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
328
|
+
|
|
329
|
+
video(content?: DotContent, attrs?: (attrs: IDotVideo)=>IDotVideo): IDotDocument;
|
|
330
|
+
video(attrs: (attrs: IDotVideo)=>IDotVideo): IDotDocument;
|
|
331
|
+
|
|
332
|
+
wbr(content?: DotContent, attrs?: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
333
|
+
wbr(attrs: (attrs: IDotAttrBuilder<IDotGenericElement>)=>IDotAttrBuilder<IDotGenericElement>): IDotDocument;
|
|
226
334
|
}
|
|
227
335
|
|
|
228
336
|
type Styles = string|((css: IDotCss) => IDotcssProp|string);
|
|
@@ -237,7 +345,7 @@ interface IComponentFactory {
|
|
|
237
345
|
*/
|
|
238
346
|
export interface IDotCore extends IDotDocument
|
|
239
347
|
{
|
|
240
|
-
(targetSelector: string|Element|Node|NodeList|Array<Node|Element>):
|
|
348
|
+
(targetSelector: string|Element|Node|NodeList|Array<Node|Element>): IDotDocument;
|
|
241
349
|
|
|
242
350
|
version: string;
|
|
243
351
|
styleMode: "sync"|"async";
|
|
@@ -275,7 +383,7 @@ export interface IDotConditionalDocument extends IDotDocument{
|
|
|
275
383
|
}
|
|
276
384
|
|
|
277
385
|
// Attribute interface (for all elements):
|
|
278
|
-
export interface
|
|
386
|
+
export interface IDotAttrBuilder<T>
|
|
279
387
|
{
|
|
280
388
|
// (document?: Element, classPrefix?: number): IDotElement;
|
|
281
389
|
// TODO: consider allowing a function that passes in the container for the previous element to allow adding attributes to it.
|
|
@@ -402,7 +510,7 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
|
|
|
402
510
|
onUnload(callback: (e: Event)=>void): T;
|
|
403
511
|
}
|
|
404
512
|
|
|
405
|
-
|
|
513
|
+
interface IDotGenericElement extends IDotAttrBuilder<IDotGenericElement>{}
|
|
406
514
|
|
|
407
515
|
// Interface for specific elements:
|
|
408
516
|
|
|
@@ -411,7 +519,7 @@ interface IMountedComponent extends IDotDocument{
|
|
|
411
519
|
prop(name: string, value: any): IMountedComponent;
|
|
412
520
|
}
|
|
413
521
|
|
|
414
|
-
interface IDotA extends
|
|
522
|
+
interface IDotA extends IDotAttrBuilder<IDotA>{
|
|
415
523
|
download(value: AttrVal<boolean>): IDotA;
|
|
416
524
|
hRef(value: AttrVal<string>): IDotA;
|
|
417
525
|
hRefLang(value: AttrVal<string>): IDotA;
|
|
@@ -428,7 +536,7 @@ interface IDotA extends IDotElementDocument<IDotA>{
|
|
|
428
536
|
target(value: AttrVal<"_blank">|AttrVal<"_parent">|AttrVal<"_self">|AttrVal<"_top">): IDotA;
|
|
429
537
|
type(value: AttrVal<string>): IDotA;
|
|
430
538
|
}
|
|
431
|
-
interface IDotArea extends
|
|
539
|
+
interface IDotArea extends IDotAttrBuilder<IDotArea>{
|
|
432
540
|
alt(value: AttrVal<string>): IDotArea;
|
|
433
541
|
coords(value: AttrVal<string>): IDotArea;
|
|
434
542
|
download(value: AttrVal<string>): IDotArea;
|
|
@@ -441,7 +549,7 @@ interface IDotArea extends IDotElementDocument<IDotArea>{
|
|
|
441
549
|
shape(value: AttrVal<string>): IDotArea;
|
|
442
550
|
target(value: AttrVal<string>): IDotArea;
|
|
443
551
|
}
|
|
444
|
-
interface IDotAudio extends
|
|
552
|
+
interface IDotAudio extends IDotAttrBuilder<IDotAudio>{
|
|
445
553
|
autoPlay(value: AttrVal<boolean>): IDotAudio;
|
|
446
554
|
// buffered(value: unknown): IDotAudio; // Not used?
|
|
447
555
|
controls(value: AttrVal<boolean>): IDotAudio;
|
|
@@ -452,9 +560,10 @@ interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
|
452
560
|
crossOrigin(value: AttrVal<"anonymous">|AttrVal<"use-credentials">): IDotAudio;
|
|
453
561
|
|
|
454
562
|
// Special functions:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
563
|
+
// TODO: these need to be removed from here.
|
|
564
|
+
// pause(): IDotAudio;
|
|
565
|
+
// play(): IDotAudio;
|
|
566
|
+
// stop(): IDotAudio;
|
|
458
567
|
|
|
459
568
|
// Events:
|
|
460
569
|
onAbort(callback: (e: Event)=>void): IDotAudio;
|
|
@@ -479,10 +588,10 @@ interface IDotAudio extends IDotElementDocument<IDotAudio>{
|
|
|
479
588
|
onWaiting(callback: (e: Event)=>void): IDotAudio;
|
|
480
589
|
onCanPlay(callback: (e: Event)=>void): IDotAudio;
|
|
481
590
|
}
|
|
482
|
-
interface IDotBlockQuote extends
|
|
591
|
+
interface IDotBlockQuote extends IDotAttrBuilder<IDotBlockQuote>{
|
|
483
592
|
quoteCite(value: AttrVal<string>): IDotBlockQuote; // alias for cite
|
|
484
593
|
}
|
|
485
|
-
interface IDotBody extends
|
|
594
|
+
interface IDotBody extends IDotAttrBuilder<IDotBody>{
|
|
486
595
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
487
596
|
align(value: unknown): IDotBody;
|
|
488
597
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
@@ -498,11 +607,11 @@ interface IDotBody extends IDotElementDocument<IDotBody>{
|
|
|
498
607
|
onResize(callback: (e: Event)=>void): IDotBody;
|
|
499
608
|
onStorage(callback: (e: Event)=>void): IDotBody;
|
|
500
609
|
}
|
|
501
|
-
interface IDotBr extends
|
|
610
|
+
interface IDotBr extends IDotAttrBuilder<IDotBr>{
|
|
502
611
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
503
612
|
clear(value: unknown): IDotBr;
|
|
504
613
|
}
|
|
505
|
-
interface IDotButton extends
|
|
614
|
+
interface IDotButton extends IDotAttrBuilder<IDotButton>{
|
|
506
615
|
autoFocus(value: AttrVal<boolean>): IDotButton;
|
|
507
616
|
formAction(value: AttrVal<string>): IDotButton;
|
|
508
617
|
disabled(value?: AttrVal<boolean>): IDotButton;
|
|
@@ -511,45 +620,45 @@ interface IDotButton extends IDotElementDocument<IDotButton>{
|
|
|
511
620
|
whichForm(value: AttrVal<string>): IDotButton; // alias for form
|
|
512
621
|
value(value: AttrVal<string>): IDotButton;
|
|
513
622
|
}
|
|
514
|
-
interface IDotCanvas extends
|
|
623
|
+
interface IDotCanvas extends IDotAttrBuilder<IDotCanvas>{
|
|
515
624
|
height(value: AttrVal<number>): IDotCanvas;
|
|
516
625
|
width(value: AttrVal<number>): IDotCanvas;
|
|
517
626
|
}
|
|
518
|
-
interface IDotCol extends
|
|
627
|
+
interface IDotCol extends IDotAttrBuilder<IDotCol>{
|
|
519
628
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
520
629
|
charOff(value: AttrVal<unknown>): IDotCol;
|
|
521
630
|
colSpan(value: AttrVal<number>): IDotCol; // alias for span
|
|
522
631
|
vAlign(value: AttrVal<number>): IDotCol;
|
|
523
632
|
}
|
|
524
|
-
interface IDotColGroup extends
|
|
633
|
+
interface IDotColGroup extends IDotAttrBuilder<IDotColGroup>{
|
|
525
634
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
526
635
|
charOff(value: AttrVal<unknown>): IDotColGroup;
|
|
527
636
|
colSpan(value: AttrVal<number>): IDotColGroup; // alias for span
|
|
528
637
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
529
638
|
vAlign(value: AttrVal<unknown>): IDotColGroup;
|
|
530
639
|
}
|
|
531
|
-
interface IDotDel extends
|
|
640
|
+
interface IDotDel extends IDotAttrBuilder<IDotDel>{
|
|
532
641
|
dateTime(value: AttrVal<string>): IDotDel; // Would be cool if this could accept dates and just format them internally...
|
|
533
642
|
quoteCite(value: AttrVal<string>): IDotDel; // alias for cite
|
|
534
643
|
}
|
|
535
|
-
interface IDotDetails extends
|
|
644
|
+
interface IDotDetails extends IDotAttrBuilder<IDotDetails>{
|
|
536
645
|
open(value: AttrVal<boolean>): IDotDetails;
|
|
537
646
|
|
|
538
647
|
// Events:
|
|
539
648
|
onToggle (callback: (e: Event)=>void): IDotDetails;
|
|
540
649
|
}
|
|
541
|
-
interface IDotEmbed extends
|
|
650
|
+
interface IDotEmbed extends IDotAttrBuilder<IDotEmbed>{
|
|
542
651
|
height(value: AttrVal<number>): IDotEmbed;
|
|
543
652
|
src(value: AttrVal<string>): IDotEmbed;
|
|
544
653
|
type(value: AttrVal<string>): IDotEmbed;
|
|
545
654
|
width(value: AttrVal<number>): IDotEmbed;
|
|
546
655
|
}
|
|
547
|
-
interface IDotFieldSet extends
|
|
656
|
+
interface IDotFieldSet extends IDotAttrBuilder<IDotFieldSet>{
|
|
548
657
|
disabled(value: AttrVal<boolean>): IDotFieldSet;
|
|
549
658
|
name(value: AttrVal<string>): IDotFieldSet;
|
|
550
659
|
whichForm(value: AttrVal<string>): IDotFieldSet; // alias for form
|
|
551
660
|
}
|
|
552
|
-
interface IDotForm extends
|
|
661
|
+
interface IDotForm extends IDotAttrBuilder<IDotForm>{
|
|
553
662
|
acceptCharset(value: AttrVal<string>): IDotForm; // accept-charset, apparently the only hyphenated attribute (aside from data-*)...
|
|
554
663
|
action(value: AttrVal<string>): IDotForm;
|
|
555
664
|
autoComplete(value: AttrVal<"on">|AttrVal<"off">): IDotForm;
|
|
@@ -560,10 +669,10 @@ interface IDotForm extends IDotElementDocument<IDotForm>{
|
|
|
560
669
|
// rel(value: PrimativeOrObservable<string>): IDotForm; // Not used with forms?
|
|
561
670
|
target(value: AttrVal<"_self">|AttrVal<"_blank">|AttrVal<"_parent">|AttrVal<"_top">): IDotForm;
|
|
562
671
|
}
|
|
563
|
-
interface IDotHr extends
|
|
672
|
+
interface IDotHr extends IDotAttrBuilder<IDotHr>{
|
|
564
673
|
noShade(value: unknown): IDotHr;
|
|
565
674
|
}
|
|
566
|
-
interface IDotIFrame extends
|
|
675
|
+
interface IDotIFrame extends IDotAttrBuilder<IDotIFrame>{
|
|
567
676
|
allow(value: AttrVal<string>): IDotIFrame;
|
|
568
677
|
allowFullScreen(value: AttrVal<boolean>): IDotIFrame;
|
|
569
678
|
/** @deprecated Deprecated in HTML5. */
|
|
@@ -583,7 +692,7 @@ interface IDotIFrame extends IDotElementDocument<IDotIFrame>{
|
|
|
583
692
|
srcDoc(value: AttrVal<string>): IDotIFrame;
|
|
584
693
|
width(value: AttrVal<number>): IDotIFrame;
|
|
585
694
|
}
|
|
586
|
-
interface IDotImg extends
|
|
695
|
+
interface IDotImg extends IDotAttrBuilder<IDotImg>{
|
|
587
696
|
alt(value: AttrVal<string>): IDotImg;
|
|
588
697
|
crossOrigin(value: AttrVal<"anonymous">|AttrVal<"use-credentials">): IDotImg;
|
|
589
698
|
decoding(value: AttrVal<"async">|AttrVal<"auto">|AttrVal<"sync">): IDotImg;
|
|
@@ -601,7 +710,7 @@ interface IDotImg extends IDotElementDocument<IDotImg>{
|
|
|
601
710
|
useMap(value: AttrVal<number>): IDotImg;
|
|
602
711
|
width(value: AttrVal<number>): IDotImg;
|
|
603
712
|
}
|
|
604
|
-
interface IDotInput extends
|
|
713
|
+
interface IDotInput extends IDotAttrBuilder<IDotInput>{
|
|
605
714
|
accept(value: AttrVal<string>): IDotInput;
|
|
606
715
|
alt(value: AttrVal<string>): IDotInput;
|
|
607
716
|
autoCapitalize(value: AttrVal<"none">|AttrVal<"sentences">|AttrVal<"words">|AttrVal<"characters">): IDotInput;
|
|
@@ -638,27 +747,27 @@ interface IDotInput extends IDotElementDocument<IDotInput>{
|
|
|
638
747
|
// Input-specific events:
|
|
639
748
|
onSearch(callback: (e: Event)=>void): IDotInput;
|
|
640
749
|
}
|
|
641
|
-
interface IDotIns extends
|
|
750
|
+
interface IDotIns extends IDotAttrBuilder<IDotIns>{
|
|
642
751
|
dateTime(value: AttrVal<string>): IDotIns;
|
|
643
752
|
quoteCite(value: AttrVal<string>): IDotIns; // alias for cite
|
|
644
753
|
}
|
|
645
|
-
interface IDotKeyGen extends
|
|
754
|
+
interface IDotKeyGen extends IDotAttrBuilder<IDotKeyGen>{
|
|
646
755
|
challenge(value: AttrVal<string>): IDotKeyGen;
|
|
647
756
|
keyType(value: AttrVal<string>): IDotKeyGen;
|
|
648
757
|
}
|
|
649
|
-
interface IDotLabel extends
|
|
758
|
+
interface IDotLabel extends IDotAttrBuilder<IDotLabel>{
|
|
650
759
|
for(value: AttrVal<string>): IDotLabel;
|
|
651
760
|
}
|
|
652
|
-
interface IDotLi extends
|
|
761
|
+
interface IDotLi extends IDotAttrBuilder<IDotLi>{
|
|
653
762
|
value(value: AttrVal<number>): IDotLi;
|
|
654
763
|
}
|
|
655
|
-
interface IDotMap extends
|
|
764
|
+
interface IDotMap extends IDotAttrBuilder<IDotMap>{
|
|
656
765
|
name(value: AttrVal<string>): IDotMap;
|
|
657
766
|
}
|
|
658
|
-
interface IDotMenu extends
|
|
767
|
+
interface IDotMenu extends IDotAttrBuilder<IDotMenu>{
|
|
659
768
|
type(value: AttrVal<string>): IDotMenu;
|
|
660
769
|
}
|
|
661
|
-
interface IDotMeter extends
|
|
770
|
+
interface IDotMeter extends IDotAttrBuilder<IDotMeter>{
|
|
662
771
|
high(value: AttrVal<number>): IDotMeter;
|
|
663
772
|
low(value: AttrVal<number>): IDotMeter;
|
|
664
773
|
max(value: AttrVal<number>): IDotMeter;
|
|
@@ -666,7 +775,7 @@ interface IDotMeter extends IDotElementDocument<IDotMeter>{
|
|
|
666
775
|
optimum(value: AttrVal<number>): IDotMeter;
|
|
667
776
|
value(value: AttrVal<number>): IDotMeter;
|
|
668
777
|
}
|
|
669
|
-
interface IDotObject extends
|
|
778
|
+
interface IDotObject extends IDotAttrBuilder<IDotObject>{
|
|
670
779
|
archive(value: AttrVal<string>): IDotObject;
|
|
671
780
|
classId(value: AttrVal<string>): IDotObject;
|
|
672
781
|
codeBase(value: AttrVal<string>): IDotObject;
|
|
@@ -680,14 +789,14 @@ interface IDotObject extends IDotElementDocument<IDotObject>{
|
|
|
680
789
|
useMap(value: AttrVal<string>): IDotObject;
|
|
681
790
|
width(value: AttrVal<number>): IDotObject;
|
|
682
791
|
}
|
|
683
|
-
interface IDotOl extends
|
|
792
|
+
interface IDotOl extends IDotAttrBuilder<IDotOl>{
|
|
684
793
|
reversed(value: boolean): IDotOl;
|
|
685
794
|
start(value: number): IDotOl;
|
|
686
795
|
}
|
|
687
|
-
interface IDotOptGroup extends
|
|
796
|
+
interface IDotOptGroup extends IDotAttrBuilder<IDotOptGroup>{
|
|
688
797
|
disabled(value: boolean): IDotOptGroup;
|
|
689
798
|
}
|
|
690
|
-
interface IDotOption extends
|
|
799
|
+
interface IDotOption extends IDotAttrBuilder<IDotOption>{
|
|
691
800
|
disabled(value: AttrVal<boolean>): IDotOption;
|
|
692
801
|
optionLabel(value: AttrVal<string>): IDotOption; // alias for label
|
|
693
802
|
selected(value: AttrVal<boolean>): IDotOption;
|
|
@@ -697,25 +806,25 @@ interface IDotOption extends IDotElementDocument<IDotOption>{
|
|
|
697
806
|
// getVal(): string;
|
|
698
807
|
// setVal(value: unknown): IDotOption;
|
|
699
808
|
}
|
|
700
|
-
interface IDotOutput extends
|
|
809
|
+
interface IDotOutput extends IDotAttrBuilder<IDotOutput>{
|
|
701
810
|
for(value: AttrVal<string>): IDotOutput;
|
|
702
811
|
name(value: AttrVal<string>): IDotOutput;
|
|
703
812
|
whichForm(value: AttrVal<string>): IDotOutput; // alias for form
|
|
704
813
|
}
|
|
705
|
-
interface IDotParam extends
|
|
814
|
+
interface IDotParam extends IDotAttrBuilder<IDotParam>{
|
|
706
815
|
name(value: AttrVal<string>): IDotParam;
|
|
707
816
|
value(value: AttrVal<string>): IDotParam;
|
|
708
817
|
/** @deprecated Deprecated in HTML5. */
|
|
709
818
|
valueType(value: AttrVal<unknown>): IDotParam;
|
|
710
819
|
}
|
|
711
|
-
interface IDotProgress extends
|
|
820
|
+
interface IDotProgress extends IDotAttrBuilder<IDotProgress>{
|
|
712
821
|
max(value: AttrVal<number>): IDotProgress;
|
|
713
822
|
value(value: AttrVal<number>): IDotProgress;
|
|
714
823
|
}
|
|
715
|
-
interface IDotQ extends
|
|
824
|
+
interface IDotQ extends IDotAttrBuilder<IDotQ>{
|
|
716
825
|
quoteCite(value: AttrVal<string>): IDotQ; // alias for cite
|
|
717
826
|
}
|
|
718
|
-
interface IDotSelect extends
|
|
827
|
+
interface IDotSelect extends IDotAttrBuilder<IDotSelect>{
|
|
719
828
|
autoFocus(value: AttrVal<boolean>): IDotSelect;
|
|
720
829
|
disabled(value: AttrVal<boolean>): IDotSelect;
|
|
721
830
|
multiple(value: AttrVal<boolean>): IDotSelect;
|
|
@@ -725,7 +834,7 @@ interface IDotSelect extends IDotElementDocument<IDotSelect>{
|
|
|
725
834
|
whichForm(value: AttrVal<string>): IDotSelect; // alias for form
|
|
726
835
|
value(value: AttrVal<string>); // Pseudo attribute for convenience.
|
|
727
836
|
}
|
|
728
|
-
interface IDotSource extends
|
|
837
|
+
interface IDotSource extends IDotAttrBuilder<IDotSource>{
|
|
729
838
|
media(value: AttrVal<string>): IDotSource;
|
|
730
839
|
src(value: AttrVal<string>): IDotSource;
|
|
731
840
|
type(value: AttrVal<string>): IDotSource;
|
|
@@ -734,7 +843,7 @@ interface IDotSource extends IDotElementDocument<IDotSource>{
|
|
|
734
843
|
srcSet(value: AttrVal<string>): IDotSource;
|
|
735
844
|
type(value: AttrVal<string>): IDotSource;
|
|
736
845
|
}
|
|
737
|
-
interface IDotTable extends
|
|
846
|
+
interface IDotTable extends IDotAttrBuilder<IDotTable>{
|
|
738
847
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
739
848
|
border(value: AttrVal<string>|AttrVal<number>): IDotTable;
|
|
740
849
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
@@ -752,7 +861,7 @@ interface IDotTable extends IDotElementDocument<IDotTable>{
|
|
|
752
861
|
/** @deprecated Deprecated in HTML5. */
|
|
753
862
|
width(value: AttrVal<number>): IDotTable;
|
|
754
863
|
}
|
|
755
|
-
interface IDotTextArea extends
|
|
864
|
+
interface IDotTextArea extends IDotAttrBuilder<IDotTextArea>{
|
|
756
865
|
autoCapitalize(value: AttrVal<"none">|AttrVal<"sentences">|AttrVal<"words">|AttrVal<"characters">): IDotTextArea;
|
|
757
866
|
autoFocus(value: AttrVal<boolean>): IDotTextArea;
|
|
758
867
|
cols(value: AttrVal<number>): IDotTextArea;
|
|
@@ -769,13 +878,13 @@ interface IDotTextArea extends IDotElementDocument<IDotTextArea>{
|
|
|
769
878
|
wrap(value: AttrVal<string>): IDotTextArea;
|
|
770
879
|
value(value: AttrVal<string>); // Pseudo attribute for convenience.
|
|
771
880
|
}
|
|
772
|
-
interface IDotTBody extends
|
|
881
|
+
interface IDotTBody extends IDotAttrBuilder<IDotTBody>{
|
|
773
882
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
774
883
|
charOff(value: AttrVal<unknown>): IDotTBody;
|
|
775
884
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
776
885
|
vAlign(value: AttrVal<unknown>): IDotTBody;
|
|
777
886
|
}
|
|
778
|
-
interface IDotTd extends
|
|
887
|
+
interface IDotTd extends IDotAttrBuilder<IDotTd>{
|
|
779
888
|
|
|
780
889
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
781
890
|
axis(value: AttrVal<string>): IDotTd;
|
|
@@ -792,16 +901,16 @@ interface IDotTd extends IDotElementDocument<IDotTd>{
|
|
|
792
901
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
793
902
|
vAlign(value: AttrVal<string>): IDotTd;
|
|
794
903
|
}
|
|
795
|
-
interface IDotTFoot extends
|
|
904
|
+
interface IDotTFoot extends IDotAttrBuilder<IDotTFoot>{
|
|
796
905
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
797
906
|
charOff(value: AttrVal<number>): IDotTFoot;
|
|
798
907
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
799
908
|
vAlign(value: AttrVal<string>): IDotTFoot;
|
|
800
909
|
}
|
|
801
|
-
interface IDotTime extends
|
|
910
|
+
interface IDotTime extends IDotAttrBuilder<IDotTime>{
|
|
802
911
|
dateTime(value: AttrVal<string>): IDotTime;
|
|
803
912
|
}
|
|
804
|
-
interface IDotTh extends
|
|
913
|
+
interface IDotTh extends IDotAttrBuilder<IDotTh>{
|
|
805
914
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
806
915
|
axis(value: AttrVal<string>): IDotTh;
|
|
807
916
|
colSpan(value: AttrVal<number>): IDotTh;
|
|
@@ -813,19 +922,19 @@ interface IDotTh extends IDotElementDocument<IDotTh>{
|
|
|
813
922
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
814
923
|
vAlign(value: AttrVal<string>): IDotTh;
|
|
815
924
|
}
|
|
816
|
-
interface IDotTHead extends
|
|
925
|
+
interface IDotTHead extends IDotAttrBuilder<IDotTHead>{
|
|
817
926
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
818
927
|
charOff(value: AttrVal<string>|AttrVal<number>): IDotTHead;
|
|
819
928
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
820
929
|
vAlign(value: AttrVal<string>): IDotTHead;
|
|
821
930
|
}
|
|
822
|
-
interface IDotTr extends
|
|
931
|
+
interface IDotTr extends IDotAttrBuilder<IDotTr>{
|
|
823
932
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
824
933
|
charOff(value: AttrVal<string>|AttrVal<number>): IDotTr;
|
|
825
934
|
/** @deprecated Deprecated in HTML5. Use CSS. */
|
|
826
935
|
vAlign(value: AttrVal<string>): IDotTr;
|
|
827
936
|
}
|
|
828
|
-
interface IDotTrack extends
|
|
937
|
+
interface IDotTrack extends IDotAttrBuilder<IDotTrack>{
|
|
829
938
|
default(value: AttrVal<boolean>): IDotTrack;
|
|
830
939
|
kind(value: AttrVal<string>): IDotTrack;
|
|
831
940
|
src(value: AttrVal<string>): IDotTrack;
|
|
@@ -835,7 +944,7 @@ interface IDotTrack extends IDotElementDocument<IDotTrack>{
|
|
|
835
944
|
// Events:
|
|
836
945
|
onCueChange(callback: (e: Event)=>void): IDotTrack;
|
|
837
946
|
}
|
|
838
|
-
interface IDotVideo extends
|
|
947
|
+
interface IDotVideo extends IDotAttrBuilder<IDotVideo>{
|
|
839
948
|
autoPlay(value: AttrVal<boolean>): IDotVideo;
|
|
840
949
|
buffered(value: IReactive<unknown>): IDotVideo; // Managed by browser not user. TODO: we can possibly use events to update observable objects.
|
|
841
950
|
controls(value: AttrVal<boolean>): IDotVideo;
|
|
@@ -850,9 +959,10 @@ interface IDotVideo extends IDotElementDocument<IDotVideo>{
|
|
|
850
959
|
width(value: AttrVal<number>): IDotVideo;
|
|
851
960
|
|
|
852
961
|
// Special functions:
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
962
|
+
// TODO:
|
|
963
|
+
// pause(): IDotVideo;
|
|
964
|
+
// play(): IDotVideo;
|
|
965
|
+
// stop(): IDotVideo;
|
|
856
966
|
|
|
857
967
|
// Events:
|
|
858
968
|
onAbort(callback: (e: Event)=>void): IDotVideo;
|