@thednp/shorty 2.0.11 → 2.0.13
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/README.md +0 -3
- package/dist/chunk-CP6mxX4N.js +27 -0
- package/dist/index.d.ts +2232 -0
- package/dist/index.js +2382 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +31 -24
- package/dist/shorty.cjs +0 -2
- package/dist/shorty.cjs.map +0 -1
- package/dist/shorty.d.ts +0 -2145
- package/dist/shorty.js +0 -2
- package/dist/shorty.js.map +0 -1
- package/dist/shorty.mjs +0 -641
- package/dist/shorty.mjs.map +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2232 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @thednp/shorty ESM v2.0.13 (https://github.com/thednp/shorty)
|
|
3
|
+
* Copyright 2026 © thednp
|
|
4
|
+
* Licensed under MIT (https://github.com/thednp/shorty/blob/master/LICENSE)
|
|
5
|
+
*/
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
//#region package.json.d.ts
|
|
9
|
+
declare let version: string;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/strings/ariaChecked.d.ts
|
|
12
|
+
/**
|
|
13
|
+
* A global namespace for aria-checked.
|
|
14
|
+
*/
|
|
15
|
+
declare const ariaChecked = "aria-checked";
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/strings/ariaDescription.d.ts
|
|
18
|
+
/**
|
|
19
|
+
* A global namespace for aria-description.
|
|
20
|
+
*/
|
|
21
|
+
declare const ariaDescription = "aria-description";
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/strings/ariaDescribedBy.d.ts
|
|
24
|
+
/**
|
|
25
|
+
* A global namespace for aria-describedby.
|
|
26
|
+
*/
|
|
27
|
+
declare const ariaDescribedBy = "aria-describedby";
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region src/strings/ariaExpanded.d.ts
|
|
30
|
+
/**
|
|
31
|
+
* A global namespace for aria-expanded.
|
|
32
|
+
*/
|
|
33
|
+
declare const ariaExpanded = "aria-expanded";
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/strings/ariaHasPopup.d.ts
|
|
36
|
+
/**
|
|
37
|
+
* A global namespace for aria-haspopup.
|
|
38
|
+
*/
|
|
39
|
+
declare const ariaHasPopup = "aria-haspopup";
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/strings/ariaHidden.d.ts
|
|
42
|
+
/**
|
|
43
|
+
* A global namespace for aria-hidden.
|
|
44
|
+
*/
|
|
45
|
+
declare const ariaHidden = "aria-hidden";
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/strings/ariaLabel.d.ts
|
|
48
|
+
/**
|
|
49
|
+
* A global namespace for aria-label.
|
|
50
|
+
*/
|
|
51
|
+
declare const ariaLabel = "aria-label";
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/strings/ariaLabelledBy.d.ts
|
|
54
|
+
/**
|
|
55
|
+
* A global namespace for aria-labelledby.
|
|
56
|
+
*/
|
|
57
|
+
declare const ariaLabelledBy = "aria-labelledby";
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/strings/ariaModal.d.ts
|
|
60
|
+
/**
|
|
61
|
+
* A global namespace for aria-modal.
|
|
62
|
+
*/
|
|
63
|
+
declare const ariaModal = "aria-modal";
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/strings/ariaPressed.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* A global namespace for aria-pressed.
|
|
68
|
+
*/
|
|
69
|
+
declare const ariaPressed = "aria-pressed";
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/strings/ariaSelected.d.ts
|
|
72
|
+
/**
|
|
73
|
+
* A global namespace for aria-selected.
|
|
74
|
+
*/
|
|
75
|
+
declare const ariaSelected = "aria-selected";
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/strings/ariaValueMin.d.ts
|
|
78
|
+
/**
|
|
79
|
+
* A global namespace for aria-valuemin.
|
|
80
|
+
*/
|
|
81
|
+
declare const ariaValueMin = "aria-valuemin";
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/strings/ariaValueMax.d.ts
|
|
84
|
+
/**
|
|
85
|
+
* A global namespace for aria-valuemax.
|
|
86
|
+
*/
|
|
87
|
+
declare const ariaValueMax = "aria-valuemax";
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/strings/ariaValueNow.d.ts
|
|
90
|
+
/**
|
|
91
|
+
* A global namespace for aria-valuenow.
|
|
92
|
+
*/
|
|
93
|
+
declare const ariaValueNow = "aria-valuenow";
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/strings/ariaValueText.d.ts
|
|
96
|
+
/**
|
|
97
|
+
* A global namespace for aria-valuetext.
|
|
98
|
+
*/
|
|
99
|
+
declare const ariaValueText = "aria-valuetext";
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/strings/nativeEvents.d.ts
|
|
102
|
+
/**
|
|
103
|
+
* A global namespace for all browser native events.
|
|
104
|
+
*/
|
|
105
|
+
declare const nativeEvents: {
|
|
106
|
+
DOMContentLoaded: string;
|
|
107
|
+
DOMMouseScroll: string;
|
|
108
|
+
abort: string;
|
|
109
|
+
beforeunload: string;
|
|
110
|
+
blur: string;
|
|
111
|
+
change: string;
|
|
112
|
+
click: string;
|
|
113
|
+
contextmenu: string;
|
|
114
|
+
dblclick: string;
|
|
115
|
+
error: string;
|
|
116
|
+
focus: string;
|
|
117
|
+
focusin: string;
|
|
118
|
+
focusout: string;
|
|
119
|
+
gesturechange: string;
|
|
120
|
+
gestureend: string;
|
|
121
|
+
gesturestart: string;
|
|
122
|
+
hover: string;
|
|
123
|
+
keydown: string;
|
|
124
|
+
keypress: string;
|
|
125
|
+
keyup: string;
|
|
126
|
+
load: string;
|
|
127
|
+
mousedown: string;
|
|
128
|
+
mousemove: string;
|
|
129
|
+
mousein: string;
|
|
130
|
+
mouseout: string;
|
|
131
|
+
mouseenter: string;
|
|
132
|
+
mouseleave: string;
|
|
133
|
+
mouseover: string;
|
|
134
|
+
mouseup: string;
|
|
135
|
+
mousewheel: string;
|
|
136
|
+
move: string;
|
|
137
|
+
orientationchange: string;
|
|
138
|
+
pointercancel: string;
|
|
139
|
+
pointerdown: string;
|
|
140
|
+
pointerleave: string;
|
|
141
|
+
pointermove: string;
|
|
142
|
+
pointerup: string;
|
|
143
|
+
readystatechange: string;
|
|
144
|
+
reset: string;
|
|
145
|
+
resize: string;
|
|
146
|
+
scroll: string;
|
|
147
|
+
select: string;
|
|
148
|
+
selectend: string;
|
|
149
|
+
selectstart: string;
|
|
150
|
+
submit: string;
|
|
151
|
+
touchcancel: string;
|
|
152
|
+
touchend: string;
|
|
153
|
+
touchmove: string;
|
|
154
|
+
touchstart: string;
|
|
155
|
+
unload: string;
|
|
156
|
+
};
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/strings/abortEvent.d.ts
|
|
159
|
+
/**
|
|
160
|
+
* A global namespace for `abort` event.
|
|
161
|
+
*/
|
|
162
|
+
declare const abortEvent = "abort";
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/strings/blurEvent.d.ts
|
|
165
|
+
/**
|
|
166
|
+
* A global namespace for `blur` event.
|
|
167
|
+
*/
|
|
168
|
+
declare const blurEvent = "blur";
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/strings/moveEvent.d.ts
|
|
171
|
+
/**
|
|
172
|
+
* A global namespace for `move` event.
|
|
173
|
+
*/
|
|
174
|
+
declare const moveEvent = "move";
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/strings/changeEvent.d.ts
|
|
177
|
+
/**
|
|
178
|
+
* A global namespace for `change` event.
|
|
179
|
+
*/
|
|
180
|
+
declare const changeEvent = "change";
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/strings/dragEvent.d.ts
|
|
183
|
+
/**
|
|
184
|
+
* A global namespace for `drag` event.
|
|
185
|
+
*/
|
|
186
|
+
declare const dragEvent = "drag";
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/strings/dragstartEvent.d.ts
|
|
189
|
+
/**
|
|
190
|
+
* A global namespace for `dragstart` event.
|
|
191
|
+
*/
|
|
192
|
+
declare const dragstartEvent = "dragstart";
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/strings/dragenterEvent.d.ts
|
|
195
|
+
/**
|
|
196
|
+
* A global namespace for `dragenter` event.
|
|
197
|
+
*/
|
|
198
|
+
declare const dragenterEvent = "dragenter";
|
|
199
|
+
//#endregion
|
|
200
|
+
//#region src/strings/dragleaveEvent.d.ts
|
|
201
|
+
/**
|
|
202
|
+
* A global namespace for `dragleave` event.
|
|
203
|
+
*/
|
|
204
|
+
declare const dragleaveEvent = "dragleave";
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/strings/dragoverEvent.d.ts
|
|
207
|
+
/**
|
|
208
|
+
* A global namespace for `dragover` event.
|
|
209
|
+
*/
|
|
210
|
+
declare const dragoverEvent = "dragover";
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/strings/dragendEvent.d.ts
|
|
213
|
+
/**
|
|
214
|
+
* A global namespace for `dragend` event.
|
|
215
|
+
*/
|
|
216
|
+
declare const dragendEvent = "dragend";
|
|
217
|
+
//#endregion
|
|
218
|
+
//#region src/strings/errorEvent.d.ts
|
|
219
|
+
/**
|
|
220
|
+
* A global namespace for `error` event.
|
|
221
|
+
*/
|
|
222
|
+
declare const errorEvent = "error";
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/strings/resetEvent.d.ts
|
|
225
|
+
/**
|
|
226
|
+
* A global namespace for `reset` event.
|
|
227
|
+
*/
|
|
228
|
+
declare const resetEvent = "reset";
|
|
229
|
+
//#endregion
|
|
230
|
+
//#region src/strings/resizeEvent.d.ts
|
|
231
|
+
/**
|
|
232
|
+
* A global namespace for `resize` event.
|
|
233
|
+
*/
|
|
234
|
+
declare const resizeEvent = "resize";
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/strings/scrollEvent.d.ts
|
|
237
|
+
/**
|
|
238
|
+
* A global namespace for `scroll` event.
|
|
239
|
+
*/
|
|
240
|
+
declare const scrollEvent = "scroll";
|
|
241
|
+
//#endregion
|
|
242
|
+
//#region src/strings/submitEvent.d.ts
|
|
243
|
+
/**
|
|
244
|
+
* A global namespace for `submit` event.
|
|
245
|
+
*/
|
|
246
|
+
declare const submitEvent = "submit";
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/strings/loadEvent.d.ts
|
|
249
|
+
/**
|
|
250
|
+
* A global namespace for `load` event.
|
|
251
|
+
*/
|
|
252
|
+
declare const loadEvent = "load";
|
|
253
|
+
//#endregion
|
|
254
|
+
//#region src/strings/loadstartEvent.d.ts
|
|
255
|
+
/**
|
|
256
|
+
* A global namespace for `loadstart` event.
|
|
257
|
+
*/
|
|
258
|
+
declare const loadstartEvent = "loadstart";
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/strings/unloadEvent.d.ts
|
|
261
|
+
/**
|
|
262
|
+
* A global namespace for `unload` event.
|
|
263
|
+
*/
|
|
264
|
+
declare const unloadEvent = "unload";
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/strings/readystatechangeEvent.d.ts
|
|
267
|
+
/**
|
|
268
|
+
* A global namespace for `readystatechange` event.
|
|
269
|
+
*/
|
|
270
|
+
declare const readystatechangeEvent = "readystatechange";
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/strings/beforeunloadEvent.d.ts
|
|
273
|
+
/**
|
|
274
|
+
* A global namespace for `beforeunload` event.
|
|
275
|
+
*/
|
|
276
|
+
declare const beforeunloadEvent = "beforeunload";
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/strings/orientationchangeEvent.d.ts
|
|
279
|
+
/**
|
|
280
|
+
* A global namespace for `orientationchange` event.
|
|
281
|
+
*/
|
|
282
|
+
declare const orientationchangeEvent = "orientationchange";
|
|
283
|
+
//#endregion
|
|
284
|
+
//#region src/strings/contextmenuEvent.d.ts
|
|
285
|
+
/**
|
|
286
|
+
* A global namespace for `contextmenu` event.
|
|
287
|
+
*/
|
|
288
|
+
declare const contextmenuEvent = "contextmenu";
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/strings/DOMContentLoadedEvent.d.ts
|
|
291
|
+
/**
|
|
292
|
+
* A global namespace for `DOMContentLoaded` event.
|
|
293
|
+
*/
|
|
294
|
+
declare const DOMContentLoadedEvent = "DOMContentLoaded";
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/strings/DOMMouseScrollEvent.d.ts
|
|
297
|
+
/**
|
|
298
|
+
* A global namespace for `DOMMouseScroll` event.
|
|
299
|
+
*/
|
|
300
|
+
declare const DOMMouseScrollEvent = "DOMMouseScroll";
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/strings/selectEvent.d.ts
|
|
303
|
+
/**
|
|
304
|
+
* A global namespace for `select` event.
|
|
305
|
+
*/
|
|
306
|
+
declare const selectEvent = "select";
|
|
307
|
+
//#endregion
|
|
308
|
+
//#region src/strings/selectendEvent.d.ts
|
|
309
|
+
/**
|
|
310
|
+
* A global namespace for the `selectend` event.
|
|
311
|
+
*/
|
|
312
|
+
declare const selectendEvent = "selectend";
|
|
313
|
+
//#endregion
|
|
314
|
+
//#region src/strings/selectstartEvent.d.ts
|
|
315
|
+
/**
|
|
316
|
+
* A global namespace for the `selectstart` event.
|
|
317
|
+
*/
|
|
318
|
+
declare const selectstartEvent = "selectstart";
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/strings/mouseSwipeEvents.d.ts
|
|
321
|
+
/**
|
|
322
|
+
* A global namespace for mouse events equivalent to touch events.
|
|
323
|
+
*/
|
|
324
|
+
declare const mouseSwipeEvents: {
|
|
325
|
+
start: string;
|
|
326
|
+
end: string;
|
|
327
|
+
move: string;
|
|
328
|
+
cancel: string;
|
|
329
|
+
};
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/strings/mouseClickEvents.d.ts
|
|
332
|
+
/**
|
|
333
|
+
* A global namespace for mouse click events.
|
|
334
|
+
*/
|
|
335
|
+
declare const mouseClickEvents: {
|
|
336
|
+
down: string;
|
|
337
|
+
up: string;
|
|
338
|
+
};
|
|
339
|
+
//#endregion
|
|
340
|
+
//#region src/strings/mouseclickEvent.d.ts
|
|
341
|
+
/**
|
|
342
|
+
* A global namespace for `click` event.
|
|
343
|
+
*/
|
|
344
|
+
declare const mouseclickEvent = "click";
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region src/strings/mousedblclickEvent.d.ts
|
|
347
|
+
/**
|
|
348
|
+
* A global namespace for `dblclick` event.
|
|
349
|
+
*/
|
|
350
|
+
declare const mousedblclickEvent = "dblclick";
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region src/strings/mousedownEvent.d.ts
|
|
353
|
+
/**
|
|
354
|
+
* A global namespace for `mousedown` event.
|
|
355
|
+
*/
|
|
356
|
+
declare const mousedownEvent = "mousedown";
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region src/strings/mouseupEvent.d.ts
|
|
359
|
+
/**
|
|
360
|
+
* A global namespace for `mouseup` event.
|
|
361
|
+
*/
|
|
362
|
+
declare const mouseupEvent = "mouseup";
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/strings/mousehoverEvent.d.ts
|
|
365
|
+
/**
|
|
366
|
+
* A global namespace for `hover` event.
|
|
367
|
+
*/
|
|
368
|
+
declare const mousehoverEvent = "hover";
|
|
369
|
+
//#endregion
|
|
370
|
+
//#region src/strings/mouseHoverEvents.d.ts
|
|
371
|
+
/**
|
|
372
|
+
* A global namespace for mouse hover events.
|
|
373
|
+
*/
|
|
374
|
+
declare const mouseHoverEvents: string[];
|
|
375
|
+
//#endregion
|
|
376
|
+
//#region src/strings/mouseenterEvent.d.ts
|
|
377
|
+
/**
|
|
378
|
+
* A global namespace for `mouseenter` event.
|
|
379
|
+
*/
|
|
380
|
+
declare const mouseenterEvent = "mouseenter";
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region src/strings/mouseleaveEvent.d.ts
|
|
383
|
+
/**
|
|
384
|
+
* A global namespace for `mouseleave` event.
|
|
385
|
+
*/
|
|
386
|
+
declare const mouseleaveEvent = "mouseleave";
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/strings/mouseinEvent.d.ts
|
|
389
|
+
/**
|
|
390
|
+
* A global namespace for `mousein` event.
|
|
391
|
+
*/
|
|
392
|
+
declare const mouseinEvent = "mousein";
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region src/strings/mouseoutEvent.d.ts
|
|
395
|
+
/**
|
|
396
|
+
* A global namespace for `mouseout` event.
|
|
397
|
+
*/
|
|
398
|
+
declare const mouseoutEvent = "mouseout";
|
|
399
|
+
//#endregion
|
|
400
|
+
//#region src/strings/mouseoverEvent.d.ts
|
|
401
|
+
/**
|
|
402
|
+
* A global namespace for `mouseover` event.
|
|
403
|
+
*/
|
|
404
|
+
declare const mouseoverEvent = "mouseover";
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/strings/mousemoveEvent.d.ts
|
|
407
|
+
/**
|
|
408
|
+
* A global namespace for `mousemove` event.
|
|
409
|
+
*/
|
|
410
|
+
declare const mousemoveEvent = "mousemove";
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region src/strings/mousewheelEvent.d.ts
|
|
413
|
+
/**
|
|
414
|
+
* A global namespace for `mousewheel` event.
|
|
415
|
+
*/
|
|
416
|
+
declare const mousewheelEvent = "mousewheel";
|
|
417
|
+
//#endregion
|
|
418
|
+
//#region src/strings/touchEvents.d.ts
|
|
419
|
+
/**
|
|
420
|
+
* A global namespace for touch events.
|
|
421
|
+
*/
|
|
422
|
+
declare const touchEvents: {
|
|
423
|
+
start: string;
|
|
424
|
+
end: string;
|
|
425
|
+
move: string;
|
|
426
|
+
cancel: string;
|
|
427
|
+
};
|
|
428
|
+
//#endregion
|
|
429
|
+
//#region src/strings/touchstartEvent.d.ts
|
|
430
|
+
/**
|
|
431
|
+
* A global namespace for `touchstart` event.
|
|
432
|
+
*/
|
|
433
|
+
declare const touchstartEvent = "touchstart";
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region src/strings/touchmoveEvent.d.ts
|
|
436
|
+
/**
|
|
437
|
+
* A global namespace for `touchmove` event.
|
|
438
|
+
*/
|
|
439
|
+
declare const touchmoveEvent = "touchmove";
|
|
440
|
+
//#endregion
|
|
441
|
+
//#region src/strings/touchcancelEvent.d.ts
|
|
442
|
+
/**
|
|
443
|
+
* A global namespace for `touchcancel` event.
|
|
444
|
+
*/
|
|
445
|
+
declare const touchcancelEvent = "touchcancel";
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region src/strings/touchendEvent.d.ts
|
|
448
|
+
/**
|
|
449
|
+
* A global namespace for `touchend` event.
|
|
450
|
+
*/
|
|
451
|
+
declare const touchendEvent = "touchend";
|
|
452
|
+
//#endregion
|
|
453
|
+
//#region src/strings/pointercancelEvent.d.ts
|
|
454
|
+
/**
|
|
455
|
+
* A global namespace for `pointercancel` event.
|
|
456
|
+
*/
|
|
457
|
+
declare const pointercancelEvent = "pointercancel";
|
|
458
|
+
//#endregion
|
|
459
|
+
//#region src/strings/pointerdownEvent.d.ts
|
|
460
|
+
/**
|
|
461
|
+
* A global namespace for `pointerdown` event.
|
|
462
|
+
*/
|
|
463
|
+
declare const pointerdownEvent = "pointerdown";
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/strings/pointerleaveEvent.d.ts
|
|
466
|
+
/**
|
|
467
|
+
* A global namespace for `pointerleave` event.
|
|
468
|
+
*/
|
|
469
|
+
declare const pointerleaveEvent = "pointerleave";
|
|
470
|
+
//#endregion
|
|
471
|
+
//#region src/strings/pointermoveEvent.d.ts
|
|
472
|
+
/**
|
|
473
|
+
* A global namespace for `pointermove` event.
|
|
474
|
+
*/
|
|
475
|
+
declare const pointermoveEvent = "pointermove";
|
|
476
|
+
//#endregion
|
|
477
|
+
//#region src/strings/pointerupEvent.d.ts
|
|
478
|
+
/**
|
|
479
|
+
* A global namespace for `pointerup` event.
|
|
480
|
+
*/
|
|
481
|
+
declare const pointerupEvent = "pointerup";
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region src/strings/focusEvents.d.ts
|
|
484
|
+
/**
|
|
485
|
+
* A global namespace for focus event names.
|
|
486
|
+
*/
|
|
487
|
+
declare const focusEvents: {
|
|
488
|
+
in: string;
|
|
489
|
+
out: string;
|
|
490
|
+
};
|
|
491
|
+
//#endregion
|
|
492
|
+
//#region src/strings/focusEvent.d.ts
|
|
493
|
+
/**
|
|
494
|
+
* A global namespace for `focus` event.
|
|
495
|
+
*/
|
|
496
|
+
declare const focusEvent = "focus";
|
|
497
|
+
//#endregion
|
|
498
|
+
//#region src/strings/focusinEvent.d.ts
|
|
499
|
+
/**
|
|
500
|
+
* A global namespace for `focusin` event.
|
|
501
|
+
*/
|
|
502
|
+
declare const focusinEvent = "focusin";
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region src/strings/focusoutEvent.d.ts
|
|
505
|
+
/**
|
|
506
|
+
* A global namespace for `focusout` event.
|
|
507
|
+
*/
|
|
508
|
+
declare const focusoutEvent = "focusout";
|
|
509
|
+
//#endregion
|
|
510
|
+
//#region src/strings/focusableSelector.d.ts
|
|
511
|
+
declare const focusableSelector = "a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]";
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/strings/gesturechangeEvent.d.ts
|
|
514
|
+
/**
|
|
515
|
+
* A global namespace for `gesturechange` event.
|
|
516
|
+
*/
|
|
517
|
+
declare const gesturechangeEvent = "gesturechange";
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/strings/gestureendEvent.d.ts
|
|
520
|
+
/**
|
|
521
|
+
* A global namespace for `gestureend` event.
|
|
522
|
+
*/
|
|
523
|
+
declare const gestureendEvent = "gestureend";
|
|
524
|
+
//#endregion
|
|
525
|
+
//#region src/strings/gesturestartEvent.d.ts
|
|
526
|
+
/**
|
|
527
|
+
* A global namespace for `gesturestart` event.
|
|
528
|
+
*/
|
|
529
|
+
declare const gesturestartEvent = "gesturestart";
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region src/strings/keyboardEventKeys.d.ts
|
|
532
|
+
/**
|
|
533
|
+
* A global namespace for keyboard event keys.
|
|
534
|
+
*/
|
|
535
|
+
declare const keyboardEventKeys: {
|
|
536
|
+
Backspace: string;
|
|
537
|
+
Tab: string;
|
|
538
|
+
Enter: string;
|
|
539
|
+
Shift: string;
|
|
540
|
+
Control: string;
|
|
541
|
+
Alt: string;
|
|
542
|
+
Pause: string;
|
|
543
|
+
CapsLock: string;
|
|
544
|
+
Escape: string;
|
|
545
|
+
Scape: string;
|
|
546
|
+
ArrowLeft: string;
|
|
547
|
+
ArrowUp: string;
|
|
548
|
+
ArrowRight: string;
|
|
549
|
+
ArrowDown: string;
|
|
550
|
+
Insert: string;
|
|
551
|
+
Delete: string;
|
|
552
|
+
Meta: string;
|
|
553
|
+
ContextMenu: string;
|
|
554
|
+
ScrollLock: string;
|
|
555
|
+
};
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/strings/keydownEvent.d.ts
|
|
558
|
+
/**
|
|
559
|
+
* A global namespace for `keydown` event.
|
|
560
|
+
*/
|
|
561
|
+
declare const keydownEvent = "keydown";
|
|
562
|
+
//#endregion
|
|
563
|
+
//#region src/strings/keyupEvent.d.ts
|
|
564
|
+
/**
|
|
565
|
+
* A global namespace for `keyup` event.
|
|
566
|
+
*/
|
|
567
|
+
declare const keyupEvent = "keyup";
|
|
568
|
+
//#endregion
|
|
569
|
+
//#region src/strings/keypressEvent.d.ts
|
|
570
|
+
/**
|
|
571
|
+
* A global namespace for `keypress` event.
|
|
572
|
+
*/
|
|
573
|
+
declare const keypressEvent = "keypress";
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region src/strings/keyAlt.d.ts
|
|
576
|
+
/**
|
|
577
|
+
* A global namespace for `Alt` key.
|
|
578
|
+
* e.which = 18
|
|
579
|
+
*/
|
|
580
|
+
declare const keyAlt = "Alt";
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/strings/keyArrowDown.d.ts
|
|
583
|
+
/**
|
|
584
|
+
* A global namespace for `ArrowDown` key.
|
|
585
|
+
* e.which = 40 equivalent
|
|
586
|
+
*/
|
|
587
|
+
declare const keyArrowDown = "ArrowDown";
|
|
588
|
+
//#endregion
|
|
589
|
+
//#region src/strings/keyArrowUp.d.ts
|
|
590
|
+
/**
|
|
591
|
+
* A global namespace for `ArrowUp` key.
|
|
592
|
+
* e.which = 38 equivalent
|
|
593
|
+
*/
|
|
594
|
+
declare const keyArrowUp = "ArrowUp";
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/strings/keyArrowLeft.d.ts
|
|
597
|
+
/**
|
|
598
|
+
* A global namespace for `ArrowLeft` key.
|
|
599
|
+
* e.which = 37 equivalent
|
|
600
|
+
*/
|
|
601
|
+
declare const keyArrowLeft = "ArrowLeft";
|
|
602
|
+
//#endregion
|
|
603
|
+
//#region src/strings/keyArrowRight.d.ts
|
|
604
|
+
/**
|
|
605
|
+
* A global namespace for `ArrowRight` key.
|
|
606
|
+
* e.which = 39 equivalent
|
|
607
|
+
*/
|
|
608
|
+
declare const keyArrowRight = "ArrowRight";
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region src/strings/keyBackspace.d.ts
|
|
611
|
+
/**
|
|
612
|
+
* A global namespace for `Backspace` key.
|
|
613
|
+
* e.which === 8 equivalent
|
|
614
|
+
*/
|
|
615
|
+
declare const keyBackspace = "Backspace";
|
|
616
|
+
//#endregion
|
|
617
|
+
//#region src/strings/keyCapsLock.d.ts
|
|
618
|
+
/**
|
|
619
|
+
* A global namespace for `CapsLock` key.
|
|
620
|
+
* e.which = 20 equivalent
|
|
621
|
+
*/
|
|
622
|
+
declare const keyCapsLock = "CapsLock";
|
|
623
|
+
//#endregion
|
|
624
|
+
//#region src/strings/keyControl.d.ts
|
|
625
|
+
/**
|
|
626
|
+
* A global namespace for `Control` key.
|
|
627
|
+
* e.which = 17
|
|
628
|
+
*/
|
|
629
|
+
declare const keyControl = "Control";
|
|
630
|
+
//#endregion
|
|
631
|
+
//#region src/strings/keyDelete.d.ts
|
|
632
|
+
/**
|
|
633
|
+
* A global namespace for `Delete` key.
|
|
634
|
+
* e.which = 46 equivalent
|
|
635
|
+
*/
|
|
636
|
+
declare const keyDelete = "Delete";
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/strings/keyEnter.d.ts
|
|
639
|
+
/**
|
|
640
|
+
* A global namespace for `Enter` key.
|
|
641
|
+
* e.which = 13 equivalent
|
|
642
|
+
*/
|
|
643
|
+
declare const keyEnter = "Enter";
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region src/strings/keyNumpadEnter.d.ts
|
|
646
|
+
/**
|
|
647
|
+
* A global namespace for `Enter` key.
|
|
648
|
+
* e.which = 13 equivalent
|
|
649
|
+
*/
|
|
650
|
+
declare const keyNumpadEnter = "NumpadEnter";
|
|
651
|
+
//#endregion
|
|
652
|
+
//#region src/strings/keyEscape.d.ts
|
|
653
|
+
/**
|
|
654
|
+
* A global namespace for `Escape` key.
|
|
655
|
+
* e.which = 27 equivalent
|
|
656
|
+
*/
|
|
657
|
+
declare const keyEscape = "Escape";
|
|
658
|
+
//#endregion
|
|
659
|
+
//#region src/strings/keyInsert.d.ts
|
|
660
|
+
/**
|
|
661
|
+
* A global namespace for `Insert` key.
|
|
662
|
+
* e.which = 45 equivalent
|
|
663
|
+
*/
|
|
664
|
+
declare const keyInsert = "Insert";
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region src/strings/keyMeta.d.ts
|
|
667
|
+
/**
|
|
668
|
+
* A global namespace for `Meta` key.
|
|
669
|
+
* e.which = 93 equivalent
|
|
670
|
+
*/
|
|
671
|
+
declare const keyMeta = "Meta";
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region src/strings/keyPause.d.ts
|
|
674
|
+
/**
|
|
675
|
+
* A global namespace for `Pause` key.
|
|
676
|
+
* e.which = 19
|
|
677
|
+
*/
|
|
678
|
+
declare const keyPause = "Pause";
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region src/strings/keyScrollLock.d.ts
|
|
681
|
+
/**
|
|
682
|
+
* A global namespace for `ScrollLock` key.
|
|
683
|
+
* e.which = 145 equivalent
|
|
684
|
+
*/
|
|
685
|
+
declare const keyScrollLock = "ScrollLock";
|
|
686
|
+
//#endregion
|
|
687
|
+
//#region src/strings/keyShift.d.ts
|
|
688
|
+
/**
|
|
689
|
+
* A global namespace for `Shift` key.
|
|
690
|
+
* e.which = 16
|
|
691
|
+
*/
|
|
692
|
+
declare const keyShift = "Shift";
|
|
693
|
+
//#endregion
|
|
694
|
+
//#region src/strings/keySpace.d.ts
|
|
695
|
+
/**
|
|
696
|
+
* A global namespace for `Space` key.
|
|
697
|
+
* e.which = 32 equivalent
|
|
698
|
+
*/
|
|
699
|
+
declare const keySpace = "Space";
|
|
700
|
+
//#endregion
|
|
701
|
+
//#region src/strings/keyTab.d.ts
|
|
702
|
+
/**
|
|
703
|
+
* A global namespace for `Tab` key.
|
|
704
|
+
* e.which = 9 equivalent
|
|
705
|
+
*/
|
|
706
|
+
declare const keyTab = "Tab";
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region src/strings/animationDuration.d.ts
|
|
709
|
+
/**
|
|
710
|
+
* A global namespace for 'animationDuration' string.
|
|
711
|
+
*/
|
|
712
|
+
declare const animationDuration = "animationDuration";
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region src/strings/animationDelay.d.ts
|
|
715
|
+
/**
|
|
716
|
+
* A global namespace for 'animationDelay' string.
|
|
717
|
+
*/
|
|
718
|
+
declare const animationDelay = "animationDelay";
|
|
719
|
+
//#endregion
|
|
720
|
+
//#region src/strings/animationName.d.ts
|
|
721
|
+
/**
|
|
722
|
+
* A global namespace for 'animationName' string.
|
|
723
|
+
*/
|
|
724
|
+
declare const animationName = "animationName";
|
|
725
|
+
//#endregion
|
|
726
|
+
//#region src/strings/animationEndEvent.d.ts
|
|
727
|
+
/**
|
|
728
|
+
* A global namespace for 'animationend' string.
|
|
729
|
+
*/
|
|
730
|
+
declare const animationEndEvent = "animationend";
|
|
731
|
+
//#endregion
|
|
732
|
+
//#region src/strings/transitionDuration.d.ts
|
|
733
|
+
/**
|
|
734
|
+
* A global namespace for 'transitionDuration' string.
|
|
735
|
+
*/
|
|
736
|
+
declare const transitionDuration = "transitionDuration";
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region src/strings/transitionDelay.d.ts
|
|
739
|
+
/**
|
|
740
|
+
* A global namespace for 'transitionDelay' string.
|
|
741
|
+
*/
|
|
742
|
+
declare const transitionDelay = "transitionDelay";
|
|
743
|
+
//#endregion
|
|
744
|
+
//#region src/strings/transitionEndEvent.d.ts
|
|
745
|
+
/**
|
|
746
|
+
* A global namespace for 'transitionend' string.
|
|
747
|
+
*/
|
|
748
|
+
declare const transitionEndEvent = "transitionend";
|
|
749
|
+
//#endregion
|
|
750
|
+
//#region src/strings/transitionProperty.d.ts
|
|
751
|
+
/**
|
|
752
|
+
* A global namespace for `transitionProperty` string for modern browsers.
|
|
753
|
+
*/
|
|
754
|
+
declare const transitionProperty = "transitionProperty";
|
|
755
|
+
//#endregion
|
|
756
|
+
//#region src/strings/addEventListener.d.ts
|
|
757
|
+
/**
|
|
758
|
+
* A global namespace for 'addEventListener' string.
|
|
759
|
+
*/
|
|
760
|
+
declare const addEventListener = "addEventListener";
|
|
761
|
+
//#endregion
|
|
762
|
+
//#region src/strings/removeEventListener.d.ts
|
|
763
|
+
/**
|
|
764
|
+
* A global namespace for 'removeEventListener' string.
|
|
765
|
+
*/
|
|
766
|
+
declare const removeEventListener = "removeEventListener";
|
|
767
|
+
//#endregion
|
|
768
|
+
//#region src/strings/bezierEasings.d.ts
|
|
769
|
+
/**
|
|
770
|
+
* A global namespace for predefined
|
|
771
|
+
* CSS3 'cubic-bezier()' easing functions.
|
|
772
|
+
*/
|
|
773
|
+
declare const bezierEasings: {
|
|
774
|
+
linear: string;
|
|
775
|
+
easingSinusoidalIn: string;
|
|
776
|
+
easingSinusoidalOut: string;
|
|
777
|
+
easingSinusoidalInOut: string;
|
|
778
|
+
easingQuadraticIn: string;
|
|
779
|
+
easingQuadraticOut: string;
|
|
780
|
+
easingQuadraticInOut: string;
|
|
781
|
+
easingCubicIn: string;
|
|
782
|
+
easingCubicOut: string;
|
|
783
|
+
easingCubicInOut: string;
|
|
784
|
+
easingQuarticIn: string;
|
|
785
|
+
easingQuarticOut: string;
|
|
786
|
+
easingQuarticInOut: string;
|
|
787
|
+
easingQuinticIn: string;
|
|
788
|
+
easingQuinticOut: string;
|
|
789
|
+
easingQuinticInOut: string;
|
|
790
|
+
easingExponentialIn: string;
|
|
791
|
+
easingExponentialOut: string;
|
|
792
|
+
easingExponentialInOut: string;
|
|
793
|
+
easingCircularIn: string;
|
|
794
|
+
easingCircularOut: string;
|
|
795
|
+
easingCircularInOut: string;
|
|
796
|
+
easingBackIn: string;
|
|
797
|
+
easingBackOut: string;
|
|
798
|
+
easingBackInOut: string;
|
|
799
|
+
};
|
|
800
|
+
//#endregion
|
|
801
|
+
//#region src/strings/offsetHeight.d.ts
|
|
802
|
+
/**
|
|
803
|
+
* A global namespace for `offsetHeight` property.
|
|
804
|
+
*/
|
|
805
|
+
declare const offsetHeight = "offsetHeight";
|
|
806
|
+
//#endregion
|
|
807
|
+
//#region src/strings/offsetWidth.d.ts
|
|
808
|
+
/**
|
|
809
|
+
* A global namespace for `offsetWidth` property.
|
|
810
|
+
*/
|
|
811
|
+
declare const offsetWidth = "offsetWidth";
|
|
812
|
+
//#endregion
|
|
813
|
+
//#region src/strings/scrollHeight.d.ts
|
|
814
|
+
/**
|
|
815
|
+
* A global namespace for `scrollHeight` property.
|
|
816
|
+
*/
|
|
817
|
+
declare const scrollHeight = "scrollHeight";
|
|
818
|
+
//#endregion
|
|
819
|
+
//#region src/strings/scrollWidth.d.ts
|
|
820
|
+
/**
|
|
821
|
+
* A global namespace for `scrollWidth` property.
|
|
822
|
+
*/
|
|
823
|
+
declare const scrollWidth = "scrollWidth";
|
|
824
|
+
//#endregion
|
|
825
|
+
//#region src/strings/tabindex.d.ts
|
|
826
|
+
/**
|
|
827
|
+
* A global namespace for `touchcancel` event.
|
|
828
|
+
*/
|
|
829
|
+
declare const tabindex = "tabindex";
|
|
830
|
+
//#endregion
|
|
831
|
+
//#region src/interface/navigatorUA.d.ts
|
|
832
|
+
// https://github.com/lukewarlow/user-agent-data-types/blob/master/index.d.ts
|
|
833
|
+
declare interface NavigatorUABrand {
|
|
834
|
+
readonly brand: string;
|
|
835
|
+
readonly version: string;
|
|
836
|
+
}
|
|
837
|
+
declare interface NavigatorUAData {
|
|
838
|
+
readonly brands: NavigatorUABrand[];
|
|
839
|
+
readonly mobile: boolean;
|
|
840
|
+
readonly platform: string;
|
|
841
|
+
}
|
|
842
|
+
declare interface NavigatorUA extends Navigator {
|
|
843
|
+
readonly userAgentData: NavigatorUAData;
|
|
844
|
+
}
|
|
845
|
+
//#endregion
|
|
846
|
+
//#region src/strings/userAgentData.d.ts
|
|
847
|
+
/**
|
|
848
|
+
* A global namespace for `userAgentData` object.
|
|
849
|
+
*/
|
|
850
|
+
declare const userAgentData: NavigatorUA["userAgentData"];
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/strings/userAgent.d.ts
|
|
853
|
+
/**
|
|
854
|
+
* A global namespace for `navigator.userAgent` string.
|
|
855
|
+
*/
|
|
856
|
+
declare const userAgent: string;
|
|
857
|
+
//#endregion
|
|
858
|
+
//#region src/boolean/isMobile.d.ts
|
|
859
|
+
/**
|
|
860
|
+
* An accessor that checks for mobile detection.
|
|
861
|
+
*/
|
|
862
|
+
declare const isMobile: () => boolean;
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region src/boolean/isApple.d.ts
|
|
865
|
+
/**
|
|
866
|
+
* An accessor that checks for Apple browsers.
|
|
867
|
+
*/
|
|
868
|
+
declare const isApple: () => boolean;
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/boolean/isFirefox.d.ts
|
|
871
|
+
/**
|
|
872
|
+
* An accessor that checks for Gecko browsers. When writing this file,
|
|
873
|
+
* Gecko was not supporting `userAgentData`.
|
|
874
|
+
*/
|
|
875
|
+
declare const isFirefox: () => boolean;
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region src/boolean/isWebKit.d.ts
|
|
878
|
+
declare const isWebKit: () => boolean;
|
|
879
|
+
//#endregion
|
|
880
|
+
//#region src/boolean/support3DTransform.d.ts
|
|
881
|
+
/**
|
|
882
|
+
* An accessor that checks for CSS3 3D transform support.
|
|
883
|
+
*/
|
|
884
|
+
declare const support3DTransform: () => boolean;
|
|
885
|
+
//#endregion
|
|
886
|
+
//#region src/boolean/supportPassive.d.ts
|
|
887
|
+
/**
|
|
888
|
+
* An accessor that checks for passive events support,
|
|
889
|
+
* in general event options are not suited for scroll prevention.
|
|
890
|
+
*
|
|
891
|
+
* @see https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md#feature-detection
|
|
892
|
+
*/
|
|
893
|
+
declare const supportPassive: () => boolean;
|
|
894
|
+
//#endregion
|
|
895
|
+
//#region src/boolean/supportTransform.d.ts
|
|
896
|
+
/**
|
|
897
|
+
* An accessor that checks for CSS3 transform support.
|
|
898
|
+
*/
|
|
899
|
+
declare const supportTransform: () => boolean;
|
|
900
|
+
//#endregion
|
|
901
|
+
//#region src/boolean/supportTouch.d.ts
|
|
902
|
+
/**
|
|
903
|
+
* An accessor that checks for touch events support.
|
|
904
|
+
*/
|
|
905
|
+
declare const supportTouch: () => boolean;
|
|
906
|
+
//#endregion
|
|
907
|
+
//#region src/boolean/supportAnimation.d.ts
|
|
908
|
+
/**
|
|
909
|
+
* An accessor that checks for CSS3 animation support.
|
|
910
|
+
*/
|
|
911
|
+
declare const supportAnimation: () => boolean;
|
|
912
|
+
//#endregion
|
|
913
|
+
//#region src/boolean/supportTransition.d.ts
|
|
914
|
+
/**
|
|
915
|
+
* An accessor that checks for CSS3 transition support.
|
|
916
|
+
*/
|
|
917
|
+
declare const supportTransition: () => boolean;
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region src/attr/getAttribute.d.ts
|
|
920
|
+
/**
|
|
921
|
+
* Shortcut for `Element.getAttribute()` method.
|
|
922
|
+
*
|
|
923
|
+
* @param element target element
|
|
924
|
+
* @param att attribute name
|
|
925
|
+
* @returns attribute value
|
|
926
|
+
*/
|
|
927
|
+
declare const getAttribute: (element: Element, att: string) => string | null;
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region src/attr/getAttributeNS.d.ts
|
|
930
|
+
/**
|
|
931
|
+
* Shortcut for `Element.getAttributeNS()` method.
|
|
932
|
+
*
|
|
933
|
+
* @param ns attribute namespace
|
|
934
|
+
* @param element target element
|
|
935
|
+
* @param att attribute name
|
|
936
|
+
* @returns attribute value
|
|
937
|
+
*/
|
|
938
|
+
declare const getAttributeNS: (ns: string, element: Element, att: string) => string | null;
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region src/attr/hasAttribute.d.ts
|
|
941
|
+
/**
|
|
942
|
+
* Shortcut for `Element.hasAttribute()` method.
|
|
943
|
+
*
|
|
944
|
+
* @param element target element
|
|
945
|
+
* @param att attribute name
|
|
946
|
+
* @returns the query result
|
|
947
|
+
*/
|
|
948
|
+
declare const hasAttribute: (element: Element, att: string) => boolean;
|
|
949
|
+
//#endregion
|
|
950
|
+
//#region src/attr/hasAttributeNS.d.ts
|
|
951
|
+
/**
|
|
952
|
+
* Shortcut for `Element.hasAttributeNS()` method.
|
|
953
|
+
*
|
|
954
|
+
* @param ns attribute namespace
|
|
955
|
+
* @param element target element
|
|
956
|
+
* @param att attribute name
|
|
957
|
+
* @returns the query result
|
|
958
|
+
*/
|
|
959
|
+
declare const hasAttributeNS: (ns: string, element: Element, att: string) => boolean;
|
|
960
|
+
//#endregion
|
|
961
|
+
//#region src/attr/setAttribute.d.ts
|
|
962
|
+
/**
|
|
963
|
+
* Shortcut for `Element.setAttribute()` method.
|
|
964
|
+
*
|
|
965
|
+
* @param element target element
|
|
966
|
+
* @param att attribute name
|
|
967
|
+
* @param value attribute value
|
|
968
|
+
*/
|
|
969
|
+
declare const setAttribute: (element: Element, att: string, value: string) => void;
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region src/attr/setAttributeNS.d.ts
|
|
972
|
+
/**
|
|
973
|
+
* Shortcut for `Element.setAttributeNS()` method.
|
|
974
|
+
*
|
|
975
|
+
* @param ns attribute namespace
|
|
976
|
+
* @param element target element
|
|
977
|
+
* @param att attribute name
|
|
978
|
+
* @param value attribute value
|
|
979
|
+
*/
|
|
980
|
+
declare const setAttributeNS: (ns: string, element: Element, att: string, value: string) => void;
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region src/attr/removeAttribute.d.ts
|
|
983
|
+
/**
|
|
984
|
+
* Shortcut for `Element.removeAttribute()` method.
|
|
985
|
+
*
|
|
986
|
+
* @param element target element
|
|
987
|
+
* @param att attribute name
|
|
988
|
+
*/
|
|
989
|
+
declare const removeAttribute: (element: Element, att: string) => void;
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region src/attr/removeAttributeNS.d.ts
|
|
992
|
+
/**
|
|
993
|
+
* Shortcut for `Element.removeAttributeNS()` method.
|
|
994
|
+
*
|
|
995
|
+
* @param ns attribute namespace
|
|
996
|
+
* @param element target element
|
|
997
|
+
* @param att attribute name
|
|
998
|
+
*/
|
|
999
|
+
declare const removeAttributeNS: (ns: string, element: Element, att: string) => void;
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region src/class/addClass.d.ts
|
|
1002
|
+
/**
|
|
1003
|
+
* Add one or more CSS classes to `Element.classList`.
|
|
1004
|
+
*
|
|
1005
|
+
* @param element target
|
|
1006
|
+
* @param classNAME to add
|
|
1007
|
+
*/
|
|
1008
|
+
declare const addClass: (element: Element, ...classNAME: string[]) => void;
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/class/removeClass.d.ts
|
|
1011
|
+
/**
|
|
1012
|
+
* Remove one or more classes from `Element.classList`.
|
|
1013
|
+
*
|
|
1014
|
+
* @param element target
|
|
1015
|
+
* @param classNAME to remove
|
|
1016
|
+
*/
|
|
1017
|
+
declare const removeClass: (element: Element, ...classNAME: string[]) => void;
|
|
1018
|
+
//#endregion
|
|
1019
|
+
//#region src/class/hasClass.d.ts
|
|
1020
|
+
/**
|
|
1021
|
+
* Check class in `Element.classList`.
|
|
1022
|
+
*
|
|
1023
|
+
* @param element target
|
|
1024
|
+
* @param classNAME to check
|
|
1025
|
+
*/
|
|
1026
|
+
declare const hasClass: (element: Element, classNAME: string) => boolean;
|
|
1027
|
+
//#endregion
|
|
1028
|
+
//#region src/event/on.d.ts
|
|
1029
|
+
/**
|
|
1030
|
+
* Add eventListener to an `EventTarget` object.
|
|
1031
|
+
*/
|
|
1032
|
+
declare const on: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region src/event/off.d.ts
|
|
1035
|
+
/**
|
|
1036
|
+
* Remove eventListener from an `EventTarget` object.
|
|
1037
|
+
*/
|
|
1038
|
+
declare const off: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
|
|
1039
|
+
//#endregion
|
|
1040
|
+
//#region src/event/one.d.ts
|
|
1041
|
+
/**
|
|
1042
|
+
* Add an `eventListener` to an `EventTarget`
|
|
1043
|
+
* element and remove it once callback is called.
|
|
1044
|
+
*/
|
|
1045
|
+
declare const one: <T extends EventTarget, L = EventListener>(element: T, eventName: string, listener: L, options?: AddEventListenerOptions) => void;
|
|
1046
|
+
//#endregion
|
|
1047
|
+
//#region src/blocks/documentBody.d.ts
|
|
1048
|
+
/**
|
|
1049
|
+
* A global namespace for `document.body`.
|
|
1050
|
+
*/
|
|
1051
|
+
declare const documentBody: HTMLElement;
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region src/blocks/documentElement.d.ts
|
|
1054
|
+
/**
|
|
1055
|
+
* A global namespace for `document.documentElement` or the `<HTML>`.
|
|
1056
|
+
*/
|
|
1057
|
+
declare const documentElement: HTMLElement;
|
|
1058
|
+
//#endregion
|
|
1059
|
+
//#region src/blocks/documentHead.d.ts
|
|
1060
|
+
/**
|
|
1061
|
+
* A global namespace for `document.head`.
|
|
1062
|
+
*/
|
|
1063
|
+
declare const documentHead: HTMLHeadElement;
|
|
1064
|
+
//#endregion
|
|
1065
|
+
//#region src/misc/ArrayFrom.d.ts
|
|
1066
|
+
/**
|
|
1067
|
+
* Shortie for `Array.from()` static method.
|
|
1068
|
+
* The utility should also work with any typed arrays
|
|
1069
|
+
* like Float64Array or Int32Array.
|
|
1070
|
+
*
|
|
1071
|
+
* @param arr array-like iterable object
|
|
1072
|
+
* @returns a new array from iterable object
|
|
1073
|
+
*/
|
|
1074
|
+
declare const ArrayFrom: <T>(arr: ArrayLike<T> | Iterable<T>) => T[];
|
|
1075
|
+
//#endregion
|
|
1076
|
+
//#region src/misc/data.d.ts
|
|
1077
|
+
/**
|
|
1078
|
+
* An interface for web components background data.
|
|
1079
|
+
*
|
|
1080
|
+
* @see https://github.com/thednp/bootstrap.native/blob/master/src/components/base-component.js
|
|
1081
|
+
*/
|
|
1082
|
+
declare const Data: {
|
|
1083
|
+
data: Map<string, Map<Element, unknown>>;
|
|
1084
|
+
/**
|
|
1085
|
+
* Sets web components data.
|
|
1086
|
+
*
|
|
1087
|
+
* @param element target element
|
|
1088
|
+
* @param component the component's name or a unique key
|
|
1089
|
+
* @param instance the component instance
|
|
1090
|
+
*/
|
|
1091
|
+
set: <T>(element: Element, component: string, instance: T) => void;
|
|
1092
|
+
/**
|
|
1093
|
+
* Returns all instances for specified component.
|
|
1094
|
+
*
|
|
1095
|
+
* @param component the component's name or a unique key
|
|
1096
|
+
* @returns all the component instances
|
|
1097
|
+
*/
|
|
1098
|
+
getAllFor: <T>(component: string) => Map<Element, T> | null;
|
|
1099
|
+
/**
|
|
1100
|
+
* Returns the instance associated with the target.
|
|
1101
|
+
*
|
|
1102
|
+
* @param element target element
|
|
1103
|
+
* @param component the component's name or a unique key
|
|
1104
|
+
* @returns the instance
|
|
1105
|
+
*/
|
|
1106
|
+
get: <T>(element: Element, component: string) => T | null;
|
|
1107
|
+
/**
|
|
1108
|
+
* Removes web components data.
|
|
1109
|
+
*
|
|
1110
|
+
* @param element target element
|
|
1111
|
+
* @param component the component's name or a unique key
|
|
1112
|
+
*/
|
|
1113
|
+
remove: <T>(element: Element, component: string) => void;
|
|
1114
|
+
};
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region src/misc/getInstance.d.ts
|
|
1117
|
+
/**
|
|
1118
|
+
* An alias for `Data.get()`.
|
|
1119
|
+
*/
|
|
1120
|
+
declare const getInstance: <T>(target: Element, component: string) => T | null;
|
|
1121
|
+
//#endregion
|
|
1122
|
+
//#region src/misc/capitalize.d.ts
|
|
1123
|
+
/**
|
|
1124
|
+
* Capitalize first character in a string.
|
|
1125
|
+
* @param input source string
|
|
1126
|
+
*/
|
|
1127
|
+
declare const capitalize: (input: string) => string;
|
|
1128
|
+
//#endregion
|
|
1129
|
+
//#region src/misc/camelCase.d.ts
|
|
1130
|
+
/**
|
|
1131
|
+
* Transform a string to camel case.
|
|
1132
|
+
* @param input source string
|
|
1133
|
+
*/
|
|
1134
|
+
declare const camelCase: (input: string) => string;
|
|
1135
|
+
//#endregion
|
|
1136
|
+
//#region src/misc/createElement.d.ts
|
|
1137
|
+
/**
|
|
1138
|
+
* Shortie for `document.createElement` method
|
|
1139
|
+
* which allows you to create a new `HTMLElement` for a given `tagName`
|
|
1140
|
+
* or based on an object with specific non-readonly attributes with string values:
|
|
1141
|
+
* `id`, `className`, `textContent`, `style`, etc.
|
|
1142
|
+
*
|
|
1143
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
|
|
1144
|
+
*
|
|
1145
|
+
* @param param `tagName` or object
|
|
1146
|
+
* @return a new `HTMLElement`
|
|
1147
|
+
*/
|
|
1148
|
+
declare const createElement: <T extends HTMLElement>(param?: string | Partial<T>) => T | undefined;
|
|
1149
|
+
//#endregion
|
|
1150
|
+
//#region src/misc/createElementNS.d.ts
|
|
1151
|
+
/**
|
|
1152
|
+
* Shortie for `document.createElementNS` method
|
|
1153
|
+
* which allows you to create a new `Element` for a given `tagName`
|
|
1154
|
+
* or based on an object with specific non-readonly attributes with string values:
|
|
1155
|
+
* `id`, `className`, `textContent`, `style`, etc.
|
|
1156
|
+
* Note: some elements resulted from this function call may not be compatible with
|
|
1157
|
+
* some attributes.
|
|
1158
|
+
*
|
|
1159
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS
|
|
1160
|
+
*
|
|
1161
|
+
* @param ns `namespaceURI` to associate with the new `Element`
|
|
1162
|
+
* @param param `tagName` or object
|
|
1163
|
+
* @return a new `Element`
|
|
1164
|
+
*/
|
|
1165
|
+
declare const createElementNS: <T extends Element>(ns: string, param?: string | Partial<T>) => T | undefined;
|
|
1166
|
+
//#endregion
|
|
1167
|
+
//#region src/misc/dispatchEvent.d.ts
|
|
1168
|
+
/**
|
|
1169
|
+
* Shortcut for the `Element.dispatchEvent(Event)` method.
|
|
1170
|
+
*
|
|
1171
|
+
* @param element is the target
|
|
1172
|
+
* @param event is the `Event` object
|
|
1173
|
+
*/
|
|
1174
|
+
declare const dispatchEvent: (element: EventTarget, event: Event) => boolean;
|
|
1175
|
+
//#endregion
|
|
1176
|
+
//#region src/misc/distinct.d.ts
|
|
1177
|
+
/**
|
|
1178
|
+
* JavaScript `Array` distinct.
|
|
1179
|
+
*
|
|
1180
|
+
* @see https://codeburst.io/javascript-array-distinct-5edc93501dc4
|
|
1181
|
+
*
|
|
1182
|
+
* @example
|
|
1183
|
+
* ```
|
|
1184
|
+
* [0,1,1,2].filter(distinct)
|
|
1185
|
+
* // => [0,1,2]
|
|
1186
|
+
* ```
|
|
1187
|
+
* @param value array item value
|
|
1188
|
+
* @param index array item index
|
|
1189
|
+
* @param arr a clone of the target array
|
|
1190
|
+
* @returns the query result
|
|
1191
|
+
*/
|
|
1192
|
+
declare const distinct: <T>(value: T, index: number, arr: T[]) => boolean;
|
|
1193
|
+
//#endregion
|
|
1194
|
+
//#region src/misc/emulateAnimationEnd.d.ts
|
|
1195
|
+
/**
|
|
1196
|
+
* Utility to make sure callbacks are consistently
|
|
1197
|
+
* called when animation ends.
|
|
1198
|
+
*
|
|
1199
|
+
* @param element target
|
|
1200
|
+
* @param handler `animationend` callback
|
|
1201
|
+
*/
|
|
1202
|
+
declare const emulateAnimationEnd: (element: Element, handler: EventListener) => void;
|
|
1203
|
+
//#endregion
|
|
1204
|
+
//#region src/misc/emulateTransitionEnd.d.ts
|
|
1205
|
+
/**
|
|
1206
|
+
* Utility to make sure callbacks are consistently
|
|
1207
|
+
* called when transition ends.
|
|
1208
|
+
*
|
|
1209
|
+
* @param element element target
|
|
1210
|
+
* @param handler `transitionend` callback
|
|
1211
|
+
*/
|
|
1212
|
+
declare const emulateTransitionEnd: (element: Element, handler: EventListener) => void;
|
|
1213
|
+
//#endregion
|
|
1214
|
+
//#region src/misc/Float32ArrayFrom.d.ts
|
|
1215
|
+
/**
|
|
1216
|
+
* Shortcut for `Float32Array.from()` static method.
|
|
1217
|
+
*
|
|
1218
|
+
* @param arr array-like iterable object
|
|
1219
|
+
* @returns a new Float32Array
|
|
1220
|
+
*/
|
|
1221
|
+
declare const Float32ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float32Array;
|
|
1222
|
+
//#endregion
|
|
1223
|
+
//#region src/misc/Float64ArrayFrom.d.ts
|
|
1224
|
+
/**
|
|
1225
|
+
* Shortcut for `Float64Array.from()` static method.
|
|
1226
|
+
*
|
|
1227
|
+
* @param arr array-like iterable object
|
|
1228
|
+
* @returns a new Float64Array
|
|
1229
|
+
*/
|
|
1230
|
+
declare const Float64ArrayFrom: (arr: ArrayLike<number> | Iterable<number>) => Float64Array;
|
|
1231
|
+
//#endregion
|
|
1232
|
+
//#region src/misc/focus.d.ts
|
|
1233
|
+
/**
|
|
1234
|
+
* Shortie for `HTMLOrSVGElement.focus()` method.
|
|
1235
|
+
*
|
|
1236
|
+
* @param element is the target
|
|
1237
|
+
* @param options allows to pass additional options such as `preventScroll: boolean`
|
|
1238
|
+
*/
|
|
1239
|
+
declare const focus: (element: HTMLOrSVGElement, options?: FocusOptions) => void;
|
|
1240
|
+
//#endregion
|
|
1241
|
+
//#region src/misc/kebabCase.d.ts
|
|
1242
|
+
/**
|
|
1243
|
+
* Transform a string to kebab case.
|
|
1244
|
+
* @param input source string
|
|
1245
|
+
*/
|
|
1246
|
+
declare const kebabCase: (input: string) => string;
|
|
1247
|
+
//#endregion
|
|
1248
|
+
//#region src/misc/noop.d.ts
|
|
1249
|
+
/** A generic function with empty body. */
|
|
1250
|
+
declare const noop: () => void;
|
|
1251
|
+
//#endregion
|
|
1252
|
+
//#region src/misc/normalizeOptions.d.ts
|
|
1253
|
+
/**
|
|
1254
|
+
* Utility to normalize component options.
|
|
1255
|
+
*
|
|
1256
|
+
* @param element target
|
|
1257
|
+
* @param defaultOps component default options
|
|
1258
|
+
* @param inputOps component instance options
|
|
1259
|
+
* @param ns component namespace
|
|
1260
|
+
* @return normalized component options object
|
|
1261
|
+
*/
|
|
1262
|
+
declare const normalizeOptions: <T extends {
|
|
1263
|
+
[key: string]: unknown;
|
|
1264
|
+
}>(element: Element, defaultOps: T, inputOps: Partial<T>, ns?: string) => T;
|
|
1265
|
+
//#endregion
|
|
1266
|
+
//#region src/interface/fn.d.ts
|
|
1267
|
+
type Fn = (...args: unknown[]) => unknown;
|
|
1268
|
+
//#endregion
|
|
1269
|
+
//#region src/misc/normalizeValue.d.ts
|
|
1270
|
+
type NormalValue = boolean | number | string | Fn | null;
|
|
1271
|
+
/**
|
|
1272
|
+
* Utility to normalize component options
|
|
1273
|
+
*
|
|
1274
|
+
* @param value the input value
|
|
1275
|
+
* @return the normalized value
|
|
1276
|
+
*/
|
|
1277
|
+
declare const normalizeValue: (value?: unknown) => NormalValue;
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region src/misc/ObjectAssign.d.ts
|
|
1280
|
+
/**
|
|
1281
|
+
* Overloads for Object.assign.
|
|
1282
|
+
*
|
|
1283
|
+
* @see https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/object-assign/index.d.ts
|
|
1284
|
+
*/
|
|
1285
|
+
declare function ObjectAssignTyped<T, U>(target: T, source: U): T & U;
|
|
1286
|
+
declare function ObjectAssignTyped<T, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
1287
|
+
declare function ObjectAssignTyped<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
1288
|
+
declare function ObjectAssignTyped<T, U, V, W, Q>(target: T, source1: U, source2: V, source3: W, source4: Q): T & U & V & W & Q;
|
|
1289
|
+
declare function ObjectAssignTyped<T, U, V, W, Q, R>(target: T, source1: U, source2: V, source3: W, source4: Q, source5: R): T & U & V & W & Q & R;
|
|
1290
|
+
declare function ObjectAssignTyped(target: unknown, ...sources: unknown[]): unknown;
|
|
1291
|
+
/**
|
|
1292
|
+
* Shortcut for `Object.assign()` static method.
|
|
1293
|
+
*
|
|
1294
|
+
* @param obj a target object
|
|
1295
|
+
* @param source source object(s)
|
|
1296
|
+
* @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
|
|
1297
|
+
*/
|
|
1298
|
+
declare const ObjectAssign: typeof ObjectAssignTyped;
|
|
1299
|
+
//#endregion
|
|
1300
|
+
//#region src/misc/ObjectEntries.d.ts
|
|
1301
|
+
/**
|
|
1302
|
+
* Shortcut for `Object.entries()` static method.
|
|
1303
|
+
*
|
|
1304
|
+
* @param obj a target object
|
|
1305
|
+
* @returns the entries of an object in an array format [key, value][]
|
|
1306
|
+
* @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
|
|
1307
|
+
*/
|
|
1308
|
+
declare const ObjectEntries: <O extends Record<keyof O, unknown>>(obj: O) => [keyof O, O[keyof O]][];
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region src/misc/ObjectHasOwn.d.ts
|
|
1311
|
+
/**
|
|
1312
|
+
* A shortcut to `Object.hasOwn()` static method to work
|
|
1313
|
+
* with regular `Object` elements.
|
|
1314
|
+
*
|
|
1315
|
+
* @see https://fettblog.eu/typescript-hasownproperty/
|
|
1316
|
+
* @param obj the target object
|
|
1317
|
+
* @param prop the property to check
|
|
1318
|
+
* @returns the query result
|
|
1319
|
+
*/
|
|
1320
|
+
declare const ObjectHasOwn: <T extends object, K extends PropertyKey>(obj: T, prop: K) => obj is T & Record<K, unknown>;
|
|
1321
|
+
//#endregion
|
|
1322
|
+
//#region src/misc/ObjectKeys.d.ts
|
|
1323
|
+
/**
|
|
1324
|
+
* Shortcut for `Object.keys()` static method.
|
|
1325
|
+
*
|
|
1326
|
+
* @param obj a target object
|
|
1327
|
+
* @returns an array with object keys
|
|
1328
|
+
* @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
|
|
1329
|
+
*/
|
|
1330
|
+
declare const ObjectKeys: <O extends Record<keyof O, unknown>>(obj: O) => (keyof O)[];
|
|
1331
|
+
//#endregion
|
|
1332
|
+
//#region src/misc/ObjectValues.d.ts
|
|
1333
|
+
/**
|
|
1334
|
+
* Shortcut for `Object.values()` static method.
|
|
1335
|
+
*
|
|
1336
|
+
* @param obj a target object
|
|
1337
|
+
* @returns an array with the object values
|
|
1338
|
+
* @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
|
|
1339
|
+
*/
|
|
1340
|
+
declare const ObjectValues: <O extends Record<string, unknown>>(obj: O) => O[keyof O][];
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region src/misc/ObjectFromEntries.d.ts
|
|
1343
|
+
/**
|
|
1344
|
+
* Shortcut for `Object.fromEntries()` static method.
|
|
1345
|
+
*
|
|
1346
|
+
* @param entries a target entries object
|
|
1347
|
+
* @returns a new Object created from the specified entries in array format [key, value][]
|
|
1348
|
+
* @see https://github.com/devinrhode2/ObjectTyped/blob/master/src/index.ts
|
|
1349
|
+
*/
|
|
1350
|
+
declare const ObjectFromEntries: <K extends string, V>(entries: [K, V][]) => Record<K, V>;
|
|
1351
|
+
//#endregion
|
|
1352
|
+
//#region src/interface/originalEvent.d.ts
|
|
1353
|
+
declare interface OriginalEvent extends CustomEvent<unknown> {
|
|
1354
|
+
readonly type: string;
|
|
1355
|
+
relatedTarget?: EventTarget & HTMLElement;
|
|
1356
|
+
}
|
|
1357
|
+
//#endregion
|
|
1358
|
+
//#region src/misc/createCustomEvent.d.ts
|
|
1359
|
+
/**
|
|
1360
|
+
* Returns a namespaced `CustomEvent` specific to each component.
|
|
1361
|
+
*
|
|
1362
|
+
* @param eventType Event.type
|
|
1363
|
+
* @param config Event.options | Event.properties
|
|
1364
|
+
* @returns a new namespaced event
|
|
1365
|
+
*/
|
|
1366
|
+
declare const createCustomEvent: <O extends unknown & Record<string, unknown>, T extends OriginalEvent>(eventType: string, config?: O) => T;
|
|
1367
|
+
//#endregion
|
|
1368
|
+
//#region src/misc/passiveHandler.d.ts
|
|
1369
|
+
/**
|
|
1370
|
+
* A global namespace for most scroll event listeners.
|
|
1371
|
+
*/
|
|
1372
|
+
declare const passiveHandler: Partial<AddEventListenerOptions>;
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region src/misc/reflow.d.ts
|
|
1375
|
+
/**
|
|
1376
|
+
* Utility to force re-paint of an `HTMLElement` target.
|
|
1377
|
+
*
|
|
1378
|
+
* @param element is the target
|
|
1379
|
+
* @return the `Element.offsetHeight` value
|
|
1380
|
+
*/
|
|
1381
|
+
declare const reflow: (element: HTMLElement) => number;
|
|
1382
|
+
//#endregion
|
|
1383
|
+
//#region src/interface/css4Declaration.d.ts
|
|
1384
|
+
declare interface CSS4Declaration extends Exclude<() => string | symbol, CSSStyleDeclaration> {
|
|
1385
|
+
[key: string]: string;
|
|
1386
|
+
}
|
|
1387
|
+
//#endregion
|
|
1388
|
+
//#region src/misc/setElementStyle.d.ts
|
|
1389
|
+
/**
|
|
1390
|
+
* Shortcut for multiple uses of `HTMLElement.style.propertyName` method.
|
|
1391
|
+
*
|
|
1392
|
+
* @param element target element
|
|
1393
|
+
* @param styles attribute value
|
|
1394
|
+
*/
|
|
1395
|
+
declare const setElementStyle: (element: Element, styles: Partial<CSS4Declaration>) => void;
|
|
1396
|
+
//#endregion
|
|
1397
|
+
//#region src/misc/timer.d.ts
|
|
1398
|
+
/**
|
|
1399
|
+
* An interface for one or more `TimerHandler`s per `Element`.
|
|
1400
|
+
*
|
|
1401
|
+
* @see https://github.com/thednp/navbar/
|
|
1402
|
+
*/
|
|
1403
|
+
declare const Timer: {
|
|
1404
|
+
/**
|
|
1405
|
+
* Sets a new timeout timer for an element, or element -> key association.
|
|
1406
|
+
*
|
|
1407
|
+
* @param element target element
|
|
1408
|
+
* @param callback the callback
|
|
1409
|
+
* @param delay the execution delay
|
|
1410
|
+
* @param key a unique key
|
|
1411
|
+
*/
|
|
1412
|
+
set: (element: Element, callback: TimerHandler, delay: number, key?: string) => void;
|
|
1413
|
+
/**
|
|
1414
|
+
* Returns the timer associated with the target.
|
|
1415
|
+
*
|
|
1416
|
+
* @param element target element
|
|
1417
|
+
* @param key a unique
|
|
1418
|
+
* @returns the timer
|
|
1419
|
+
*/
|
|
1420
|
+
get: (element: Element, key?: string) => number | null;
|
|
1421
|
+
/**
|
|
1422
|
+
* Clears the element's timer.
|
|
1423
|
+
*
|
|
1424
|
+
* @param element target element
|
|
1425
|
+
* @param key a unique key
|
|
1426
|
+
*/
|
|
1427
|
+
clear: (element: Element, key?: string) => void;
|
|
1428
|
+
};
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region src/misc/toLowerCase.d.ts
|
|
1431
|
+
/**
|
|
1432
|
+
* Shortcut for `String.toLowerCase()`.
|
|
1433
|
+
*
|
|
1434
|
+
* @param source input string
|
|
1435
|
+
* @returns lowercase output string
|
|
1436
|
+
*/
|
|
1437
|
+
declare const toLowerCase: (source: string) => string;
|
|
1438
|
+
//#endregion
|
|
1439
|
+
//#region src/misc/toUpperCase.d.ts
|
|
1440
|
+
/**
|
|
1441
|
+
* Shortcut for `String.toUpperCase()`.
|
|
1442
|
+
*
|
|
1443
|
+
* @param source input string
|
|
1444
|
+
* @returns uppercase output string
|
|
1445
|
+
*/
|
|
1446
|
+
declare const toUpperCase: (source: string) => string;
|
|
1447
|
+
//#endregion
|
|
1448
|
+
//#region src/interface/event.d.ts
|
|
1449
|
+
/**
|
|
1450
|
+
* Type definitions addapted from React 18.2
|
|
1451
|
+
* Project: https://react.dev/
|
|
1452
|
+
*/
|
|
1453
|
+
type NativeAnimationEvent = AnimationEvent;
|
|
1454
|
+
type NativeClipboardEvent = ClipboardEvent;
|
|
1455
|
+
type NativeCompositionEvent = CompositionEvent;
|
|
1456
|
+
type NativeDragEvent = DragEvent;
|
|
1457
|
+
type NativeFocusEvent = FocusEvent;
|
|
1458
|
+
type NativeKeyboardEvent = KeyboardEvent;
|
|
1459
|
+
type NativeMouseEvent = MouseEvent;
|
|
1460
|
+
type NativeTouchEvent = TouchEvent;
|
|
1461
|
+
type NativePointerEvent = PointerEvent;
|
|
1462
|
+
type NativeTransitionEvent = TransitionEvent;
|
|
1463
|
+
type NativeUIEvent = UIEvent;
|
|
1464
|
+
type NativeWheelEvent = WheelEvent;
|
|
1465
|
+
interface AbstractView {
|
|
1466
|
+
styleMedia: StyleMedia;
|
|
1467
|
+
document: Document;
|
|
1468
|
+
} //
|
|
1469
|
+
// Event System
|
|
1470
|
+
// ----------------------------------------------------------------------
|
|
1471
|
+
// E = EventObject, C = e.currentTarget, T = e.target
|
|
1472
|
+
interface BaseEvent<E = Event, C = unknown, T = unknown> {
|
|
1473
|
+
nativeEvent: E;
|
|
1474
|
+
currentTarget: C | null;
|
|
1475
|
+
target: T & EventTarget;
|
|
1476
|
+
bubbles: boolean;
|
|
1477
|
+
cancelable: boolean;
|
|
1478
|
+
defaultPrevented: boolean;
|
|
1479
|
+
eventPhase: number;
|
|
1480
|
+
isTrusted: boolean;
|
|
1481
|
+
preventDefault(): void;
|
|
1482
|
+
isDefaultPrevented(): boolean;
|
|
1483
|
+
stopPropagation(): void;
|
|
1484
|
+
isPropagationStopped(): boolean;
|
|
1485
|
+
persist(): void;
|
|
1486
|
+
timeStamp: number;
|
|
1487
|
+
type: string;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* currentTarget - a reference to the element on which the event listener is registered.
|
|
1491
|
+
*
|
|
1492
|
+
* target - a reference to the element from which the event was originally dispatched.
|
|
1493
|
+
* This might be a child element to the element on which the event listener is registered.
|
|
1494
|
+
* If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
|
|
1495
|
+
*/
|
|
1496
|
+
type NativeEvent<T extends EventTarget = HTMLElement, E = Event> = BaseEvent<E, T, T>;
|
|
1497
|
+
interface ClipboardEvent<T extends EventTarget = HTMLElement> extends NativeEvent<T, NativeClipboardEvent> {
|
|
1498
|
+
clipboardData: DataTransfer;
|
|
1499
|
+
}
|
|
1500
|
+
interface CompositionEvent<T extends EventTarget = HTMLElement> extends NativeEvent<T, NativeCompositionEvent> {
|
|
1501
|
+
data: string;
|
|
1502
|
+
}
|
|
1503
|
+
interface DragEvent<T extends EventTarget = HTMLElement> extends MouseEvent<T, NativeDragEvent> {
|
|
1504
|
+
dataTransfer: DataTransfer;
|
|
1505
|
+
}
|
|
1506
|
+
interface PointerEvent<T extends EventTarget = HTMLElement> extends MouseEvent<T, NativePointerEvent> {
|
|
1507
|
+
pointerId: number;
|
|
1508
|
+
pressure: number;
|
|
1509
|
+
tangentialPressure: number;
|
|
1510
|
+
tiltX: number;
|
|
1511
|
+
tiltY: number;
|
|
1512
|
+
twist: number;
|
|
1513
|
+
width: number;
|
|
1514
|
+
height: number;
|
|
1515
|
+
pointerType: "mouse" | "pen" | "touch";
|
|
1516
|
+
isPrimary: boolean;
|
|
1517
|
+
}
|
|
1518
|
+
interface FocusEvent<T extends EventTarget = HTMLElement, R extends Element = HTMLElement> extends NativeEvent<T, NativeFocusEvent> {
|
|
1519
|
+
relatedTarget: (EventTarget & R) | null;
|
|
1520
|
+
target: EventTarget & T;
|
|
1521
|
+
}
|
|
1522
|
+
type FormControl = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
1523
|
+
type FormEvent<T extends EventTarget = FormControl> = NativeEvent<T>;
|
|
1524
|
+
interface ChangeEvent<T extends EventTarget = FormControl> extends FormEvent<T> {
|
|
1525
|
+
target: EventTarget & T;
|
|
1526
|
+
}
|
|
1527
|
+
type ModifierKey = "Alt" | "AltGraph" | "CapsLock" | "Control" | "Fn" | "FnLock" | "Hyper" | "Meta" | "NumLock" | "ScrollLock" | "Shift" | "Super" | "Symbol" | "SymbolLock";
|
|
1528
|
+
interface KeyboardEvent<T extends EventTarget = HTMLElement> extends UIEvent<T, NativeKeyboardEvent> {
|
|
1529
|
+
altKey: boolean;
|
|
1530
|
+
/** @deprecated */
|
|
1531
|
+
charCode: number;
|
|
1532
|
+
ctrlKey: boolean;
|
|
1533
|
+
code: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
|
1536
|
+
*/
|
|
1537
|
+
getModifierState(key: ModifierKey): boolean;
|
|
1538
|
+
/**
|
|
1539
|
+
* See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values
|
|
1540
|
+
*/
|
|
1541
|
+
key: string;
|
|
1542
|
+
/** @deprecated */
|
|
1543
|
+
keyCode: number;
|
|
1544
|
+
locale: string;
|
|
1545
|
+
location: number;
|
|
1546
|
+
metaKey: boolean;
|
|
1547
|
+
repeat: boolean;
|
|
1548
|
+
shiftKey: boolean;
|
|
1549
|
+
/** @deprecated */
|
|
1550
|
+
which: number;
|
|
1551
|
+
}
|
|
1552
|
+
interface MouseEvent<T extends EventTarget = HTMLElement, E = NativeMouseEvent> extends UIEvent<T, E> {
|
|
1553
|
+
altKey: boolean;
|
|
1554
|
+
button: number;
|
|
1555
|
+
buttons: number;
|
|
1556
|
+
clientX: number;
|
|
1557
|
+
clientY: number;
|
|
1558
|
+
ctrlKey: boolean;
|
|
1559
|
+
/**
|
|
1560
|
+
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
|
1561
|
+
*/
|
|
1562
|
+
getModifierState(key: ModifierKey): boolean;
|
|
1563
|
+
metaKey: boolean;
|
|
1564
|
+
movementX: number;
|
|
1565
|
+
movementY: number;
|
|
1566
|
+
pageX: number;
|
|
1567
|
+
pageY: number;
|
|
1568
|
+
relatedTarget: EventTarget | null;
|
|
1569
|
+
screenX: number;
|
|
1570
|
+
screenY: number;
|
|
1571
|
+
shiftKey: boolean;
|
|
1572
|
+
}
|
|
1573
|
+
interface TouchEvent<T extends EventTarget = HTMLElement> extends UIEvent<T, NativeTouchEvent> {
|
|
1574
|
+
altKey: boolean;
|
|
1575
|
+
changedTouches: TouchList;
|
|
1576
|
+
ctrlKey: boolean;
|
|
1577
|
+
/**
|
|
1578
|
+
* See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method.
|
|
1579
|
+
*/
|
|
1580
|
+
getModifierState(key: ModifierKey): boolean;
|
|
1581
|
+
metaKey: boolean;
|
|
1582
|
+
shiftKey: boolean;
|
|
1583
|
+
targetTouches: TouchList;
|
|
1584
|
+
touches: TouchList;
|
|
1585
|
+
}
|
|
1586
|
+
interface UIEvent<T extends EventTarget = HTMLElement, E = NativeUIEvent> extends NativeEvent<T, E> {
|
|
1587
|
+
detail: number;
|
|
1588
|
+
view: AbstractView;
|
|
1589
|
+
}
|
|
1590
|
+
interface WheelEvent<T extends EventTarget = HTMLElement> extends MouseEvent<T, NativeWheelEvent> {
|
|
1591
|
+
deltaMode: number;
|
|
1592
|
+
deltaX: number;
|
|
1593
|
+
deltaY: number;
|
|
1594
|
+
deltaZ: number;
|
|
1595
|
+
}
|
|
1596
|
+
interface AnimationEvent<T extends EventTarget = HTMLElement> extends NativeEvent<T, NativeAnimationEvent> {
|
|
1597
|
+
animationName: string;
|
|
1598
|
+
elapsedTime: number;
|
|
1599
|
+
pseudoElement: string;
|
|
1600
|
+
}
|
|
1601
|
+
interface TransitionEvent<T extends EventTarget = HTMLElement> extends NativeEvent<T, NativeTransitionEvent> {
|
|
1602
|
+
elapsedTime: number;
|
|
1603
|
+
propertyName: string;
|
|
1604
|
+
pseudoElement: string;
|
|
1605
|
+
} //
|
|
1606
|
+
// Event Handler Types
|
|
1607
|
+
// ----------------------------------------------------------------------
|
|
1608
|
+
// (this: unknown & EventTarget, event: E): void;
|
|
1609
|
+
type EventHandler<T extends EventTarget = HTMLElement, E = Event | NativeEvent<T>> = (event: E) => void;
|
|
1610
|
+
type NativeEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, NativeEvent<T>>;
|
|
1611
|
+
type ClipboardEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, ClipboardEvent<T>>;
|
|
1612
|
+
type CompositionEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, CompositionEvent<T>>;
|
|
1613
|
+
type DragEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, DragEvent<T>>;
|
|
1614
|
+
type FocusEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, FocusEvent<T>>;
|
|
1615
|
+
type FormEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, FormEvent<T>>;
|
|
1616
|
+
type ChangeEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, ChangeEvent<T>>;
|
|
1617
|
+
type KeyboardEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, KeyboardEvent<T>>;
|
|
1618
|
+
type MouseEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, MouseEvent<T>>;
|
|
1619
|
+
type TouchEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, TouchEvent<T>>;
|
|
1620
|
+
type PointerEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, PointerEvent<T>>;
|
|
1621
|
+
type UIEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, UIEvent<T>>;
|
|
1622
|
+
type WheelEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, WheelEvent<T>>;
|
|
1623
|
+
type AnimationEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, AnimationEvent<T>>;
|
|
1624
|
+
type TransitionEventHandler<T extends EventTarget = HTMLElement> = EventHandler<T, TransitionEvent<T>>;
|
|
1625
|
+
type PossibleEventTarget = EventTarget & (Element | Document | Window);
|
|
1626
|
+
//#endregion
|
|
1627
|
+
//#region src/misc/focusTrap.d.ts
|
|
1628
|
+
type FocusableElement = HTMLAnchorElement | HTMLButtonElement | HTMLInputElement | HTMLTextAreaElement | HTMLDataListElement | HTMLDetailsElement | HTMLSelectElement;
|
|
1629
|
+
declare function handleKeyboardNavigation<T extends Element & EventTarget>(this: T, event: KeyboardEvent<T>): void;
|
|
1630
|
+
/**
|
|
1631
|
+
* Utility to check if a designated element is affected by focus trap;
|
|
1632
|
+
* @param target
|
|
1633
|
+
*/
|
|
1634
|
+
declare const hasFocusTrap: (target: Element) => boolean;
|
|
1635
|
+
/**
|
|
1636
|
+
* Utility to add focus trap inside a designated target element;
|
|
1637
|
+
* @param target
|
|
1638
|
+
*/
|
|
1639
|
+
declare const addFocusTrap: (target: Element) => void;
|
|
1640
|
+
/**
|
|
1641
|
+
* Utility to remove focus trap inside a designated target element;
|
|
1642
|
+
* @param target
|
|
1643
|
+
*/
|
|
1644
|
+
declare const removeFocusTrap: (target: Element) => void;
|
|
1645
|
+
/**
|
|
1646
|
+
* Utility to toggle focus trap inside a designated target element;
|
|
1647
|
+
* @param target
|
|
1648
|
+
*/
|
|
1649
|
+
declare const toggleFocusTrap: (target: Element) => void;
|
|
1650
|
+
//#endregion
|
|
1651
|
+
//#region src/interface/boundingClientRect.d.ts
|
|
1652
|
+
declare interface BoundingClientRect {
|
|
1653
|
+
width: number;
|
|
1654
|
+
height: number;
|
|
1655
|
+
top: number;
|
|
1656
|
+
left: number;
|
|
1657
|
+
right: number;
|
|
1658
|
+
bottom: number;
|
|
1659
|
+
x: number;
|
|
1660
|
+
y: number;
|
|
1661
|
+
}
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region src/get/getBoundingClientRect.d.ts
|
|
1664
|
+
/**
|
|
1665
|
+
* Returns the bounding client rect of a target `Element`.
|
|
1666
|
+
*
|
|
1667
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1668
|
+
*
|
|
1669
|
+
* @param element event.target
|
|
1670
|
+
* @param includeScale when *true*, the target scale is also computed
|
|
1671
|
+
* @returns the bounding client rect object
|
|
1672
|
+
*/
|
|
1673
|
+
declare const getBoundingClientRect: (element: Element, includeScale?: boolean) => BoundingClientRect;
|
|
1674
|
+
//#endregion
|
|
1675
|
+
//#region src/get/getDocument.d.ts
|
|
1676
|
+
/**
|
|
1677
|
+
* Returns the `document` or the `#document` element.
|
|
1678
|
+
*
|
|
1679
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1680
|
+
*
|
|
1681
|
+
* @param node the reference node
|
|
1682
|
+
* @returns the parent document of the given node
|
|
1683
|
+
*/
|
|
1684
|
+
declare const getDocument: (node?: Node | Document | Window) => Document;
|
|
1685
|
+
//#endregion
|
|
1686
|
+
//#region src/get/getDocumentBody.d.ts
|
|
1687
|
+
/**
|
|
1688
|
+
* Returns the `document.body` or the `<body>` element.
|
|
1689
|
+
*
|
|
1690
|
+
* @param node the reference node
|
|
1691
|
+
* @returns the parent `<body>` of the specified node
|
|
1692
|
+
*/
|
|
1693
|
+
declare const getDocumentBody: (node?: Node | Document | Window) => HTMLElement;
|
|
1694
|
+
//#endregion
|
|
1695
|
+
//#region src/get/getDocumentElement.d.ts
|
|
1696
|
+
/**
|
|
1697
|
+
* Returns the `document.documentElement` or the `<HTML>` element.
|
|
1698
|
+
*
|
|
1699
|
+
* @param node the reference node
|
|
1700
|
+
* @returns the parent `<HTML>` of the node's parent document
|
|
1701
|
+
*/
|
|
1702
|
+
declare const getDocumentElement: (node?: Node | Document | Window) => HTMLElement;
|
|
1703
|
+
//#endregion
|
|
1704
|
+
//#region src/get/getDocumentHead.d.ts
|
|
1705
|
+
/**
|
|
1706
|
+
* Returns the `document.head` or the `<head>` element.
|
|
1707
|
+
*
|
|
1708
|
+
* @param node the reference node
|
|
1709
|
+
* @returns the `<head>` of the node's parent document
|
|
1710
|
+
*/
|
|
1711
|
+
declare const getDocumentHead: (node?: Node | Document | Window) => HTMLHeadElement;
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region src/get/getElementAnimationDuration.d.ts
|
|
1714
|
+
/**
|
|
1715
|
+
* Utility to get the computed `animationDuration`
|
|
1716
|
+
* from `Element` in miliseconds.
|
|
1717
|
+
*
|
|
1718
|
+
* @param element target
|
|
1719
|
+
* @return the `animationDuration` value in miliseconds
|
|
1720
|
+
*/
|
|
1721
|
+
declare const getElementAnimationDuration: (element: Element) => number;
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region src/get/getElementAnimationDelay.d.ts
|
|
1724
|
+
/**
|
|
1725
|
+
* Utility to get the computed `animationDelay`
|
|
1726
|
+
* from Element in miliseconds.
|
|
1727
|
+
*
|
|
1728
|
+
* @param element target
|
|
1729
|
+
* @return the `animationDelay` value in miliseconds
|
|
1730
|
+
*/
|
|
1731
|
+
declare const getElementAnimationDelay: (element: Element) => number;
|
|
1732
|
+
//#endregion
|
|
1733
|
+
//#region src/get/getElementStyle.d.ts
|
|
1734
|
+
/**
|
|
1735
|
+
* Shortcut for `window.getComputedStyle(element).propertyName`
|
|
1736
|
+
* static method.
|
|
1737
|
+
*
|
|
1738
|
+
* * If `element` parameter is not an `Element`, `getComputedStyle`
|
|
1739
|
+
* throws a `ReferenceError`.
|
|
1740
|
+
*
|
|
1741
|
+
* @param element target `Element`
|
|
1742
|
+
* @param property the css property
|
|
1743
|
+
* @param pseudoElt pseudo-elements
|
|
1744
|
+
* @return the css property value
|
|
1745
|
+
*/
|
|
1746
|
+
declare const getElementStyle: (element: Element, property: string, pseudoElt?: string | null) => string;
|
|
1747
|
+
//#endregion
|
|
1748
|
+
//#region src/get/getElementTransitionDuration.d.ts
|
|
1749
|
+
/**
|
|
1750
|
+
* Utility to get the computed `transitionDuration`
|
|
1751
|
+
* from Element in miliseconds.
|
|
1752
|
+
*
|
|
1753
|
+
* @param element target
|
|
1754
|
+
* @return the `transitionDuration` value in miliseconds
|
|
1755
|
+
*/
|
|
1756
|
+
declare const getElementTransitionDuration: (element: Element) => number;
|
|
1757
|
+
//#endregion
|
|
1758
|
+
//#region src/get/getElementTransitionDelay.d.ts
|
|
1759
|
+
/**
|
|
1760
|
+
* Utility to get the computed `transitionDelay`
|
|
1761
|
+
* from Element in miliseconds.
|
|
1762
|
+
*
|
|
1763
|
+
* @param element target
|
|
1764
|
+
* @return the `transitionDelay` value in miliseconds
|
|
1765
|
+
*/
|
|
1766
|
+
declare const getElementTransitionDelay: (element: Element) => number;
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#region src/get/getNodeName.d.ts
|
|
1769
|
+
/**
|
|
1770
|
+
* Returns the value of `node.nodeName` for the given node.
|
|
1771
|
+
* @param node target node
|
|
1772
|
+
* @returns the node name
|
|
1773
|
+
*/
|
|
1774
|
+
declare const getNodeName: (node: Node | Window) => string;
|
|
1775
|
+
//#endregion
|
|
1776
|
+
//#region src/get/getNodeScroll.d.ts
|
|
1777
|
+
/**
|
|
1778
|
+
* Returns an `{x, y}` object with the target
|
|
1779
|
+
* `Element` / `Node` scroll position.
|
|
1780
|
+
*
|
|
1781
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1782
|
+
*
|
|
1783
|
+
* @param element target node / element
|
|
1784
|
+
* @returns the scroll tuple
|
|
1785
|
+
*/
|
|
1786
|
+
declare const getNodeScroll: (element: Element | Window) => {
|
|
1787
|
+
x: number;
|
|
1788
|
+
y: number;
|
|
1789
|
+
};
|
|
1790
|
+
//#endregion
|
|
1791
|
+
//#region src/get/getOffsetParent.d.ts
|
|
1792
|
+
/**
|
|
1793
|
+
* Returns the `offsetParent` for a given target.
|
|
1794
|
+
*
|
|
1795
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1796
|
+
*
|
|
1797
|
+
* @param element the target node
|
|
1798
|
+
* @returns the offset parent node
|
|
1799
|
+
*/
|
|
1800
|
+
declare const getOffsetParent: (element: Element) => Element | Window;
|
|
1801
|
+
//#endregion
|
|
1802
|
+
//#region src/get/getParentNode.d.ts
|
|
1803
|
+
/**
|
|
1804
|
+
* Returns the `parentNode` also going through `ShadowRoot`.
|
|
1805
|
+
*
|
|
1806
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1807
|
+
*
|
|
1808
|
+
* @param node the target node
|
|
1809
|
+
* @returns the apropriate parent node
|
|
1810
|
+
*/
|
|
1811
|
+
declare const getParentNode: (node: Node) => ParentNode;
|
|
1812
|
+
//#endregion
|
|
1813
|
+
//#region src/interface/offsetRect.d.ts
|
|
1814
|
+
declare interface OffsetRect {
|
|
1815
|
+
width: number;
|
|
1816
|
+
height: number;
|
|
1817
|
+
x: number;
|
|
1818
|
+
y: number;
|
|
1819
|
+
}
|
|
1820
|
+
//#endregion
|
|
1821
|
+
//#region src/get/getRectRelativeToOffsetParent.d.ts
|
|
1822
|
+
/**
|
|
1823
|
+
* Returns the rect relative to a given offset parent and its scroll position.
|
|
1824
|
+
*
|
|
1825
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1826
|
+
*
|
|
1827
|
+
* @param element target
|
|
1828
|
+
* @param offsetParent the container / offset parent
|
|
1829
|
+
* @param scroll the offsetParent scroll position
|
|
1830
|
+
* @returns a DOMRect like object
|
|
1831
|
+
*/
|
|
1832
|
+
declare const getRectRelativeToOffsetParent: (element: Element, offsetParent: Element | Window, scroll: {
|
|
1833
|
+
x: number;
|
|
1834
|
+
y: number;
|
|
1835
|
+
}) => OffsetRect;
|
|
1836
|
+
//#endregion
|
|
1837
|
+
//#region src/get/getUID.d.ts
|
|
1838
|
+
/**
|
|
1839
|
+
* Returns a unique identifier for popover, tooltip, scrollspy.
|
|
1840
|
+
*
|
|
1841
|
+
* @param element target element
|
|
1842
|
+
* @param key optional identifier key
|
|
1843
|
+
* @returns an existing or new unique ID
|
|
1844
|
+
*/
|
|
1845
|
+
declare const getUID: (element: Element, key?: string) => number;
|
|
1846
|
+
//#endregion
|
|
1847
|
+
//#region src/get/getWindow.d.ts
|
|
1848
|
+
/**
|
|
1849
|
+
* Returns the `Window` object of a target node.
|
|
1850
|
+
*
|
|
1851
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
1852
|
+
*
|
|
1853
|
+
* @param node target node
|
|
1854
|
+
* @returns the `Window` object
|
|
1855
|
+
*/
|
|
1856
|
+
declare const getWindow: (node?: Node) => Window;
|
|
1857
|
+
//#endregion
|
|
1858
|
+
//#region src/is/isArray.d.ts
|
|
1859
|
+
/**
|
|
1860
|
+
* Shortie for the `Array.isArray()` static method.
|
|
1861
|
+
*
|
|
1862
|
+
* @param obj array-like iterable object
|
|
1863
|
+
* @returns the query result
|
|
1864
|
+
*/
|
|
1865
|
+
declare const isArray: (obj?: unknown) => obj is unknown[];
|
|
1866
|
+
//#endregion
|
|
1867
|
+
//#region src/is/isCanvas.d.ts
|
|
1868
|
+
/**
|
|
1869
|
+
* Checks if an element is an `HTMLCanvasElement` or `<canvas>`.
|
|
1870
|
+
*
|
|
1871
|
+
* @param element the target element
|
|
1872
|
+
* @returns the query result
|
|
1873
|
+
*/
|
|
1874
|
+
declare const isCanvas: (element?: unknown) => element is HTMLCanvasElement;
|
|
1875
|
+
//#endregion
|
|
1876
|
+
//#region src/is/isDocument.d.ts
|
|
1877
|
+
/**
|
|
1878
|
+
* Checks if an object is a `Document`.
|
|
1879
|
+
*
|
|
1880
|
+
* @see https://dom.spec.whatwg.org/#node
|
|
1881
|
+
*
|
|
1882
|
+
* @param obj the target object
|
|
1883
|
+
* @returns the query result
|
|
1884
|
+
*/
|
|
1885
|
+
declare const isDocument: (obj?: unknown) => obj is Document;
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region src/interface/customElement.d.ts
|
|
1888
|
+
declare interface CustomElement extends HTMLElement {
|
|
1889
|
+
shadowRoot: ShadowRoot;
|
|
1890
|
+
connectedCallback?: () => void;
|
|
1891
|
+
disconnectedCallback?: () => void;
|
|
1892
|
+
adoptedCallback?: () => void;
|
|
1893
|
+
attributeChangedCallback?: () => void; // [key: PropertyKey]: any;
|
|
1894
|
+
}
|
|
1895
|
+
//#endregion
|
|
1896
|
+
//#region src/is/isCustomElement.d.ts
|
|
1897
|
+
/**
|
|
1898
|
+
* Checks if an object is a `CustomElement`.
|
|
1899
|
+
*
|
|
1900
|
+
* @param element the target object
|
|
1901
|
+
* @returns the query result
|
|
1902
|
+
*/
|
|
1903
|
+
declare const isCustomElement: <T extends CustomElement>(element?: unknown) => element is T;
|
|
1904
|
+
//#endregion
|
|
1905
|
+
//#region src/is/isElement.d.ts
|
|
1906
|
+
/**
|
|
1907
|
+
* Checks if an object is an `Element`.
|
|
1908
|
+
*
|
|
1909
|
+
* @param element the target object
|
|
1910
|
+
* @returns the query result
|
|
1911
|
+
*/
|
|
1912
|
+
declare const isElement: (element?: unknown) => element is Element;
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region src/is/isElementInScrollRange.d.ts
|
|
1915
|
+
/**
|
|
1916
|
+
* Utility to determine if an `Element`
|
|
1917
|
+
* is partially visible in viewport.
|
|
1918
|
+
*
|
|
1919
|
+
* @param element target
|
|
1920
|
+
* @return the query result
|
|
1921
|
+
*/
|
|
1922
|
+
declare const isElementInScrollRange: (element?: Element) => boolean;
|
|
1923
|
+
//#endregion
|
|
1924
|
+
//#region src/is/isElementInViewport.d.ts
|
|
1925
|
+
/**
|
|
1926
|
+
* Utility to determine if an `Element`
|
|
1927
|
+
* is fully visible in the viewport.
|
|
1928
|
+
*
|
|
1929
|
+
* @param element target
|
|
1930
|
+
* @return the query result
|
|
1931
|
+
*/
|
|
1932
|
+
declare const isElementInViewport: (element?: Element) => boolean;
|
|
1933
|
+
//#endregion
|
|
1934
|
+
//#region src/is/isElementsArray.d.ts
|
|
1935
|
+
/**
|
|
1936
|
+
* Checks if an object is an `Array` in which all items are `Element`.
|
|
1937
|
+
*
|
|
1938
|
+
* @param obj the target object
|
|
1939
|
+
* @returns the query result
|
|
1940
|
+
*/
|
|
1941
|
+
declare const isElementsArray: (obj?: unknown) => obj is Element[];
|
|
1942
|
+
//#endregion
|
|
1943
|
+
//#region src/is/isFunction.d.ts
|
|
1944
|
+
/**
|
|
1945
|
+
* Checks if an object is a `Function`.
|
|
1946
|
+
*
|
|
1947
|
+
* @param fn the target object
|
|
1948
|
+
* @returns the query result
|
|
1949
|
+
*/
|
|
1950
|
+
declare const isFunction: (fn?: unknown) => fn is Fn;
|
|
1951
|
+
//#endregion
|
|
1952
|
+
//#region src/is/isObject.d.ts
|
|
1953
|
+
/**
|
|
1954
|
+
* Checks if a value is an `Object`.
|
|
1955
|
+
*
|
|
1956
|
+
* @param obj the target object
|
|
1957
|
+
* @returns the query result
|
|
1958
|
+
*/
|
|
1959
|
+
declare const isObject: (obj?: unknown) => obj is object;
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region src/is/isHTMLCollection.d.ts
|
|
1962
|
+
/**
|
|
1963
|
+
* Checks if an object is an `HTMLCollection`.
|
|
1964
|
+
*
|
|
1965
|
+
* @param obj the target object
|
|
1966
|
+
* @returns the query result
|
|
1967
|
+
*/
|
|
1968
|
+
declare const isHTMLCollection: (obj?: unknown) => obj is HTMLCollection;
|
|
1969
|
+
//#endregion
|
|
1970
|
+
//#region src/is/isHTMLElement.d.ts
|
|
1971
|
+
/**
|
|
1972
|
+
* Checks if an element is an `HTMLElement`.
|
|
1973
|
+
*
|
|
1974
|
+
* @see https://dom.spec.whatwg.org/#node
|
|
1975
|
+
*
|
|
1976
|
+
* @param element the target object
|
|
1977
|
+
* @returns the query result
|
|
1978
|
+
*/
|
|
1979
|
+
declare const isHTMLElement: (element?: unknown) => element is HTMLElement;
|
|
1980
|
+
//#endregion
|
|
1981
|
+
//#region src/is/isHTMLImageElement.d.ts
|
|
1982
|
+
/**
|
|
1983
|
+
* Check if a target element is an `<img>`.
|
|
1984
|
+
*
|
|
1985
|
+
* @param element the target element
|
|
1986
|
+
* @returns the query result
|
|
1987
|
+
*/
|
|
1988
|
+
declare const isHTMLImageElement: (element?: unknown) => element is HTMLImageElement;
|
|
1989
|
+
//#endregion
|
|
1990
|
+
//#region src/is/isJSON.d.ts
|
|
1991
|
+
/**
|
|
1992
|
+
* Checks if a string is a `JSON` string.
|
|
1993
|
+
*
|
|
1994
|
+
* @param str the target string
|
|
1995
|
+
* @returns the query result
|
|
1996
|
+
*/
|
|
1997
|
+
declare const isJSON: (str?: string) => boolean;
|
|
1998
|
+
//#endregion
|
|
1999
|
+
//#region src/is/isMap.d.ts
|
|
2000
|
+
/**
|
|
2001
|
+
* Checks if an element is a `Map`.
|
|
2002
|
+
*
|
|
2003
|
+
* @param obj the target object
|
|
2004
|
+
* @returns the query result
|
|
2005
|
+
*/
|
|
2006
|
+
declare const isMap: (obj?: unknown) => obj is Map<unknown, unknown>;
|
|
2007
|
+
//#endregion
|
|
2008
|
+
//#region src/is/isWeakMap.d.ts
|
|
2009
|
+
/**
|
|
2010
|
+
* Checks if an element is a `WeakMap`.
|
|
2011
|
+
*
|
|
2012
|
+
* @param obj the target object
|
|
2013
|
+
* @returns the query result
|
|
2014
|
+
*/
|
|
2015
|
+
declare const isWeakMap: (obj?: unknown) => obj is WeakMap<WeakKey, unknown>;
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region src/is/isMedia.d.ts
|
|
2018
|
+
/**
|
|
2019
|
+
* Checks if an element is an `<svg>` (or any type of SVG element),
|
|
2020
|
+
* `<img>`, `<video>` or `<canvas>`.
|
|
2021
|
+
*
|
|
2022
|
+
* *Tooltip* / *Popover* works different with media elements.
|
|
2023
|
+
*
|
|
2024
|
+
* @param element the target element
|
|
2025
|
+
* @returns the query result
|
|
2026
|
+
*/
|
|
2027
|
+
declare const isMedia: (element?: unknown) => element is SVGElement | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement;
|
|
2028
|
+
//#endregion
|
|
2029
|
+
//#region src/is/isNode.d.ts
|
|
2030
|
+
/**
|
|
2031
|
+
* Checks if an object is a `Node`.
|
|
2032
|
+
*
|
|
2033
|
+
* @param node the target object
|
|
2034
|
+
* @see https://dom.spec.whatwg.org/#node
|
|
2035
|
+
*
|
|
2036
|
+
* ```
|
|
2037
|
+
* ELEMENT_NODE = 1;
|
|
2038
|
+
* ATTRIBUTE_NODE = 2;
|
|
2039
|
+
* TEXT_NODE = 3;
|
|
2040
|
+
* CDATA_SECTION_NODE = 4;
|
|
2041
|
+
* ENTITY_REFERENCE_NODE = 5; // legacy
|
|
2042
|
+
* ENTITY_NODE = 6; // legacy
|
|
2043
|
+
* PROCESSING_INSTRUCTION_NODE = 7;
|
|
2044
|
+
* COMMENT_NODE = 8;
|
|
2045
|
+
* DOCUMENT_NODE = 9;
|
|
2046
|
+
* DOCUMENT_TYPE_NODE = 10;
|
|
2047
|
+
* DOCUMENT_FRAGMENT_NODE = 11;
|
|
2048
|
+
* @returns the query result
|
|
2049
|
+
*/
|
|
2050
|
+
declare const isNode: (node?: unknown) => node is Node;
|
|
2051
|
+
//#endregion
|
|
2052
|
+
//#region src/is/isNodeList.d.ts
|
|
2053
|
+
/**
|
|
2054
|
+
* Checks if an object is a `NodeList`.
|
|
2055
|
+
* => equivalent to `object instanceof NodeList`
|
|
2056
|
+
*
|
|
2057
|
+
* @param obj the target object
|
|
2058
|
+
* @returns the query result
|
|
2059
|
+
*/
|
|
2060
|
+
declare const isNodeList: (obj?: unknown) => obj is NodeList;
|
|
2061
|
+
//#endregion
|
|
2062
|
+
//#region src/is/isNumber.d.ts
|
|
2063
|
+
/**
|
|
2064
|
+
* Shortie for `typeof SOMETHING === "number"`.
|
|
2065
|
+
*
|
|
2066
|
+
* @param num input value
|
|
2067
|
+
* @returns the query result
|
|
2068
|
+
*/
|
|
2069
|
+
declare const isNumber: (num?: unknown) => num is number;
|
|
2070
|
+
//#endregion
|
|
2071
|
+
//#region src/is/isRTL.d.ts
|
|
2072
|
+
/**
|
|
2073
|
+
* Checks if a page is Right To Left.
|
|
2074
|
+
*
|
|
2075
|
+
* @param node the target
|
|
2076
|
+
* @returns the query result
|
|
2077
|
+
*/
|
|
2078
|
+
declare const isRTL: (node?: Node) => boolean;
|
|
2079
|
+
//#endregion
|
|
2080
|
+
//#region src/is/isScaledElement.d.ts
|
|
2081
|
+
/**
|
|
2082
|
+
* Checks if a target `Element` is affected by scale.
|
|
2083
|
+
*
|
|
2084
|
+
* @see https://github.com/floating-ui/floating-ui
|
|
2085
|
+
*
|
|
2086
|
+
* @param element target
|
|
2087
|
+
* @returns the query result
|
|
2088
|
+
*/
|
|
2089
|
+
declare const isScaledElement: (element?: Element) => boolean;
|
|
2090
|
+
//#endregion
|
|
2091
|
+
//#region src/is/isShadowRoot.d.ts
|
|
2092
|
+
/**
|
|
2093
|
+
* Check if target is a `ShadowRoot`.
|
|
2094
|
+
*
|
|
2095
|
+
* @param element target
|
|
2096
|
+
* @returns the query result
|
|
2097
|
+
*/
|
|
2098
|
+
declare const isShadowRoot: (element?: unknown) => element is ShadowRoot;
|
|
2099
|
+
//#endregion
|
|
2100
|
+
//#region src/is/isString.d.ts
|
|
2101
|
+
/**
|
|
2102
|
+
* Shortie for `typeof SOMETHING === "string"`.
|
|
2103
|
+
*
|
|
2104
|
+
* @param str input value
|
|
2105
|
+
* @returns the query result
|
|
2106
|
+
*/
|
|
2107
|
+
declare const isString: (str?: unknown) => str is string;
|
|
2108
|
+
//#endregion
|
|
2109
|
+
//#region src/is/isSVGElement.d.ts
|
|
2110
|
+
/**
|
|
2111
|
+
* Check if an element is an `<svg>` or any other SVG element,
|
|
2112
|
+
* an equivalent to `SOMETHING instanceof SVGElement`.
|
|
2113
|
+
*
|
|
2114
|
+
* @param element the target element
|
|
2115
|
+
* @returns the query result
|
|
2116
|
+
*/
|
|
2117
|
+
declare const isSVGElement: (element?: unknown) => element is SVGElement;
|
|
2118
|
+
//#endregion
|
|
2119
|
+
//#region src/is/isTableElement.d.ts
|
|
2120
|
+
/**
|
|
2121
|
+
* Check if a target element is a `<table>`, `<td>` or `<th>`.
|
|
2122
|
+
* This specific check is important for determining
|
|
2123
|
+
* the `offsetParent` of a given element.
|
|
2124
|
+
*
|
|
2125
|
+
* @param element the target element
|
|
2126
|
+
* @returns the query result
|
|
2127
|
+
*/
|
|
2128
|
+
declare const isTableElement: (element?: unknown) => element is HTMLTableElement | HTMLTableCellElement;
|
|
2129
|
+
//#endregion
|
|
2130
|
+
//#region src/is/isWindow.d.ts
|
|
2131
|
+
/**
|
|
2132
|
+
* Check if a target object is `Window`.
|
|
2133
|
+
* => equivalent to `object instanceof Window`
|
|
2134
|
+
*
|
|
2135
|
+
* @param obj the target object
|
|
2136
|
+
* @returns the query result
|
|
2137
|
+
*/
|
|
2138
|
+
declare const isWindow: (obj?: unknown) => obj is Window;
|
|
2139
|
+
//#endregion
|
|
2140
|
+
//#region src/selectors/closest.d.ts
|
|
2141
|
+
/**
|
|
2142
|
+
* Shortcut for `HTMLElement.closest` method which also works
|
|
2143
|
+
* with children of `ShadowRoot`. The order of the parameters
|
|
2144
|
+
* is intentional since they're both required.
|
|
2145
|
+
*
|
|
2146
|
+
* @see https://stackoverflow.com/q/54520554/803358
|
|
2147
|
+
*
|
|
2148
|
+
* @param element target Element to check
|
|
2149
|
+
* @param selector the selector string
|
|
2150
|
+
* @return the query result
|
|
2151
|
+
*/
|
|
2152
|
+
declare const closest: <T extends Element>(element: T, selector: string) => T | null;
|
|
2153
|
+
//#endregion
|
|
2154
|
+
//#region src/selectors/querySelector.d.ts
|
|
2155
|
+
/**
|
|
2156
|
+
* Utility to check if target is typeof `Element`, `Node`
|
|
2157
|
+
* or find one that matches a selector.
|
|
2158
|
+
*
|
|
2159
|
+
* @param selector the input selector or target element
|
|
2160
|
+
* @param parent optional node to look into
|
|
2161
|
+
* @return the `Element` or null
|
|
2162
|
+
*/
|
|
2163
|
+
declare const querySelector: <T extends Element>(selector: T | string, parent?: ParentNode) => T | null;
|
|
2164
|
+
//#endregion
|
|
2165
|
+
//#region src/selectors/getCustomElements.d.ts
|
|
2166
|
+
/**
|
|
2167
|
+
* Returns an `Array` of `Node` elements that are registered as
|
|
2168
|
+
* `CustomElement`.
|
|
2169
|
+
*
|
|
2170
|
+
* @see https://stackoverflow.com/questions/27334365/how-to-get-list-of-registered-custom-elements
|
|
2171
|
+
*
|
|
2172
|
+
* @param parent parent to look into
|
|
2173
|
+
* @returns the query result
|
|
2174
|
+
*/
|
|
2175
|
+
declare const getCustomElements: (parent?: ParentNode) => CustomElement[];
|
|
2176
|
+
//#endregion
|
|
2177
|
+
//#region src/selectors/getElementById.d.ts
|
|
2178
|
+
/**
|
|
2179
|
+
* Returns an `HTMLElement` that matches the id in the document.
|
|
2180
|
+
* Within multiple <iframe> elements, a `parent` parameter
|
|
2181
|
+
* would decisively locate the correct element.
|
|
2182
|
+
*
|
|
2183
|
+
* @param id the ID selector
|
|
2184
|
+
* @param context an element in it's document or document
|
|
2185
|
+
* @returns the requested element
|
|
2186
|
+
*/
|
|
2187
|
+
declare const getElementById: (id: string, context?: Node) => HTMLElement | null;
|
|
2188
|
+
//#endregion
|
|
2189
|
+
//#region src/selectors/querySelectorAll.d.ts
|
|
2190
|
+
/**
|
|
2191
|
+
* A shortcut for `(document|Element).querySelectorAll`.
|
|
2192
|
+
*
|
|
2193
|
+
* @param selector the input selector
|
|
2194
|
+
* @param parent optional node to look into
|
|
2195
|
+
* @return the query result
|
|
2196
|
+
*/
|
|
2197
|
+
declare const querySelectorAll: <T extends Element>(selector: string, parent?: ParentNode) => NodeListOf<T>;
|
|
2198
|
+
//#endregion
|
|
2199
|
+
//#region src/selectors/getElementsByTagName.d.ts
|
|
2200
|
+
/**
|
|
2201
|
+
* Shortcut for `Element.getElementsByTagName` method. Some `Node` elements
|
|
2202
|
+
* like `ShadowRoot` do not support `getElementsByTagName`.
|
|
2203
|
+
*
|
|
2204
|
+
* @param selector the tag name
|
|
2205
|
+
* @param parent optional Element to look into
|
|
2206
|
+
* @return the 'HTMLCollection'
|
|
2207
|
+
*/
|
|
2208
|
+
declare const getElementsByTagName: <T extends Element>(selector: string, parent?: ParentNode) => HTMLCollectionOf<T>;
|
|
2209
|
+
//#endregion
|
|
2210
|
+
//#region src/selectors/getElementsByClassName.d.ts
|
|
2211
|
+
/**
|
|
2212
|
+
* Shortcut for `Element.getElementsByClassName` method. Some `Node` elements
|
|
2213
|
+
* like `ShadowRoot` do not support `getElementsByClassName`.
|
|
2214
|
+
*
|
|
2215
|
+
* @param selector the class name
|
|
2216
|
+
* @param parent optional Element to look into
|
|
2217
|
+
* @return the 'HTMLCollection'
|
|
2218
|
+
*/
|
|
2219
|
+
declare const getElementsByClassName: <T extends Element>(selector: string, parent?: ParentNode) => HTMLCollectionOf<T>;
|
|
2220
|
+
//#endregion
|
|
2221
|
+
//#region src/selectors/matches.d.ts
|
|
2222
|
+
/**
|
|
2223
|
+
* Check if element matches a CSS selector.
|
|
2224
|
+
*
|
|
2225
|
+
* @param target the target element
|
|
2226
|
+
* @param selector the selector to match
|
|
2227
|
+
* @returns the query result
|
|
2228
|
+
*/
|
|
2229
|
+
declare const matches: (target: Element, selector: string) => boolean;
|
|
2230
|
+
//#endregion
|
|
2231
|
+
export { type AnimationEvent, type AnimationEventHandler, ArrayFrom, type BoundingClientRect, type CSS4Declaration, type ChangeEvent, type ChangeEventHandler, type ClipboardEvent, type ClipboardEventHandler, type CompositionEvent, type CompositionEventHandler, type CustomElement, DOMContentLoadedEvent, DOMMouseScrollEvent, Data, type DragEvent, type DragEventHandler, Float32ArrayFrom, Float64ArrayFrom, type FocusEvent, type FocusEventHandler, type FocusableElement, type FormEvent, type FormEventHandler, type KeyboardEvent, type KeyboardEventHandler, type MouseEvent, type MouseEventHandler, type NativeEvent, type NativeEventHandler, type NavigatorUA, type NavigatorUABrand, type NavigatorUAData, ObjectAssign, ObjectEntries, ObjectFromEntries, ObjectHasOwn, ObjectKeys, ObjectValues, type OffsetRect, type OriginalEvent, type PointerEvent, type PointerEventHandler, type PossibleEventTarget, Timer, type TouchEvent, type TouchEventHandler, type TransitionEvent, type TransitionEventHandler, type UIEvent, type UIEventHandler, type WheelEvent, type WheelEventHandler, abortEvent, addClass, addEventListener, addFocusTrap, animationDelay, animationDuration, animationEndEvent, animationName, ariaChecked, ariaDescribedBy, ariaDescription, ariaExpanded, ariaHasPopup, ariaHidden, ariaLabel, ariaLabelledBy, ariaModal, ariaPressed, ariaSelected, ariaValueMax, ariaValueMin, ariaValueNow, ariaValueText, beforeunloadEvent, bezierEasings, blurEvent, camelCase, capitalize, changeEvent, closest, contextmenuEvent, createCustomEvent, createElement, createElementNS, dispatchEvent, distinct, documentBody, documentElement, documentHead, dragEvent, dragendEvent, dragenterEvent, dragleaveEvent, dragoverEvent, dragstartEvent, emulateAnimationEnd, emulateTransitionEnd, errorEvent, focus, focusEvent, focusEvents, focusableSelector, focusinEvent, focusoutEvent, gesturechangeEvent, gestureendEvent, gesturestartEvent, getAttribute, getAttributeNS, getBoundingClientRect, getCustomElements, getDocument, getDocumentBody, getDocumentElement, getDocumentHead, getElementAnimationDelay, getElementAnimationDuration, getElementById, getElementStyle, getElementTransitionDelay, getElementTransitionDuration, getElementsByClassName, getElementsByTagName, getInstance, getNodeName, getNodeScroll, getOffsetParent, getParentNode, getRectRelativeToOffsetParent, getUID, getWindow, handleKeyboardNavigation, hasAttribute, hasAttributeNS, hasClass, hasFocusTrap, isApple, isArray, isCanvas, isCustomElement, isDocument, isElement, isElementInScrollRange, isElementInViewport, isElementsArray, isFirefox, isFunction, isHTMLCollection, isHTMLElement, isHTMLImageElement, isJSON, isMap, isMedia, isMobile, isNode, isNodeList, isNumber, isObject, isRTL, isSVGElement, isScaledElement, isShadowRoot, isString, isTableElement, isWeakMap, isWebKit, isWindow, kebabCase, keyAlt, keyArrowDown, keyArrowLeft, keyArrowRight, keyArrowUp, keyBackspace, keyCapsLock, keyControl, keyDelete, keyEnter, keyEscape, keyInsert, keyMeta, keyNumpadEnter, keyPause, keyScrollLock, keyShift, keySpace, keyTab, keyboardEventKeys, keydownEvent, keypressEvent, keyupEvent, loadEvent, loadstartEvent, matches, mouseClickEvents, mouseHoverEvents, mouseSwipeEvents, mouseclickEvent, mousedblclickEvent, mousedownEvent, mouseenterEvent, mousehoverEvent, mouseinEvent, mouseleaveEvent, mousemoveEvent, mouseoutEvent, mouseoverEvent, mouseupEvent, mousewheelEvent, moveEvent, nativeEvents, noop, normalizeOptions, normalizeValue, off, offsetHeight, offsetWidth, on, one, orientationchangeEvent, passiveHandler, pointercancelEvent, pointerdownEvent, pointerleaveEvent, pointermoveEvent, pointerupEvent, querySelector, querySelectorAll, readystatechangeEvent, reflow, removeAttribute, removeAttributeNS, removeClass, removeEventListener, removeFocusTrap, resetEvent, resizeEvent, scrollEvent, scrollHeight, scrollWidth, selectEvent, selectendEvent, selectstartEvent, setAttribute, setAttributeNS, setElementStyle, submitEvent, support3DTransform, supportAnimation, supportPassive, supportTouch, supportTransform, supportTransition, tabindex, toLowerCase, toUpperCase, toggleFocusTrap, touchEvents, touchcancelEvent, touchendEvent, touchmoveEvent, touchstartEvent, transitionDelay, transitionDuration, transitionEndEvent, transitionProperty, unloadEvent, userAgent, userAgentData, version };
|
|
2232
|
+
//# sourceMappingURL=index.d.ts.map
|