native-document 1.0.53 → 1.0.55
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/dist/native-document.dev.js +337 -86
- package/dist/native-document.dev.js.map +1 -1
- package/dist/native-document.devtools.min.js +1 -1
- package/dist/native-document.min.js +1 -1
- package/docs/anchor.md +17 -17
- package/hrm.js +7 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/src/data/Observable.js +3 -2
- package/src/data/ObservableArray.js +8 -2
- package/src/data/ObservableItem.js +23 -1
- package/src/data/observable-helpers/array.js +3 -2
- package/src/data/observable-helpers/object.js +31 -43
- package/src/elements/anchor.js +2 -0
- package/src/elements/control/for-each-array.js +1 -1
- package/src/elements/control/for-each.js +1 -1
- package/src/elements/control/show-if.js +1 -1
- package/src/elements/control/switch.js +14 -3
- package/src/hrm/ComponentRegistry.js +83 -0
- package/src/hrm/hrm.hook.template.js +52 -0
- package/src/hrm/nd-vite-hot-reload.js +46 -0
- package/src/hrm/transformComponent.js +32 -0
- package/src/utils/helpers.js +33 -1
- package/src/utils/validator.js +1 -1
- package/src/wrappers/ElementCreator.js +1 -1
- package/src/wrappers/NDElement.js +83 -1
- package/src/wrappers/NdPrototype.js +12 -2
- package/src/wrappers/SingletonView.js +1 -1
- package/types/memoize.d.ts +16 -6
- package/types/nd-element.d.ts +245 -231
- package/types/observable.d.ts +24 -5
package/types/memoize.d.ts
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
type OnceProxy<T> = {
|
|
3
|
+
[K in keyof T]: T[K];
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
type MemoizeProxy<T> = {
|
|
7
|
+
[key: string]: T;
|
|
8
|
+
[key: symbol]: T;
|
|
9
|
+
};
|
|
10
|
+
|
|
2
11
|
export function once<T extends (...args: any[]) => any>(
|
|
3
12
|
fn: T
|
|
4
13
|
): (...args: Parameters<T>) => ReturnType<T>;
|
|
5
14
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
): T;
|
|
15
|
+
|
|
16
|
+
export function autoOnce<T extends object>(fn: () => T): OnceProxy<T>;
|
|
9
17
|
|
|
10
18
|
export function memoize<T extends (...args: any[]) => any>(
|
|
11
19
|
fn: T
|
|
12
20
|
): (key: any, ...args: Parameters<T>) => ReturnType<T>;
|
|
13
21
|
|
|
14
|
-
export function autoMemoize<T
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
export function autoMemoize<T>(fn: () => T): MemoizeProxy<T>;
|
|
23
|
+
|
|
24
|
+
export function autoMemoize<T, Args extends any[]>(
|
|
25
|
+
fn: (...args: Args) => T
|
|
26
|
+
): MemoizeProxy<(...args: Args) => T>;
|
package/types/nd-element.d.ts
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import {BindingHydrator} from "./template-cloner";
|
|
2
2
|
|
|
3
|
+
type ShadowMode = 'open' | 'closed';
|
|
4
|
+
|
|
5
|
+
interface MethodsObject {
|
|
6
|
+
[methodName: string]: (this: NDElement, ...args: any[]) => any;
|
|
7
|
+
}
|
|
8
|
+
|
|
3
9
|
export interface NDElement {
|
|
4
10
|
readonly __$isNDElement: true;
|
|
5
11
|
readonly $element: HTMLElement;
|
|
6
12
|
readonly $observer: any;
|
|
13
|
+
readonly nd: this;
|
|
7
14
|
|
|
8
15
|
ref(target: any, name: string): this;
|
|
16
|
+
refSelf(target: any, name: string): this;
|
|
17
|
+
with(methods: MethodsObject): this;
|
|
18
|
+
extend(methods: MethodsObject): NDElement;
|
|
19
|
+
|
|
9
20
|
unmountChildren(): this;
|
|
10
21
|
remove(): this;
|
|
11
22
|
|
|
@@ -15,6 +26,9 @@ export interface NDElement {
|
|
|
15
26
|
|
|
16
27
|
htmlElement(): HTMLElement;
|
|
17
28
|
node(): HTMLElement;
|
|
29
|
+
shadow(mode: ShadowMode, style?: string | null): this;
|
|
30
|
+
openShadow(style?: string | null): this;
|
|
31
|
+
closedShadow(style?: string | null): this;
|
|
18
32
|
attach(bindingHydrator: BindingHydrator): HTMLElement;
|
|
19
33
|
|
|
20
34
|
// Mouse Events
|
|
@@ -117,299 +131,299 @@ export interface NDElement {
|
|
|
117
131
|
// PREVENT DEFAULT VERSIONS
|
|
118
132
|
|
|
119
133
|
// Prevent default versions for Mouse Events
|
|
120
|
-
onPreventClick(callback
|
|
121
|
-
onPreventDblClick(callback
|
|
122
|
-
onPreventMouseDown(callback
|
|
123
|
-
onPreventMouseEnter(callback
|
|
124
|
-
onPreventMouseLeave(callback
|
|
125
|
-
onPreventMouseMove(callback
|
|
126
|
-
onPreventMouseOut(callback
|
|
127
|
-
onPreventMouseOver(callback
|
|
128
|
-
onPreventMouseUp(callback
|
|
129
|
-
onPreventWheel(callback
|
|
130
|
-
onPreventContextMenu(callback
|
|
134
|
+
onPreventClick(callback?: (event: MouseEvent) => void): this;
|
|
135
|
+
onPreventDblClick(callback?: (event: MouseEvent) => void): this;
|
|
136
|
+
onPreventMouseDown(callback?: (event: MouseEvent) => void): this;
|
|
137
|
+
onPreventMouseEnter(callback?: (event: MouseEvent) => void): this;
|
|
138
|
+
onPreventMouseLeave(callback?: (event: MouseEvent) => void): this;
|
|
139
|
+
onPreventMouseMove(callback?: (event: MouseEvent) => void): this;
|
|
140
|
+
onPreventMouseOut(callback?: (event: MouseEvent) => void): this;
|
|
141
|
+
onPreventMouseOver(callback?: (event: MouseEvent) => void): this;
|
|
142
|
+
onPreventMouseUp(callback?: (event: MouseEvent) => void): this;
|
|
143
|
+
onPreventWheel(callback?: (event: WheelEvent) => void): this;
|
|
144
|
+
onPreventContextMenu(callback?: (event: MouseEvent) => void): this;
|
|
131
145
|
|
|
132
146
|
// Prevent default versions for Keyboard Events
|
|
133
|
-
onPreventKeyDown(callback
|
|
134
|
-
onPreventKeyPress(callback
|
|
135
|
-
onPreventKeyUp(callback
|
|
147
|
+
onPreventKeyDown(callback?: (event: KeyboardEvent) => void): this;
|
|
148
|
+
onPreventKeyPress(callback?: (event: KeyboardEvent) => void): this;
|
|
149
|
+
onPreventKeyUp(callback?: (event: KeyboardEvent) => void): this;
|
|
136
150
|
|
|
137
151
|
// Prevent default versions for Form Events
|
|
138
|
-
onPreventBlur(callback
|
|
139
|
-
onPreventChange(callback
|
|
140
|
-
onPreventFocus(callback
|
|
141
|
-
onPreventFocusIn(callback
|
|
142
|
-
onPreventFocusOut(callback
|
|
143
|
-
onPreventInput(callback
|
|
144
|
-
onPreventInvalid(callback
|
|
145
|
-
onPreventReset(callback
|
|
146
|
-
onPreventSearch(callback
|
|
147
|
-
onPreventSelect(callback
|
|
148
|
-
onPreventSubmit(callback
|
|
152
|
+
onPreventBlur(callback?: (event: FocusEvent) => void): this;
|
|
153
|
+
onPreventChange(callback?: (event: Event) => void): this;
|
|
154
|
+
onPreventFocus(callback?: (event: FocusEvent) => void): this;
|
|
155
|
+
onPreventFocusIn(callback?: (event: FocusEvent) => void): this;
|
|
156
|
+
onPreventFocusOut(callback?: (event: FocusEvent) => void): this;
|
|
157
|
+
onPreventInput(callback?: (event: Event) => void): this;
|
|
158
|
+
onPreventInvalid(callback?: (event: Event) => void): this;
|
|
159
|
+
onPreventReset(callback?: (event: Event) => void): this;
|
|
160
|
+
onPreventSearch(callback?: (event: Event) => void): this;
|
|
161
|
+
onPreventSelect(callback?: (event: Event) => void): this;
|
|
162
|
+
onPreventSubmit(callback?: (event: Event) => void): this;
|
|
149
163
|
|
|
150
164
|
// Prevent default versions for Drag Events
|
|
151
|
-
onPreventDrag(callback
|
|
152
|
-
onPreventDragEnd(callback
|
|
153
|
-
onPreventDragEnter(callback
|
|
154
|
-
onPreventDragLeave(callback
|
|
155
|
-
onPreventDragOver(callback
|
|
156
|
-
onPreventDragStart(callback
|
|
157
|
-
onPreventDrop(callback
|
|
165
|
+
onPreventDrag(callback?: (event: DragEvent) => void): this;
|
|
166
|
+
onPreventDragEnd(callback?: (event: DragEvent) => void): this;
|
|
167
|
+
onPreventDragEnter(callback?: (event: DragEvent) => void): this;
|
|
168
|
+
onPreventDragLeave(callback?: (event: DragEvent) => void): this;
|
|
169
|
+
onPreventDragOver(callback?: (event: DragEvent) => void): this;
|
|
170
|
+
onPreventDragStart(callback?: (event: DragEvent) => void): this;
|
|
171
|
+
onPreventDrop(callback?: (event: DragEvent) => void): this;
|
|
158
172
|
|
|
159
173
|
// Prevent default versions for Window/Page Events
|
|
160
|
-
onPreventAfterPrint(callback
|
|
161
|
-
onPreventBeforePrint(callback
|
|
162
|
-
onPreventBeforeUnload(callback
|
|
163
|
-
onPreventError(callback
|
|
164
|
-
onPreventHashChange(callback
|
|
165
|
-
onPreventLoad(callback
|
|
166
|
-
onPreventOffline(callback
|
|
167
|
-
onPreventOnline(callback
|
|
168
|
-
onPreventPageHide(callback
|
|
169
|
-
onPreventPageShow(callback
|
|
170
|
-
onPreventResize(callback
|
|
171
|
-
onPreventScroll(callback
|
|
172
|
-
onPreventUnload(callback
|
|
174
|
+
onPreventAfterPrint(callback?: (event: Event) => void): this;
|
|
175
|
+
onPreventBeforePrint(callback?: (event: Event) => void): this;
|
|
176
|
+
onPreventBeforeUnload(callback?: (event: BeforeUnloadEvent) => void): this;
|
|
177
|
+
onPreventError(callback?: (event: Event) => void): this;
|
|
178
|
+
onPreventHashChange(callback?: (event: HashChangeEvent) => void): this;
|
|
179
|
+
onPreventLoad(callback?: (event: Event) => void): this;
|
|
180
|
+
onPreventOffline(callback?: (event: Event) => void): this;
|
|
181
|
+
onPreventOnline(callback?: (event: Event) => void): this;
|
|
182
|
+
onPreventPageHide(callback?: (event: PageTransitionEvent) => void): this;
|
|
183
|
+
onPreventPageShow(callback?: (event: PageTransitionEvent) => void): this;
|
|
184
|
+
onPreventResize(callback?: (event: UIEvent) => void): this;
|
|
185
|
+
onPreventScroll(callback?: (event: Event) => void): this;
|
|
186
|
+
onPreventUnload(callback?: (event: Event) => void): this;
|
|
173
187
|
|
|
174
188
|
// Prevent default versions for Media Events
|
|
175
|
-
onPreventAbort(callback
|
|
176
|
-
onPreventCanPlay(callback
|
|
177
|
-
onPreventCanPlayThrough(callback
|
|
178
|
-
onPreventDurationChange(callback
|
|
179
|
-
onPreventEmptied(callback
|
|
180
|
-
onPreventEnded(callback
|
|
181
|
-
onPreventLoadedData(callback
|
|
182
|
-
onPreventLoadedMetadata(callback
|
|
183
|
-
onPreventLoadStart(callback
|
|
184
|
-
onPreventPause(callback
|
|
185
|
-
onPreventPlay(callback
|
|
186
|
-
onPreventPlaying(callback
|
|
187
|
-
onPreventProgress(callback
|
|
188
|
-
onPreventRateChange(callback
|
|
189
|
-
onPreventSeeked(callback
|
|
190
|
-
onPreventSeeking(callback
|
|
191
|
-
onPreventStalled(callback
|
|
192
|
-
onPreventSuspend(callback
|
|
193
|
-
onPreventTimeUpdate(callback
|
|
194
|
-
onPreventVolumeChange(callback
|
|
195
|
-
onPreventWaiting(callback
|
|
189
|
+
onPreventAbort(callback?: (event: Event) => void): this;
|
|
190
|
+
onPreventCanPlay(callback?: (event: Event) => void): this;
|
|
191
|
+
onPreventCanPlayThrough(callback?: (event: Event) => void): this;
|
|
192
|
+
onPreventDurationChange(callback?: (event: Event) => void): this;
|
|
193
|
+
onPreventEmptied(callback?: (event: Event) => void): this;
|
|
194
|
+
onPreventEnded(callback?: (event: Event) => void): this;
|
|
195
|
+
onPreventLoadedData(callback?: (event: Event) => void): this;
|
|
196
|
+
onPreventLoadedMetadata(callback?: (event: Event) => void): this;
|
|
197
|
+
onPreventLoadStart(callback?: (event: Event) => void): this;
|
|
198
|
+
onPreventPause(callback?: (event: Event) => void): this;
|
|
199
|
+
onPreventPlay(callback?: (event: Event) => void): this;
|
|
200
|
+
onPreventPlaying(callback?: (event: Event) => void): this;
|
|
201
|
+
onPreventProgress(callback?: (event: ProgressEvent) => void): this;
|
|
202
|
+
onPreventRateChange(callback?: (event: Event) => void): this;
|
|
203
|
+
onPreventSeeked(callback?: (event: Event) => void): this;
|
|
204
|
+
onPreventSeeking(callback?: (event: Event) => void): this;
|
|
205
|
+
onPreventStalled(callback?: (event: Event) => void): this;
|
|
206
|
+
onPreventSuspend(callback?: (event: Event) => void): this;
|
|
207
|
+
onPreventTimeUpdate(callback?: (event: Event) => void): this;
|
|
208
|
+
onPreventVolumeChange(callback?: (event: Event) => void): this;
|
|
209
|
+
onPreventWaiting(callback?: (event: Event) => void): this;
|
|
196
210
|
|
|
197
211
|
// Prevent default versions for Touch Events
|
|
198
|
-
onPreventTouchCancel(callback
|
|
199
|
-
onPreventTouchEnd(callback
|
|
200
|
-
onPreventTouchMove(callback
|
|
201
|
-
onPreventTouchStart(callback
|
|
212
|
+
onPreventTouchCancel(callback?: (event: TouchEvent) => void): this;
|
|
213
|
+
onPreventTouchEnd(callback?: (event: TouchEvent) => void): this;
|
|
214
|
+
onPreventTouchMove(callback?: (event: TouchEvent) => void): this;
|
|
215
|
+
onPreventTouchStart(callback?: (event: TouchEvent) => void): this;
|
|
202
216
|
|
|
203
217
|
// Prevent default versions for Animation Events
|
|
204
|
-
onPreventAnimationEnd(callback
|
|
205
|
-
onPreventAnimationIteration(callback
|
|
206
|
-
onPreventAnimationStart(callback
|
|
218
|
+
onPreventAnimationEnd(callback?: (event: AnimationEvent) => void): this;
|
|
219
|
+
onPreventAnimationIteration(callback?: (event: AnimationEvent) => void): this;
|
|
220
|
+
onPreventAnimationStart(callback?: (event: AnimationEvent) => void): this;
|
|
207
221
|
|
|
208
222
|
// Prevent default versions for Transition Events
|
|
209
|
-
onPreventTransitionEnd(callback
|
|
223
|
+
onPreventTransitionEnd(callback?: (event: TransitionEvent) => void): this;
|
|
210
224
|
|
|
211
225
|
// Prevent default versions for Clipboard Events
|
|
212
|
-
onPreventCopy(callback
|
|
213
|
-
onPreventCut(callback
|
|
214
|
-
onPreventPaste(callback
|
|
226
|
+
onPreventCopy(callback?: (event: ClipboardEvent) => void): this;
|
|
227
|
+
onPreventCut(callback?: (event: ClipboardEvent) => void): this;
|
|
228
|
+
onPreventPaste(callback?: (event: ClipboardEvent) => void): this;
|
|
215
229
|
|
|
216
230
|
// STOP PROPAGATION VERSIONS
|
|
217
231
|
|
|
218
232
|
// Stop propagation versions for Mouse Events
|
|
219
|
-
onStopClick(callback
|
|
220
|
-
onStopDblClick(callback
|
|
221
|
-
onStopMouseDown(callback
|
|
222
|
-
onStopMouseEnter(callback
|
|
223
|
-
onStopMouseLeave(callback
|
|
224
|
-
onStopMouseMove(callback
|
|
225
|
-
onStopMouseOut(callback
|
|
226
|
-
onStopMouseOver(callback
|
|
227
|
-
onStopMouseUp(callback
|
|
228
|
-
onStopWheel(callback
|
|
229
|
-
onStopContextMenu(callback
|
|
233
|
+
onStopClick(callback?: (event: MouseEvent) => void): this;
|
|
234
|
+
onStopDblClick(callback?: (event: MouseEvent) => void): this;
|
|
235
|
+
onStopMouseDown(callback?: (event: MouseEvent) => void): this;
|
|
236
|
+
onStopMouseEnter(callback?: (event: MouseEvent) => void): this;
|
|
237
|
+
onStopMouseLeave(callback?: (event: MouseEvent) => void): this;
|
|
238
|
+
onStopMouseMove(callback?: (event: MouseEvent) => void): this;
|
|
239
|
+
onStopMouseOut(callback?: (event: MouseEvent) => void): this;
|
|
240
|
+
onStopMouseOver(callback?: (event: MouseEvent) => void): this;
|
|
241
|
+
onStopMouseUp(callback?: (event: MouseEvent) => void): this;
|
|
242
|
+
onStopWheel(callback?: (event: WheelEvent) => void): this;
|
|
243
|
+
onStopContextMenu(callback?: (event: MouseEvent) => void): this;
|
|
230
244
|
|
|
231
245
|
// Stop propagation versions for Keyboard Events
|
|
232
|
-
onStopKeyDown(callback
|
|
233
|
-
onStopKeyPress(callback
|
|
234
|
-
onStopKeyUp(callback
|
|
246
|
+
onStopKeyDown(callback?: (event: KeyboardEvent) => void): this;
|
|
247
|
+
onStopKeyPress(callback?: (event: KeyboardEvent) => void): this;
|
|
248
|
+
onStopKeyUp(callback?: (event: KeyboardEvent) => void): this;
|
|
235
249
|
|
|
236
250
|
// Stop propagation versions for Form Events
|
|
237
|
-
onStopBlur(callback
|
|
238
|
-
onStopChange(callback
|
|
239
|
-
onStopFocus(callback
|
|
240
|
-
onStopFocusIn(callback
|
|
241
|
-
onStopFocusOut(callback
|
|
242
|
-
onStopInput(callback
|
|
243
|
-
onStopInvalid(callback
|
|
244
|
-
onStopReset(callback
|
|
245
|
-
onStopSearch(callback
|
|
246
|
-
onStopSelect(callback
|
|
247
|
-
onStopSubmit(callback
|
|
251
|
+
onStopBlur(callback?: (event: FocusEvent) => void): this;
|
|
252
|
+
onStopChange(callback?: (event: Event) => void): this;
|
|
253
|
+
onStopFocus(callback?: (event: FocusEvent) => void): this;
|
|
254
|
+
onStopFocusIn(callback?: (event: FocusEvent) => void): this;
|
|
255
|
+
onStopFocusOut(callback?: (event: FocusEvent) => void): this;
|
|
256
|
+
onStopInput(callback?: (event: Event) => void): this;
|
|
257
|
+
onStopInvalid(callback?: (event: Event) => void): this;
|
|
258
|
+
onStopReset(callback?: (event: Event) => void): this;
|
|
259
|
+
onStopSearch(callback?: (event: Event) => void): this;
|
|
260
|
+
onStopSelect(callback?: (event: Event) => void): this;
|
|
261
|
+
onStopSubmit(callback?: (event: Event) => void): this;
|
|
248
262
|
|
|
249
263
|
// Stop propagation versions for Drag Events
|
|
250
|
-
onStopDrag(callback
|
|
251
|
-
onStopDragEnd(callback
|
|
252
|
-
onStopDragEnter(callback
|
|
253
|
-
onStopDragLeave(callback
|
|
254
|
-
onStopDragOver(callback
|
|
255
|
-
onStopDragStart(callback
|
|
256
|
-
onStopDrop(callback
|
|
264
|
+
onStopDrag(callback?: (event: DragEvent) => void): this;
|
|
265
|
+
onStopDragEnd(callback?: (event: DragEvent) => void): this;
|
|
266
|
+
onStopDragEnter(callback?: (event: DragEvent) => void): this;
|
|
267
|
+
onStopDragLeave(callback?: (event: DragEvent) => void): this;
|
|
268
|
+
onStopDragOver(callback?: (event: DragEvent) => void): this;
|
|
269
|
+
onStopDragStart(callback?: (event: DragEvent) => void): this;
|
|
270
|
+
onStopDrop(callback?: (event: DragEvent) => void): this;
|
|
257
271
|
|
|
258
272
|
// Stop propagation versions for Window/Page Events
|
|
259
|
-
onStopAfterPrint(callback
|
|
260
|
-
onStopBeforePrint(callback
|
|
261
|
-
onStopBeforeUnload(callback
|
|
262
|
-
onStopError(callback
|
|
263
|
-
onStopHashChange(callback
|
|
264
|
-
onStopLoad(callback
|
|
265
|
-
onStopOffline(callback
|
|
266
|
-
onStopOnline(callback
|
|
267
|
-
onStopPageHide(callback
|
|
268
|
-
onStopPageShow(callback
|
|
269
|
-
onStopResize(callback
|
|
270
|
-
onStopScroll(callback
|
|
271
|
-
onStopUnload(callback
|
|
273
|
+
onStopAfterPrint(callback?: (event: Event) => void): this;
|
|
274
|
+
onStopBeforePrint(callback?: (event: Event) => void): this;
|
|
275
|
+
onStopBeforeUnload(callback?: (event: BeforeUnloadEvent) => void): this;
|
|
276
|
+
onStopError(callback?: (event: Event) => void): this;
|
|
277
|
+
onStopHashChange(callback?: (event: HashChangeEvent) => void): this;
|
|
278
|
+
onStopLoad(callback?: (event: Event) => void): this;
|
|
279
|
+
onStopOffline(callback?: (event: Event) => void): this;
|
|
280
|
+
onStopOnline(callback?: (event: Event) => void): this;
|
|
281
|
+
onStopPageHide(callback?: (event: PageTransitionEvent) => void): this;
|
|
282
|
+
onStopPageShow(callback?: (event: PageTransitionEvent) => void): this;
|
|
283
|
+
onStopResize(callback?: (event: UIEvent) => void): this;
|
|
284
|
+
onStopScroll(callback?: (event: Event) => void): this;
|
|
285
|
+
onStopUnload(callback?: (event: Event) => void): this;
|
|
272
286
|
|
|
273
287
|
// Stop propagation versions for Media Events
|
|
274
|
-
onStopAbort(callback
|
|
275
|
-
onStopCanPlay(callback
|
|
276
|
-
onStopCanPlayThrough(callback
|
|
277
|
-
onStopDurationChange(callback
|
|
278
|
-
onStopEmptied(callback
|
|
279
|
-
onStopEnded(callback
|
|
280
|
-
onStopLoadedData(callback
|
|
281
|
-
onStopLoadedMetadata(callback
|
|
282
|
-
onStopLoadStart(callback
|
|
283
|
-
onStopPause(callback
|
|
284
|
-
onStopPlay(callback
|
|
285
|
-
onStopPlaying(callback
|
|
286
|
-
onStopProgress(callback
|
|
287
|
-
onStopRateChange(callback
|
|
288
|
-
onStopSeeked(callback
|
|
289
|
-
onStopSeeking(callback
|
|
290
|
-
onStopStalled(callback
|
|
291
|
-
onStopSuspend(callback
|
|
292
|
-
onStopTimeUpdate(callback
|
|
293
|
-
onStopVolumeChange(callback
|
|
294
|
-
onStopWaiting(callback
|
|
288
|
+
onStopAbort(callback?: (event: Event) => void): this;
|
|
289
|
+
onStopCanPlay(callback?: (event: Event) => void): this;
|
|
290
|
+
onStopCanPlayThrough(callback?: (event: Event) => void): this;
|
|
291
|
+
onStopDurationChange(callback?: (event: Event) => void): this;
|
|
292
|
+
onStopEmptied(callback?: (event: Event) => void): this;
|
|
293
|
+
onStopEnded(callback?: (event: Event) => void): this;
|
|
294
|
+
onStopLoadedData(callback?: (event: Event) => void): this;
|
|
295
|
+
onStopLoadedMetadata(callback?: (event: Event) => void): this;
|
|
296
|
+
onStopLoadStart(callback?: (event: Event) => void): this;
|
|
297
|
+
onStopPause(callback?: (event: Event) => void): this;
|
|
298
|
+
onStopPlay(callback?: (event: Event) => void): this;
|
|
299
|
+
onStopPlaying(callback?: (event: Event) => void): this;
|
|
300
|
+
onStopProgress(callback?: (event: ProgressEvent) => void): this;
|
|
301
|
+
onStopRateChange(callback?: (event: Event) => void): this;
|
|
302
|
+
onStopSeeked(callback?: (event: Event) => void): this;
|
|
303
|
+
onStopSeeking(callback?: (event: Event) => void): this;
|
|
304
|
+
onStopStalled(callback?: (event: Event) => void): this;
|
|
305
|
+
onStopSuspend(callback?: (event: Event) => void): this;
|
|
306
|
+
onStopTimeUpdate(callback?: (event: Event) => void): this;
|
|
307
|
+
onStopVolumeChange(callback?: (event: Event) => void): this;
|
|
308
|
+
onStopWaiting(callback?: (event: Event) => void): this;
|
|
295
309
|
|
|
296
310
|
// Stop propagation versions for Touch Events
|
|
297
|
-
onStopTouchCancel(callback
|
|
298
|
-
onStopTouchEnd(callback
|
|
299
|
-
onStopTouchMove(callback
|
|
300
|
-
onStopTouchStart(callback
|
|
311
|
+
onStopTouchCancel(callback?: (event: TouchEvent) => void): this;
|
|
312
|
+
onStopTouchEnd(callback?: (event: TouchEvent) => void): this;
|
|
313
|
+
onStopTouchMove(callback?: (event: TouchEvent) => void): this;
|
|
314
|
+
onStopTouchStart(callback?: (event: TouchEvent) => void): this;
|
|
301
315
|
|
|
302
316
|
// Stop propagation versions for Animation Events
|
|
303
|
-
onStopAnimationEnd(callback
|
|
304
|
-
onStopAnimationIteration(callback
|
|
305
|
-
onStopAnimationStart(callback
|
|
317
|
+
onStopAnimationEnd(callback?: (event: AnimationEvent) => void): this;
|
|
318
|
+
onStopAnimationIteration(callback?: (event: AnimationEvent) => void): this;
|
|
319
|
+
onStopAnimationStart(callback?: (event: AnimationEvent) => void): this;
|
|
306
320
|
|
|
307
321
|
// Stop propagation versions for Transition Events
|
|
308
|
-
onStopTransitionEnd(callback
|
|
322
|
+
onStopTransitionEnd(callback?: (event: TransitionEvent) => void): this;
|
|
309
323
|
|
|
310
324
|
// Stop propagation versions for Clipboard Events
|
|
311
|
-
onStopCopy(callback
|
|
312
|
-
onStopCut(callback
|
|
313
|
-
onStopPaste(callback
|
|
325
|
+
onStopCopy(callback?: (event: ClipboardEvent) => void): this;
|
|
326
|
+
onStopCut(callback?: (event: ClipboardEvent) => void): this;
|
|
327
|
+
onStopPaste(callback?: (event: ClipboardEvent) => void): this;
|
|
314
328
|
|
|
315
329
|
// PREVENT + STOP VERSIONS
|
|
316
330
|
|
|
317
331
|
// Prevent + Stop versions for Mouse Events
|
|
318
|
-
onPreventStopClick(callback
|
|
319
|
-
onPreventStopDblClick(callback
|
|
320
|
-
onPreventStopMouseDown(callback
|
|
321
|
-
onPreventStopMouseEnter(callback
|
|
322
|
-
onPreventStopMouseLeave(callback
|
|
323
|
-
onPreventStopMouseMove(callback
|
|
324
|
-
onPreventStopMouseOut(callback
|
|
325
|
-
onPreventStopMouseOver(callback
|
|
326
|
-
onPreventStopMouseUp(callback
|
|
327
|
-
onPreventStopWheel(callback
|
|
328
|
-
onPreventStopContextMenu(callback
|
|
332
|
+
onPreventStopClick(callback?: (event: MouseEvent) => void): this;
|
|
333
|
+
onPreventStopDblClick(callback?: (event: MouseEvent) => void): this;
|
|
334
|
+
onPreventStopMouseDown(callback?: (event: MouseEvent) => void): this;
|
|
335
|
+
onPreventStopMouseEnter(callback?: (event: MouseEvent) => void): this;
|
|
336
|
+
onPreventStopMouseLeave(callback?: (event: MouseEvent) => void): this;
|
|
337
|
+
onPreventStopMouseMove(callback?: (event: MouseEvent) => void): this;
|
|
338
|
+
onPreventStopMouseOut(callback?: (event: MouseEvent) => void): this;
|
|
339
|
+
onPreventStopMouseOver(callback?: (event: MouseEvent) => void): this;
|
|
340
|
+
onPreventStopMouseUp(callback?: (event: MouseEvent) => void): this;
|
|
341
|
+
onPreventStopWheel(callback?: (event: WheelEvent) => void): this;
|
|
342
|
+
onPreventStopContextMenu(callback?: (event: MouseEvent) => void): this;
|
|
329
343
|
|
|
330
344
|
// Prevent + Stop versions for Keyboard Events
|
|
331
|
-
onPreventStopKeyDown(callback
|
|
332
|
-
onPreventStopKeyPress(callback
|
|
333
|
-
onPreventStopKeyUp(callback
|
|
345
|
+
onPreventStopKeyDown(callback?: (event: KeyboardEvent) => void): this;
|
|
346
|
+
onPreventStopKeyPress(callback?: (event: KeyboardEvent) => void): this;
|
|
347
|
+
onPreventStopKeyUp(callback?: (event: KeyboardEvent) => void): this;
|
|
334
348
|
|
|
335
349
|
// Prevent + Stop versions for Form Events
|
|
336
|
-
onPreventStopBlur(callback
|
|
337
|
-
onPreventStopChange(callback
|
|
338
|
-
onPreventStopFocus(callback
|
|
339
|
-
onPreventStopFocusIn(callback
|
|
340
|
-
onPreventStopFocusOut(callback
|
|
341
|
-
onPreventStopInput(callback
|
|
342
|
-
onPreventStopInvalid(callback
|
|
343
|
-
onPreventStopReset(callback
|
|
344
|
-
onPreventStopSearch(callback
|
|
345
|
-
onPreventStopSelect(callback
|
|
346
|
-
onPreventStopSubmit(callback
|
|
350
|
+
onPreventStopBlur(callback?: (event: FocusEvent) => void): this;
|
|
351
|
+
onPreventStopChange(callback?: (event: Event) => void): this;
|
|
352
|
+
onPreventStopFocus(callback?: (event: FocusEvent) => void): this;
|
|
353
|
+
onPreventStopFocusIn(callback?: (event: FocusEvent) => void): this;
|
|
354
|
+
onPreventStopFocusOut(callback?: (event: FocusEvent) => void): this;
|
|
355
|
+
onPreventStopInput(callback?: (event: Event) => void): this;
|
|
356
|
+
onPreventStopInvalid(callback?: (event: Event) => void): this;
|
|
357
|
+
onPreventStopReset(callback?: (event: Event) => void): this;
|
|
358
|
+
onPreventStopSearch(callback?: (event: Event) => void): this;
|
|
359
|
+
onPreventStopSelect(callback?: (event: Event) => void): this;
|
|
360
|
+
onPreventStopSubmit(callback?: (event: Event) => void): this;
|
|
347
361
|
|
|
348
362
|
// Prevent + Stop versions for Drag Events
|
|
349
|
-
onPreventStopDrag(callback
|
|
350
|
-
onPreventStopDragEnd(callback
|
|
351
|
-
onPreventStopDragEnter(callback
|
|
352
|
-
onPreventStopDragLeave(callback
|
|
353
|
-
onPreventStopDragOver(callback
|
|
354
|
-
onPreventStopDragStart(callback
|
|
355
|
-
onPreventStopDrop(callback
|
|
363
|
+
onPreventStopDrag(callback?: (event: DragEvent) => void): this;
|
|
364
|
+
onPreventStopDragEnd(callback?: (event: DragEvent) => void): this;
|
|
365
|
+
onPreventStopDragEnter(callback?: (event: DragEvent) => void): this;
|
|
366
|
+
onPreventStopDragLeave(callback?: (event: DragEvent) => void): this;
|
|
367
|
+
onPreventStopDragOver(callback?: (event: DragEvent) => void): this;
|
|
368
|
+
onPreventStopDragStart(callback?: (event: DragEvent) => void): this;
|
|
369
|
+
onPreventStopDrop(callback?: (event: DragEvent) => void): this;
|
|
356
370
|
|
|
357
371
|
// Prevent + Stop versions for Window/Page Events
|
|
358
|
-
onPreventStopAfterPrint(callback
|
|
359
|
-
onPreventStopBeforePrint(callback
|
|
360
|
-
onPreventStopBeforeUnload(callback
|
|
361
|
-
onPreventStopError(callback
|
|
362
|
-
onPreventStopHashChange(callback
|
|
363
|
-
onPreventStopLoad(callback
|
|
364
|
-
onPreventStopOffline(callback
|
|
365
|
-
onPreventStopOnline(callback
|
|
366
|
-
onPreventStopPageHide(callback
|
|
367
|
-
onPreventStopPageShow(callback
|
|
368
|
-
onPreventStopResize(callback
|
|
369
|
-
onPreventStopScroll(callback
|
|
370
|
-
onPreventStopUnload(callback
|
|
372
|
+
onPreventStopAfterPrint(callback?: (event: Event) => void): this;
|
|
373
|
+
onPreventStopBeforePrint(callback?: (event: Event) => void): this;
|
|
374
|
+
onPreventStopBeforeUnload(callback?: (event: BeforeUnloadEvent) => void): this;
|
|
375
|
+
onPreventStopError(callback?: (event: Event) => void): this;
|
|
376
|
+
onPreventStopHashChange(callback?: (event: HashChangeEvent) => void): this;
|
|
377
|
+
onPreventStopLoad(callback?: (event: Event) => void): this;
|
|
378
|
+
onPreventStopOffline(callback?: (event: Event) => void): this;
|
|
379
|
+
onPreventStopOnline(callback?: (event: Event) => void): this;
|
|
380
|
+
onPreventStopPageHide(callback?: (event: PageTransitionEvent) => void): this;
|
|
381
|
+
onPreventStopPageShow(callback?: (event: PageTransitionEvent) => void): this;
|
|
382
|
+
onPreventStopResize(callback?: (event: UIEvent) => void): this;
|
|
383
|
+
onPreventStopScroll(callback?: (event: Event) => void): this;
|
|
384
|
+
onPreventStopUnload(callback?: (event: Event) => void): this;
|
|
371
385
|
|
|
372
386
|
// Prevent + Stop versions for Media Events
|
|
373
|
-
onPreventStopAbort(callback
|
|
374
|
-
onPreventStopCanPlay(callback
|
|
375
|
-
onPreventStopCanPlayThrough(callback
|
|
376
|
-
onPreventStopDurationChange(callback
|
|
377
|
-
onPreventStopEmptied(callback
|
|
378
|
-
onPreventStopEnded(callback
|
|
379
|
-
onPreventStopLoadedData(callback
|
|
380
|
-
onPreventStopLoadedMetadata(callback
|
|
381
|
-
onPreventStopLoadStart(callback
|
|
382
|
-
onPreventStopPause(callback
|
|
383
|
-
onPreventStopPlay(callback
|
|
384
|
-
onPreventStopPlaying(callback
|
|
385
|
-
onPreventStopProgress(callback
|
|
386
|
-
onPreventStopRateChange(callback
|
|
387
|
-
onPreventStopSeeked(callback
|
|
388
|
-
onPreventStopSeeking(callback
|
|
389
|
-
onPreventStopStalled(callback
|
|
390
|
-
onPreventStopSuspend(callback
|
|
391
|
-
onPreventStopTimeUpdate(callback
|
|
392
|
-
onPreventStopVolumeChange(callback
|
|
393
|
-
onPreventStopWaiting(callback
|
|
387
|
+
onPreventStopAbort(callback?: (event: Event) => void): this;
|
|
388
|
+
onPreventStopCanPlay(callback?: (event: Event) => void): this;
|
|
389
|
+
onPreventStopCanPlayThrough(callback?: (event: Event) => void): this;
|
|
390
|
+
onPreventStopDurationChange(callback?: (event: Event) => void): this;
|
|
391
|
+
onPreventStopEmptied(callback?: (event: Event) => void): this;
|
|
392
|
+
onPreventStopEnded(callback?: (event: Event) => void): this;
|
|
393
|
+
onPreventStopLoadedData(callback?: (event: Event) => void): this;
|
|
394
|
+
onPreventStopLoadedMetadata(callback?: (event: Event) => void): this;
|
|
395
|
+
onPreventStopLoadStart(callback?: (event: Event) => void): this;
|
|
396
|
+
onPreventStopPause(callback?: (event: Event) => void): this;
|
|
397
|
+
onPreventStopPlay(callback?: (event: Event) => void): this;
|
|
398
|
+
onPreventStopPlaying(callback?: (event: Event) => void): this;
|
|
399
|
+
onPreventStopProgress(callback?: (event: ProgressEvent) => void): this;
|
|
400
|
+
onPreventStopRateChange(callback?: (event: Event) => void): this;
|
|
401
|
+
onPreventStopSeeked(callback?: (event: Event) => void): this;
|
|
402
|
+
onPreventStopSeeking(callback?: (event: Event) => void): this;
|
|
403
|
+
onPreventStopStalled(callback?: (event: Event) => void): this;
|
|
404
|
+
onPreventStopSuspend(callback?: (event: Event) => void): this;
|
|
405
|
+
onPreventStopTimeUpdate(callback?: (event: Event) => void): this;
|
|
406
|
+
onPreventStopVolumeChange(callback?: (event: Event) => void): this;
|
|
407
|
+
onPreventStopWaiting(callback?: (event: Event) => void): this;
|
|
394
408
|
|
|
395
409
|
// Prevent + Stop versions for Touch Events
|
|
396
|
-
onPreventStopTouchCancel(callback
|
|
397
|
-
onPreventStopTouchEnd(callback
|
|
398
|
-
onPreventStopTouchMove(callback
|
|
399
|
-
onPreventStopTouchStart(callback
|
|
410
|
+
onPreventStopTouchCancel(callback?: (event: TouchEvent) => void): this;
|
|
411
|
+
onPreventStopTouchEnd(callback?: (event: TouchEvent) => void): this;
|
|
412
|
+
onPreventStopTouchMove(callback?: (event: TouchEvent) => void): this;
|
|
413
|
+
onPreventStopTouchStart(callback?: (event: TouchEvent) => void): this;
|
|
400
414
|
|
|
401
415
|
// Prevent + Stop versions for Animation Events
|
|
402
|
-
onPreventStopAnimationEnd(callback
|
|
403
|
-
onPreventStopAnimationIteration(callback
|
|
404
|
-
onPreventStopAnimationStart(callback
|
|
416
|
+
onPreventStopAnimationEnd(callback?: (event: AnimationEvent) => void): this;
|
|
417
|
+
onPreventStopAnimationIteration(callback?: (event: AnimationEvent) => void): this;
|
|
418
|
+
onPreventStopAnimationStart(callback?: (event: AnimationEvent) => void): this;
|
|
405
419
|
|
|
406
420
|
// Prevent + Stop versions for Transition Events
|
|
407
|
-
onPreventStopTransitionEnd(callback
|
|
421
|
+
onPreventStopTransitionEnd(callback?: (event: TransitionEvent) => void): this;
|
|
408
422
|
|
|
409
423
|
// Prevent + Stop versions for Clipboard Events
|
|
410
|
-
onPreventStopCopy(callback
|
|
411
|
-
onPreventStopCut(callback
|
|
412
|
-
onPreventStopPaste(callback
|
|
424
|
+
onPreventStopCopy(callback?: (event: ClipboardEvent) => void): this;
|
|
425
|
+
onPreventStopCut(callback?: (event: ClipboardEvent) => void): this;
|
|
426
|
+
onPreventStopPaste(callback?: (event: ClipboardEvent) => void): this;
|
|
413
427
|
|
|
414
428
|
// DELEGATION METHODS - WHEN (for children)
|
|
415
429
|
|