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