native-document 1.0.37 → 1.0.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.
@@ -1,616 +1,8 @@
1
1
  // DOM elements and components type definitions - Version complète
2
2
  import { ObservableItem } from './observable';
3
3
  import {BindingHydrator} from "./template-cloner";
4
+ import {NDElement} from "./nd-element";
4
5
 
5
- export interface NDElement {
6
- readonly __$isNDElement: true;
7
- readonly $element: HTMLElement;
8
- readonly $observer: any;
9
-
10
- ref(target: any, name: string): this;
11
- unmountChildren(): this;
12
- remove(): this;
13
-
14
- lifecycle(states: { mounted?: (node: HTMLElement) => void; unmounted?: (node: HTMLElement) => boolean | void }): this;
15
- mounted(callback: (node: HTMLElement) => void): this;
16
- unmounted(callback: (node: HTMLElement) => boolean | void): this;
17
-
18
- htmlElement(): HTMLElement;
19
- node(): HTMLElement;
20
- attach(methodeName: string, bindingHydrator: BindingHydrator): HTMLElement;
21
-
22
- // Mouse Events
23
- onClick(callback: (event: MouseEvent) => void): this;
24
- onDblClick(callback: (event: MouseEvent) => void): this;
25
- onMouseDown(callback: (event: MouseEvent) => void): this;
26
- onMouseEnter(callback: (event: MouseEvent) => void): this;
27
- onMouseLeave(callback: (event: MouseEvent) => void): this;
28
- onMouseMove(callback: (event: MouseEvent) => void): this;
29
- onMouseOut(callback: (event: MouseEvent) => void): this;
30
- onMouseOver(callback: (event: MouseEvent) => void): this;
31
- onMouseUp(callback: (event: MouseEvent) => void): this;
32
- onWheel(callback: (event: WheelEvent) => void): this;
33
- onContextMenu(callback: (event: MouseEvent) => void): this; // Extra event
34
-
35
- // Keyboard Events
36
- onKeyDown(callback: (event: KeyboardEvent) => void): this;
37
- onKeyPress(callback: (event: KeyboardEvent) => void): this;
38
- onKeyUp(callback: (event: KeyboardEvent) => void): this;
39
-
40
- // Form Events
41
- onBlur(callback: (event: FocusEvent) => void): this;
42
- onChange(callback: (event: Event) => void): this;
43
- onFocus(callback: (event: FocusEvent) => void): this;
44
- onFocusIn(callback: (event: FocusEvent) => void): this; // Extra event
45
- onFocusOut(callback: (event: FocusEvent) => void): this; // Extra event
46
- onInput(callback: (event: Event) => void): this;
47
- onInvalid(callback: (event: Event) => void): this;
48
- onReset(callback: (event: Event) => void): this;
49
- onSearch(callback: (event: Event) => void): this;
50
- onSelect(callback: (event: Event) => void): this;
51
- onSubmit(callback: (event: Event) => void): this;
52
-
53
- // Drag Events
54
- onDrag(callback: (event: DragEvent) => void): this;
55
- onDragEnd(callback: (event: DragEvent) => void): this;
56
- onDragEnter(callback: (event: DragEvent) => void): this;
57
- onDragLeave(callback: (event: DragEvent) => void): this;
58
- onDragOver(callback: (event: DragEvent) => void): this;
59
- onDragStart(callback: (event: DragEvent) => void): this;
60
- onDrop(callback: (event: DragEvent) => void): this;
61
-
62
- // Window/Page Events
63
- onAfterPrint(callback: (event: Event) => void): this;
64
- onBeforePrint(callback: (event: Event) => void): this;
65
- onBeforeUnload(callback: (event: BeforeUnloadEvent) => void): this;
66
- onError(callback: (event: Event) => void): this;
67
- onHashChange(callback: (event: HashChangeEvent) => void): this;
68
- onLoad(callback: (event: Event) => void): this;
69
- onOffline(callback: (event: Event) => void): this;
70
- onOnline(callback: (event: Event) => void): this;
71
- onPageHide(callback: (event: PageTransitionEvent) => void): this;
72
- onPageShow(callback: (event: PageTransitionEvent) => void): this;
73
- onResize(callback: (event: UIEvent) => void): this;
74
- onScroll(callback: (event: Event) => void): this;
75
- onUnload(callback: (event: Event) => void): this;
76
-
77
- // Media Events
78
- onAbort(callback: (event: Event) => void): this;
79
- onCanPlay(callback: (event: Event) => void): this;
80
- onCanPlayThrough(callback: (event: Event) => void): this;
81
- onDurationChange(callback: (event: Event) => void): this;
82
- onEmptied(callback: (event: Event) => void): this;
83
- onEnded(callback: (event: Event) => void): this;
84
- onLoadedData(callback: (event: Event) => void): this;
85
- onLoadedMetadata(callback: (event: Event) => void): this;
86
- onLoadStart(callback: (event: Event) => void): this;
87
- onPause(callback: (event: Event) => void): this;
88
- onPlay(callback: (event: Event) => void): this;
89
- onPlaying(callback: (event: Event) => void): this;
90
- onProgress(callback: (event: ProgressEvent) => void): this;
91
- onRateChange(callback: (event: Event) => void): this;
92
- onSeeked(callback: (event: Event) => void): this;
93
- onSeeking(callback: (event: Event) => void): this;
94
- onStalled(callback: (event: Event) => void): this;
95
- onSuspend(callback: (event: Event) => void): this;
96
- onTimeUpdate(callback: (event: Event) => void): this;
97
- onVolumeChange(callback: (event: Event) => void): this;
98
- onWaiting(callback: (event: Event) => void): this;
99
-
100
- // Touch Events (Extra events)
101
- onTouchCancel(callback: (event: TouchEvent) => void): this;
102
- onTouchEnd(callback: (event: TouchEvent) => void): this;
103
- onTouchMove(callback: (event: TouchEvent) => void): this;
104
- onTouchStart(callback: (event: TouchEvent) => void): this;
105
-
106
- // Animation Events (Extra events)
107
- onAnimationEnd(callback: (event: AnimationEvent) => void): this;
108
- onAnimationIteration(callback: (event: AnimationEvent) => void): this;
109
- onAnimationStart(callback: (event: AnimationEvent) => void): this;
110
-
111
- // Transition Events (Extra events)
112
- onTransitionEnd(callback: (event: TransitionEvent) => void): this;
113
-
114
- // Clipboard Events (Extra events)
115
- onCopy(callback: (event: ClipboardEvent) => void): this;
116
- onCut(callback: (event: ClipboardEvent) => void): this;
117
- onPaste(callback: (event: ClipboardEvent) => void): this;
118
-
119
- // PREVENT DEFAULT VERSIONS
120
-
121
- // Prevent default versions for Mouse Events
122
- onPreventClick(callback: (event: MouseEvent) => void): this;
123
- onPreventDblClick(callback: (event: MouseEvent) => void): this;
124
- onPreventMouseDown(callback: (event: MouseEvent) => void): this;
125
- onPreventMouseEnter(callback: (event: MouseEvent) => void): this;
126
- onPreventMouseLeave(callback: (event: MouseEvent) => void): this;
127
- onPreventMouseMove(callback: (event: MouseEvent) => void): this;
128
- onPreventMouseOut(callback: (event: MouseEvent) => void): this;
129
- onPreventMouseOver(callback: (event: MouseEvent) => void): this;
130
- onPreventMouseUp(callback: (event: MouseEvent) => void): this;
131
- onPreventWheel(callback: (event: WheelEvent) => void): this;
132
- onPreventContextMenu(callback: (event: MouseEvent) => void): this;
133
-
134
- // Prevent default versions for Keyboard Events
135
- onPreventKeyDown(callback: (event: KeyboardEvent) => void): this;
136
- onPreventKeyPress(callback: (event: KeyboardEvent) => void): this;
137
- onPreventKeyUp(callback: (event: KeyboardEvent) => void): this;
138
-
139
- // Prevent default versions for Form Events
140
- onPreventBlur(callback: (event: FocusEvent) => void): this;
141
- onPreventChange(callback: (event: Event) => void): this;
142
- onPreventFocus(callback: (event: FocusEvent) => void): this;
143
- onPreventFocusIn(callback: (event: FocusEvent) => void): this;
144
- onPreventFocusOut(callback: (event: FocusEvent) => void): this;
145
- onPreventInput(callback: (event: Event) => void): this;
146
- onPreventInvalid(callback: (event: Event) => void): this;
147
- onPreventReset(callback: (event: Event) => void): this;
148
- onPreventSearch(callback: (event: Event) => void): this;
149
- onPreventSelect(callback: (event: Event) => void): this;
150
- onPreventSubmit(callback: (event: Event) => void): this;
151
-
152
- // Prevent default versions for Drag Events
153
- onPreventDrag(callback: (event: DragEvent) => void): this;
154
- onPreventDragEnd(callback: (event: DragEvent) => void): this;
155
- onPreventDragEnter(callback: (event: DragEvent) => void): this;
156
- onPreventDragLeave(callback: (event: DragEvent) => void): this;
157
- onPreventDragOver(callback: (event: DragEvent) => void): this;
158
- onPreventDragStart(callback: (event: DragEvent) => void): this;
159
- onPreventDrop(callback: (event: DragEvent) => void): this;
160
-
161
- // Prevent default versions for Window/Page Events
162
- onPreventAfterPrint(callback: (event: Event) => void): this;
163
- onPreventBeforePrint(callback: (event: Event) => void): this;
164
- onPreventBeforeUnload(callback: (event: BeforeUnloadEvent) => void): this;
165
- onPreventError(callback: (event: Event) => void): this;
166
- onPreventHashChange(callback: (event: HashChangeEvent) => void): this;
167
- onPreventLoad(callback: (event: Event) => void): this;
168
- onPreventOffline(callback: (event: Event) => void): this;
169
- onPreventOnline(callback: (event: Event) => void): this;
170
- onPreventPageHide(callback: (event: PageTransitionEvent) => void): this;
171
- onPreventPageShow(callback: (event: PageTransitionEvent) => void): this;
172
- onPreventResize(callback: (event: UIEvent) => void): this;
173
- onPreventScroll(callback: (event: Event) => void): this;
174
- onPreventUnload(callback: (event: Event) => void): this;
175
-
176
- // Prevent default versions for Media Events
177
- onPreventAbort(callback: (event: Event) => void): this;
178
- onPreventCanPlay(callback: (event: Event) => void): this;
179
- onPreventCanPlayThrough(callback: (event: Event) => void): this;
180
- onPreventDurationChange(callback: (event: Event) => void): this;
181
- onPreventEmptied(callback: (event: Event) => void): this;
182
- onPreventEnded(callback: (event: Event) => void): this;
183
- onPreventLoadedData(callback: (event: Event) => void): this;
184
- onPreventLoadedMetadata(callback: (event: Event) => void): this;
185
- onPreventLoadStart(callback: (event: Event) => void): this;
186
- onPreventPause(callback: (event: Event) => void): this;
187
- onPreventPlay(callback: (event: Event) => void): this;
188
- onPreventPlaying(callback: (event: Event) => void): this;
189
- onPreventProgress(callback: (event: ProgressEvent) => void): this;
190
- onPreventRateChange(callback: (event: Event) => void): this;
191
- onPreventSeeked(callback: (event: Event) => void): this;
192
- onPreventSeeking(callback: (event: Event) => void): this;
193
- onPreventStalled(callback: (event: Event) => void): this;
194
- onPreventSuspend(callback: (event: Event) => void): this;
195
- onPreventTimeUpdate(callback: (event: Event) => void): this;
196
- onPreventVolumeChange(callback: (event: Event) => void): this;
197
- onPreventWaiting(callback: (event: Event) => void): this;
198
-
199
- // Prevent default versions for Touch Events
200
- onPreventTouchCancel(callback: (event: TouchEvent) => void): this;
201
- onPreventTouchEnd(callback: (event: TouchEvent) => void): this;
202
- onPreventTouchMove(callback: (event: TouchEvent) => void): this;
203
- onPreventTouchStart(callback: (event: TouchEvent) => void): this;
204
-
205
- // Prevent default versions for Animation Events
206
- onPreventAnimationEnd(callback: (event: AnimationEvent) => void): this;
207
- onPreventAnimationIteration(callback: (event: AnimationEvent) => void): this;
208
- onPreventAnimationStart(callback: (event: AnimationEvent) => void): this;
209
-
210
- // Prevent default versions for Transition Events
211
- onPreventTransitionEnd(callback: (event: TransitionEvent) => void): this;
212
-
213
- // Prevent default versions for Clipboard Events
214
- onPreventCopy(callback: (event: ClipboardEvent) => void): this;
215
- onPreventCut(callback: (event: ClipboardEvent) => void): this;
216
- onPreventPaste(callback: (event: ClipboardEvent) => void): this;
217
-
218
- // STOP PROPAGATION VERSIONS
219
-
220
- // Stop propagation versions for Mouse Events
221
- onStopClick(callback: (event: MouseEvent) => void): this;
222
- onStopDblClick(callback: (event: MouseEvent) => void): this;
223
- onStopMouseDown(callback: (event: MouseEvent) => void): this;
224
- onStopMouseEnter(callback: (event: MouseEvent) => void): this;
225
- onStopMouseLeave(callback: (event: MouseEvent) => void): this;
226
- onStopMouseMove(callback: (event: MouseEvent) => void): this;
227
- onStopMouseOut(callback: (event: MouseEvent) => void): this;
228
- onStopMouseOver(callback: (event: MouseEvent) => void): this;
229
- onStopMouseUp(callback: (event: MouseEvent) => void): this;
230
- onStopWheel(callback: (event: WheelEvent) => void): this;
231
- onStopContextMenu(callback: (event: MouseEvent) => void): this;
232
-
233
- // Stop propagation versions for Keyboard Events
234
- onStopKeyDown(callback: (event: KeyboardEvent) => void): this;
235
- onStopKeyPress(callback: (event: KeyboardEvent) => void): this;
236
- onStopKeyUp(callback: (event: KeyboardEvent) => void): this;
237
-
238
- // Stop propagation versions for Form Events
239
- onStopBlur(callback: (event: FocusEvent) => void): this;
240
- onStopChange(callback: (event: Event) => void): this;
241
- onStopFocus(callback: (event: FocusEvent) => void): this;
242
- onStopFocusIn(callback: (event: FocusEvent) => void): this;
243
- onStopFocusOut(callback: (event: FocusEvent) => void): this;
244
- onStopInput(callback: (event: Event) => void): this;
245
- onStopInvalid(callback: (event: Event) => void): this;
246
- onStopReset(callback: (event: Event) => void): this;
247
- onStopSearch(callback: (event: Event) => void): this;
248
- onStopSelect(callback: (event: Event) => void): this;
249
- onStopSubmit(callback: (event: Event) => void): this;
250
-
251
- // Stop propagation versions for Drag Events
252
- onStopDrag(callback: (event: DragEvent) => void): this;
253
- onStopDragEnd(callback: (event: DragEvent) => void): this;
254
- onStopDragEnter(callback: (event: DragEvent) => void): this;
255
- onStopDragLeave(callback: (event: DragEvent) => void): this;
256
- onStopDragOver(callback: (event: DragEvent) => void): this;
257
- onStopDragStart(callback: (event: DragEvent) => void): this;
258
- onStopDrop(callback: (event: DragEvent) => void): this;
259
-
260
- // Stop propagation versions for Window/Page Events
261
- onStopAfterPrint(callback: (event: Event) => void): this;
262
- onStopBeforePrint(callback: (event: Event) => void): this;
263
- onStopBeforeUnload(callback: (event: BeforeUnloadEvent) => void): this;
264
- onStopError(callback: (event: Event) => void): this;
265
- onStopHashChange(callback: (event: HashChangeEvent) => void): this;
266
- onStopLoad(callback: (event: Event) => void): this;
267
- onStopOffline(callback: (event: Event) => void): this;
268
- onStopOnline(callback: (event: Event) => void): this;
269
- onStopPageHide(callback: (event: PageTransitionEvent) => void): this;
270
- onStopPageShow(callback: (event: PageTransitionEvent) => void): this;
271
- onStopResize(callback: (event: UIEvent) => void): this;
272
- onStopScroll(callback: (event: Event) => void): this;
273
- onStopUnload(callback: (event: Event) => void): this;
274
-
275
- // Stop propagation versions for Media Events
276
- onStopAbort(callback: (event: Event) => void): this;
277
- onStopCanPlay(callback: (event: Event) => void): this;
278
- onStopCanPlayThrough(callback: (event: Event) => void): this;
279
- onStopDurationChange(callback: (event: Event) => void): this;
280
- onStopEmptied(callback: (event: Event) => void): this;
281
- onStopEnded(callback: (event: Event) => void): this;
282
- onStopLoadedData(callback: (event: Event) => void): this;
283
- onStopLoadedMetadata(callback: (event: Event) => void): this;
284
- onStopLoadStart(callback: (event: Event) => void): this;
285
- onStopPause(callback: (event: Event) => void): this;
286
- onStopPlay(callback: (event: Event) => void): this;
287
- onStopPlaying(callback: (event: Event) => void): this;
288
- onStopProgress(callback: (event: ProgressEvent) => void): this;
289
- onStopRateChange(callback: (event: Event) => void): this;
290
- onStopSeeked(callback: (event: Event) => void): this;
291
- onStopSeeking(callback: (event: Event) => void): this;
292
- onStopStalled(callback: (event: Event) => void): this;
293
- onStopSuspend(callback: (event: Event) => void): this;
294
- onStopTimeUpdate(callback: (event: Event) => void): this;
295
- onStopVolumeChange(callback: (event: Event) => void): this;
296
- onStopWaiting(callback: (event: Event) => void): this;
297
-
298
- // Stop propagation versions for Touch Events
299
- onStopTouchCancel(callback: (event: TouchEvent) => void): this;
300
- onStopTouchEnd(callback: (event: TouchEvent) => void): this;
301
- onStopTouchMove(callback: (event: TouchEvent) => void): this;
302
- onStopTouchStart(callback: (event: TouchEvent) => void): this;
303
-
304
- // Stop propagation versions for Animation Events
305
- onStopAnimationEnd(callback: (event: AnimationEvent) => void): this;
306
- onStopAnimationIteration(callback: (event: AnimationEvent) => void): this;
307
- onStopAnimationStart(callback: (event: AnimationEvent) => void): this;
308
-
309
- // Stop propagation versions for Transition Events
310
- onStopTransitionEnd(callback: (event: TransitionEvent) => void): this;
311
-
312
- // Stop propagation versions for Clipboard Events
313
- onStopCopy(callback: (event: ClipboardEvent) => void): this;
314
- onStopCut(callback: (event: ClipboardEvent) => void): this;
315
- onStopPaste(callback: (event: ClipboardEvent) => void): this;
316
-
317
- // PREVENT + STOP VERSIONS
318
-
319
- // Prevent + Stop versions for Mouse Events
320
- onPreventStopClick(callback: (event: MouseEvent) => void): this;
321
- onPreventStopDblClick(callback: (event: MouseEvent) => void): this;
322
- onPreventStopMouseDown(callback: (event: MouseEvent) => void): this;
323
- onPreventStopMouseEnter(callback: (event: MouseEvent) => void): this;
324
- onPreventStopMouseLeave(callback: (event: MouseEvent) => void): this;
325
- onPreventStopMouseMove(callback: (event: MouseEvent) => void): this;
326
- onPreventStopMouseOut(callback: (event: MouseEvent) => void): this;
327
- onPreventStopMouseOver(callback: (event: MouseEvent) => void): this;
328
- onPreventStopMouseUp(callback: (event: MouseEvent) => void): this;
329
- onPreventStopWheel(callback: (event: WheelEvent) => void): this;
330
- onPreventStopContextMenu(callback: (event: MouseEvent) => void): this;
331
-
332
- // Prevent + Stop versions for Keyboard Events
333
- onPreventStopKeyDown(callback: (event: KeyboardEvent) => void): this;
334
- onPreventStopKeyPress(callback: (event: KeyboardEvent) => void): this;
335
- onPreventStopKeyUp(callback: (event: KeyboardEvent) => void): this;
336
-
337
- // Prevent + Stop versions for Form Events
338
- onPreventStopBlur(callback: (event: FocusEvent) => void): this;
339
- onPreventStopChange(callback: (event: Event) => void): this;
340
- onPreventStopFocus(callback: (event: FocusEvent) => void): this;
341
- onPreventStopFocusIn(callback: (event: FocusEvent) => void): this;
342
- onPreventStopFocusOut(callback: (event: FocusEvent) => void): this;
343
- onPreventStopInput(callback: (event: Event) => void): this;
344
- onPreventStopInvalid(callback: (event: Event) => void): this;
345
- onPreventStopReset(callback: (event: Event) => void): this;
346
- onPreventStopSearch(callback: (event: Event) => void): this;
347
- onPreventStopSelect(callback: (event: Event) => void): this;
348
- onPreventStopSubmit(callback: (event: Event) => void): this;
349
-
350
- // Prevent + Stop versions for Drag Events
351
- onPreventStopDrag(callback: (event: DragEvent) => void): this;
352
- onPreventStopDragEnd(callback: (event: DragEvent) => void): this;
353
- onPreventStopDragEnter(callback: (event: DragEvent) => void): this;
354
- onPreventStopDragLeave(callback: (event: DragEvent) => void): this;
355
- onPreventStopDragOver(callback: (event: DragEvent) => void): this;
356
- onPreventStopDragStart(callback: (event: DragEvent) => void): this;
357
- onPreventStopDrop(callback: (event: DragEvent) => void): this;
358
-
359
- // Prevent + Stop versions for Window/Page Events
360
- onPreventStopAfterPrint(callback: (event: Event) => void): this;
361
- onPreventStopBeforePrint(callback: (event: Event) => void): this;
362
- onPreventStopBeforeUnload(callback: (event: BeforeUnloadEvent) => void): this;
363
- onPreventStopError(callback: (event: Event) => void): this;
364
- onPreventStopHashChange(callback: (event: HashChangeEvent) => void): this;
365
- onPreventStopLoad(callback: (event: Event) => void): this;
366
- onPreventStopOffline(callback: (event: Event) => void): this;
367
- onPreventStopOnline(callback: (event: Event) => void): this;
368
- onPreventStopPageHide(callback: (event: PageTransitionEvent) => void): this;
369
- onPreventStopPageShow(callback: (event: PageTransitionEvent) => void): this;
370
- onPreventStopResize(callback: (event: UIEvent) => void): this;
371
- onPreventStopScroll(callback: (event: Event) => void): this;
372
- onPreventStopUnload(callback: (event: Event) => void): this;
373
-
374
- // Prevent + Stop versions for Media Events
375
- onPreventStopAbort(callback: (event: Event) => void): this;
376
- onPreventStopCanPlay(callback: (event: Event) => void): this;
377
- onPreventStopCanPlayThrough(callback: (event: Event) => void): this;
378
- onPreventStopDurationChange(callback: (event: Event) => void): this;
379
- onPreventStopEmptied(callback: (event: Event) => void): this;
380
- onPreventStopEnded(callback: (event: Event) => void): this;
381
- onPreventStopLoadedData(callback: (event: Event) => void): this;
382
- onPreventStopLoadedMetadata(callback: (event: Event) => void): this;
383
- onPreventStopLoadStart(callback: (event: Event) => void): this;
384
- onPreventStopPause(callback: (event: Event) => void): this;
385
- onPreventStopPlay(callback: (event: Event) => void): this;
386
- onPreventStopPlaying(callback: (event: Event) => void): this;
387
- onPreventStopProgress(callback: (event: ProgressEvent) => void): this;
388
- onPreventStopRateChange(callback: (event: Event) => void): this;
389
- onPreventStopSeeked(callback: (event: Event) => void): this;
390
- onPreventStopSeeking(callback: (event: Event) => void): this;
391
- onPreventStopStalled(callback: (event: Event) => void): this;
392
- onPreventStopSuspend(callback: (event: Event) => void): this;
393
- onPreventStopTimeUpdate(callback: (event: Event) => void): this;
394
- onPreventStopVolumeChange(callback: (event: Event) => void): this;
395
- onPreventStopWaiting(callback: (event: Event) => void): this;
396
-
397
- // Prevent + Stop versions for Touch Events
398
- onPreventStopTouchCancel(callback: (event: TouchEvent) => void): this;
399
- onPreventStopTouchEnd(callback: (event: TouchEvent) => void): this;
400
- onPreventStopTouchMove(callback: (event: TouchEvent) => void): this;
401
- onPreventStopTouchStart(callback: (event: TouchEvent) => void): this;
402
-
403
- // Prevent + Stop versions for Animation Events
404
- onPreventStopAnimationEnd(callback: (event: AnimationEvent) => void): this;
405
- onPreventStopAnimationIteration(callback: (event: AnimationEvent) => void): this;
406
- onPreventStopAnimationStart(callback: (event: AnimationEvent) => void): this;
407
-
408
- // Prevent + Stop versions for Transition Events
409
- onPreventStopTransitionEnd(callback: (event: TransitionEvent) => void): this;
410
-
411
- // Prevent + Stop versions for Clipboard Events
412
- onPreventStopCopy(callback: (event: ClipboardEvent) => void): this;
413
- onPreventStopCut(callback: (event: ClipboardEvent) => void): this;
414
- onPreventStopPaste(callback: (event: ClipboardEvent) => void): this;
415
-
416
- // DELEGATION METHODS - WHEN (for children)
417
-
418
- // When versions for Mouse Events
419
- whenClick(callback: (event: MouseEvent) => void): this;
420
- whenDblClick(callback: (event: MouseEvent) => void): this;
421
- whenMouseDown(callback: (event: MouseEvent) => void): this;
422
- whenMouseEnter(callback: (event: MouseEvent) => void): this;
423
- whenMouseLeave(callback: (event: MouseEvent) => void): this;
424
- whenMouseMove(callback: (event: MouseEvent) => void): this;
425
- whenMouseOut(callback: (event: MouseEvent) => void): this;
426
- whenMouseOver(callback: (event: MouseEvent) => void): this;
427
- whenMouseUp(callback: (event: MouseEvent) => void): this;
428
- whenWheel(callback: (event: WheelEvent) => void): this;
429
- whenContextMenu(callback: (event: MouseEvent) => void): this;
430
-
431
- // When versions for Keyboard Events
432
- whenKeyDown(callback: (event: KeyboardEvent) => void): this;
433
- whenKeyPress(callback: (event: KeyboardEvent) => void): this;
434
- whenKeyUp(callback: (event: KeyboardEvent) => void): this;
435
-
436
- // When versions for Form Events
437
- whenBlur(callback: (event: FocusEvent) => void): this;
438
- whenChange(callback: (event: Event) => void): this;
439
- whenFocus(callback: (event: FocusEvent) => void): this;
440
- whenFocusIn(callback: (event: FocusEvent) => void): this;
441
- whenFocusOut(callback: (event: FocusEvent) => void): this;
442
- whenInput(callback: (event: Event) => void): this;
443
- whenInvalid(callback: (event: Event) => void): this;
444
- whenReset(callback: (event: Event) => void): this;
445
- whenSearch(callback: (event: Event) => void): this;
446
- whenSelect(callback: (event: Event) => void): this;
447
- whenSubmit(callback: (event: Event) => void): this;
448
-
449
- // When versions for Drag Events
450
- whenDrag(callback: (event: DragEvent) => void): this;
451
- whenDragEnd(callback: (event: DragEvent) => void): this;
452
- whenDragEnter(callback: (event: DragEvent) => void): this;
453
- whenDragLeave(callback: (event: DragEvent) => void): this;
454
- whenDragOver(callback: (event: DragEvent) => void): this;
455
- whenDragStart(callback: (event: DragEvent) => void): this;
456
- whenDrop(callback: (event: DragEvent) => void): this;
457
-
458
- // When versions for Window/Page Events
459
- whenAfterPrint(callback: (event: Event) => void): this;
460
- whenBeforePrint(callback: (event: Event) => void): this;
461
- whenBeforeUnload(callback: (event: BeforeUnloadEvent) => void): this;
462
- whenError(callback: (event: Event) => void): this;
463
- whenHashChange(callback: (event: HashChangeEvent) => void): this;
464
- whenLoad(callback: (event: Event) => void): this;
465
- whenOffline(callback: (event: Event) => void): this;
466
- whenOnline(callback: (event: Event) => void): this;
467
- whenPageHide(callback: (event: PageTransitionEvent) => void): this;
468
- whenPageShow(callback: (event: PageTransitionEvent) => void): this;
469
- whenResize(callback: (event: UIEvent) => void): this;
470
- whenScroll(callback: (event: Event) => void): this;
471
- whenUnload(callback: (event: Event) => void): this;
472
-
473
- // When versions for Media Events
474
- whenAbort(callback: (event: Event) => void): this;
475
- whenCanPlay(callback: (event: Event) => void): this;
476
- whenCanPlayThrough(callback: (event: Event) => void): this;
477
- whenDurationChange(callback: (event: Event) => void): this;
478
- whenEmptied(callback: (event: Event) => void): this;
479
- whenEnded(callback: (event: Event) => void): this;
480
- whenLoadedData(callback: (event: Event) => void): this;
481
- whenLoadedMetadata(callback: (event: Event) => void): this;
482
- whenLoadStart(callback: (event: Event) => void): this;
483
- whenPause(callback: (event: Event) => void): this;
484
- whenPlay(callback: (event: Event) => void): this;
485
- whenPlaying(callback: (event: Event) => void): this;
486
- whenProgress(callback: (event: ProgressEvent) => void): this;
487
- whenRateChange(callback: (event: Event) => void): this;
488
- whenSeeked(callback: (event: Event) => void): this;
489
- whenSeeking(callback: (event: Event) => void): this;
490
- whenStalled(callback: (event: Event) => void): this;
491
- whenSuspend(callback: (event: Event) => void): this;
492
- whenTimeUpdate(callback: (event: Event) => void): this;
493
- whenVolumeChange(callback: (event: Event) => void): this;
494
- whenWaiting(callback: (event: Event) => void): this;
495
-
496
- // When versions for Touch Events
497
- whenTouchCancel(callback: (event: TouchEvent) => void): this;
498
- whenTouchEnd(callback: (event: TouchEvent) => void): this;
499
- whenTouchMove(callback: (event: TouchEvent) => void): this;
500
- whenTouchStart(callback: (event: TouchEvent) => void): this;
501
-
502
- // When versions for Animation Events
503
- whenAnimationEnd(callback: (event: AnimationEvent) => void): this;
504
- whenAnimationIteration(callback: (event: AnimationEvent) => void): this;
505
- whenAnimationStart(callback: (event: AnimationEvent) => void): this;
506
-
507
- // When versions for Transition Events
508
- whenTransitionEnd(callback: (event: TransitionEvent) => void): this;
509
-
510
- // When versions for Clipboard Events
511
- whenCopy(callback: (event: ClipboardEvent) => void): this;
512
- whenCut(callback: (event: ClipboardEvent) => void): this;
513
- whenPaste(callback: (event: ClipboardEvent) => void): this;
514
-
515
- // CAPTURE METHODS (for parents)
516
-
517
- // Capture versions for Mouse Events
518
- captureClick(directHandler?: (event: MouseEvent) => void): this;
519
- captureDblClick(directHandler?: (event: MouseEvent) => void): this;
520
- captureMouseDown(directHandler?: (event: MouseEvent) => void): this;
521
- captureMouseEnter(directHandler?: (event: MouseEvent) => void): this;
522
- captureMouseLeave(directHandler?: (event: MouseEvent) => void): this;
523
- captureMouseMove(directHandler?: (event: MouseEvent) => void): this;
524
- captureMouseOut(directHandler?: (event: MouseEvent) => void): this;
525
- captureMouseOver(directHandler?: (event: MouseEvent) => void): this;
526
- captureMouseUp(directHandler?: (event: MouseEvent) => void): this;
527
- captureWheel(directHandler?: (event: WheelEvent) => void): this;
528
- captureContextMenu(directHandler?: (event: MouseEvent) => void): this;
529
-
530
- // Capture versions for Keyboard Events
531
- captureKeyDown(directHandler?: (event: KeyboardEvent) => void): this;
532
- captureKeyPress(directHandler?: (event: KeyboardEvent) => void): this;
533
- captureKeyUp(directHandler?: (event: KeyboardEvent) => void): this;
534
-
535
- // Capture versions for Form Events
536
- captureBlur(directHandler?: (event: FocusEvent) => void): this;
537
- captureChange(directHandler?: (event: Event) => void): this;
538
- captureFocus(directHandler?: (event: FocusEvent) => void): this;
539
- captureFocusIn(directHandler?: (event: FocusEvent) => void): this;
540
- captureFocusOut(directHandler?: (event: FocusEvent) => void): this;
541
- captureInput(directHandler?: (event: Event) => void): this;
542
- captureInvalid(directHandler?: (event: Event) => void): this;
543
- captureReset(directHandler?: (event: Event) => void): this;
544
- captureSearch(directHandler?: (event: Event) => void): this;
545
- captureSelect(directHandler?: (event: Event) => void): this;
546
- captureSubmit(directHandler?: (event: Event) => void): this;
547
-
548
- // Capture versions for Drag Events
549
- captureDrag(directHandler?: (event: DragEvent) => void): this;
550
- captureDragEnd(directHandler?: (event: DragEvent) => void): this;
551
- captureDragEnter(directHandler?: (event: DragEvent) => void): this;
552
- captureDragLeave(directHandler?: (event: DragEvent) => void): this;
553
- captureDragOver(directHandler?: (event: DragEvent) => void): this;
554
- captureDragStart(directHandler?: (event: DragEvent) => void): this;
555
- captureDrop(directHandler?: (event: DragEvent) => void): this;
556
-
557
- // Capture versions for Window/Page Events
558
- captureAfterPrint(directHandler?: (event: Event) => void): this;
559
- captureBeforePrint(directHandler?: (event: Event) => void): this;
560
- captureBeforeUnload(directHandler?: (event: BeforeUnloadEvent) => void): this;
561
- captureError(directHandler?: (event: Event) => void): this;
562
- captureHashChange(directHandler?: (event: HashChangeEvent) => void): this;
563
- captureLoad(directHandler?: (event: Event) => void): this;
564
- captureOffline(directHandler?: (event: Event) => void): this;
565
- captureOnline(directHandler?: (event: Event) => void): this;
566
- capturePageHide(directHandler?: (event: PageTransitionEvent) => void): this;
567
- capturePageShow(directHandler?: (event: PageTransitionEvent) => void): this;
568
- captureResize(directHandler?: (event: UIEvent) => void): this;
569
- captureScroll(directHandler?: (event: Event) => void): this;
570
- captureUnload(directHandler?: (event: Event) => void): this;
571
-
572
- // Capture versions for Media Events
573
- captureAbort(directHandler?: (event: Event) => void): this;
574
- captureCanPlay(directHandler?: (event: Event) => void): this;
575
- captureCanPlayThrough(directHandler?: (event: Event) => void): this;
576
- captureDurationChange(directHandler?: (event: Event) => void): this;
577
- captureEmptied(directHandler?: (event: Event) => void): this;
578
- captureEnded(directHandler?: (event: Event) => void): this;
579
- captureLoadedData(directHandler?: (event: Event) => void): this;
580
- captureLoadedMetadata(directHandler?: (event: Event) => void): this;
581
- captureLoadStart(directHandler?: (event: Event) => void): this;
582
- capturePause(directHandler?: (event: Event) => void): this;
583
- capturePlay(directHandler?: (event: Event) => void): this;
584
- capturePlaying(directHandler?: (event: Event) => void): this;
585
- captureProgress(directHandler?: (event: ProgressEvent) => void): this;
586
- captureRateChange(directHandler?: (event: Event) => void): this;
587
- captureSeeked(directHandler?: (event: Event) => void): this;
588
- captureSeeking(directHandler?: (event: Event) => void): this;
589
- captureStalled(directHandler?: (event: Event) => void): this;
590
- captureSuspend(directHandler?: (event: Event) => void): this;
591
- captureTimeUpdate(directHandler?: (event: Event) => void): this;
592
- captureVolumeChange(directHandler?: (event: Event) => void): this;
593
- captureWaiting(directHandler?: (event: Event) => void): this;
594
-
595
- // Capture versions for Touch Events
596
- captureTouchCancel(directHandler?: (event: TouchEvent) => void): this;
597
- captureTouchEnd(directHandler?: (event: TouchEvent) => void): this;
598
- captureTouchMove(directHandler?: (event: TouchEvent) => void): this;
599
- captureTouchStart(directHandler?: (event: TouchEvent) => void): this;
600
-
601
- // Capture versions for Animation Events
602
- captureAnimationEnd(directHandler?: (event: AnimationEvent) => void): this;
603
- captureAnimationIteration(directHandler?: (event: AnimationEvent) => void): this;
604
- captureAnimationStart(directHandler?: (event: AnimationEvent) => void): this;
605
-
606
- // Capture versions for Transition Events
607
- captureTransitionEnd(directHandler?: (event: TransitionEvent) => void): this;
608
-
609
- // Capture versions for Clipboard Events
610
- captureCopy(directHandler?: (event: ClipboardEvent) => void): this;
611
- captureCut(directHandler?: (event: ClipboardEvent) => void): this;
612
- capturePaste(directHandler?: (event: ClipboardEvent) => void): this;
613
- }
614
6
 
615
7
  export type ValidChild =
616
8
  | string
@@ -635,6 +27,16 @@ export type ElementFunction = (attributes?: Attributes, children?: ValidChild) =
635
27
  export type ElementFunctionWithoutAttrs = (children?: ValidChild) => HTMLElement & { nd: NDElement };
636
28
 
637
29
  // HTML Elements
30
+ export declare const Link: ElementFunction;
31
+ export declare const Abbr: ElementFunction;
32
+ export declare const Cite: ElementFunction;
33
+ export declare const Quote: ElementFunction;
34
+
35
+ // Lists
36
+ export declare const Dl: ElementFunction;
37
+ export declare const Dt: ElementFunction;
38
+ export declare const Dd: ElementFunction;
39
+
638
40
  export declare const Div: ElementFunction;
639
41
  export declare const Span: ElementFunction;
640
42
  export declare const P: ElementFunction;
@@ -659,4 +61,66 @@ export declare const Mark: ElementFunction;
659
61
  export declare const Del: ElementFunction;
660
62
  export declare const Ins: ElementFunction;
661
63
  export declare const Sub: ElementFunction;
662
- export declare const Sup: ElementFunction;
64
+ export declare const Sup: ElementFunction;
65
+
66
+ // Semantic elements
67
+ export declare const Main: ElementFunction;
68
+ export declare const Section: ElementFunction;
69
+ export declare const Article: ElementFunction;
70
+ export declare const Aside: ElementFunction;
71
+ export declare const Nav: ElementFunction;
72
+ export declare const Figure: ElementFunction;
73
+ export declare const FigCaption: ElementFunction;
74
+ export declare const Header: ElementFunction;
75
+ export declare const Footer: ElementFunction;
76
+
77
+ export declare const Details: ElementFunction;
78
+ export declare const Summary: ElementFunction;
79
+ export declare const Dialog: ElementFunction;
80
+ export declare const Menu: ElementFunction;
81
+
82
+ // Lists
83
+ export declare const OrderedList: ElementFunction;
84
+ export declare const UnorderedList: ElementFunction;
85
+ export declare const ListItem: ElementFunction;
86
+ export declare const Li: ElementFunction;
87
+ export declare const Ol: ElementFunction;
88
+ export declare const Ul: ElementFunction;
89
+
90
+ // Media
91
+ export declare const Audio: ElementFunction;
92
+ export declare const Video: ElementFunction;
93
+ export declare const Source: ElementFunction;
94
+ export declare const Track: ElementFunction;
95
+ export declare const Canvas: ElementFunction;
96
+ export declare const Svg: ElementFunction;
97
+
98
+ // Other elements
99
+ export declare const Time: ElementFunction;
100
+ export declare const Data: ElementFunction;
101
+ export declare const Address: ElementFunction;
102
+ export declare const Kbd: ElementFunction;
103
+ export declare const Samp: ElementFunction;
104
+ export declare const Var: ElementFunction;
105
+ export declare const Wbr: ElementFunctionWithoutAttrs;
106
+
107
+ // Table elements
108
+ export declare const Caption: ElementFunction;
109
+ export declare const Table: ElementFunction;
110
+ export declare const THead: ElementFunction;
111
+ export declare const TFoot: ElementFunction;
112
+ export declare const TBody: ElementFunction;
113
+ export declare const Tr: ElementFunction;
114
+ export declare const TRow: ElementFunction;
115
+ export declare const Th: ElementFunction;
116
+ export declare const THeadCell: ElementFunction;
117
+ export declare const TFootCell: ElementFunction;
118
+ export declare const Td: ElementFunction;
119
+ export declare const TBodyCell: ElementFunction;
120
+
121
+ // Fragment
122
+ export declare const Fragment: ElementFunction;
123
+ export declare const NativeDocumentFragment: typeof Anchor;
124
+
125
+ // Anchor
126
+ export declare function Anchor(name?: string, isUniqueChild?: boolean): DocumentFragment;