drab 6.3.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/announcer/index.js +1 -1
- package/dist/base/index.d.ts +2895 -70
- package/dist/base/index.js +64 -48
- package/dist/copy/index.js +1 -1
- package/dist/dialog/index.d.ts +2 -2
- package/dist/dialog/index.js +2 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/util/validate.d.ts +7 -0
- package/dist/util/validate.js +10 -0
- package/package.json +1 -1
package/dist/base/index.d.ts
CHANGED
@@ -1,9 +1,2902 @@
|
|
1
|
+
import { Announcer } from "../announcer/index.js";
|
1
2
|
export type BaseAttributes = {
|
2
3
|
trigger?: string;
|
3
4
|
content?: string;
|
4
5
|
swap?: string;
|
5
6
|
};
|
6
|
-
type Constructor<T> = new (...args: any[]) => T;
|
7
|
+
export type Constructor<T> = new (...args: any[]) => T;
|
8
|
+
export declare const Trigger: <T extends Constructor<HTMLElement>>(Super: T) => {
|
9
|
+
new (...args: any[]): {
|
10
|
+
/**
|
11
|
+
* Event for the `trigger` to execute.
|
12
|
+
*
|
13
|
+
* For example, set to `"mouseover"` to execute the event when the user hovers the mouse over the `trigger`, instead of when they click it.
|
14
|
+
*
|
15
|
+
* @default "click"
|
16
|
+
*/
|
17
|
+
event: keyof HTMLElementEventMap;
|
18
|
+
/**
|
19
|
+
* @param instance The instance of the desired element to validate against,
|
20
|
+
* ex: `HTMLButtonElement`. Defaults to `HTMLElement`.
|
21
|
+
* @returns All of the elements that match the `trigger` selector.
|
22
|
+
* @default this.querySelectorAll("[data-trigger]")
|
23
|
+
*/
|
24
|
+
getTrigger<T_1 extends HTMLElement>(instance: Constructor<T_1>): NodeListOf<T_1>;
|
25
|
+
getTrigger(): NodeListOf<HTMLElement>;
|
26
|
+
/**
|
27
|
+
* @param listener Listener to attach to all of the `trigger` elements.
|
28
|
+
*/
|
29
|
+
triggerListener<T_1 extends HTMLElement, K extends keyof HTMLElementEventMap>(listener: (this: T_1, e: HTMLElementEventMap[K]) => any, type?: K, options?: AddEventListenerOptions): void;
|
30
|
+
accessKey: string;
|
31
|
+
readonly accessKeyLabel: string;
|
32
|
+
autocapitalize: string;
|
33
|
+
dir: string;
|
34
|
+
draggable: boolean;
|
35
|
+
hidden: boolean;
|
36
|
+
inert: boolean;
|
37
|
+
innerText: string;
|
38
|
+
lang: string;
|
39
|
+
readonly offsetHeight: number;
|
40
|
+
readonly offsetLeft: number;
|
41
|
+
readonly offsetParent: Element | null;
|
42
|
+
readonly offsetTop: number;
|
43
|
+
readonly offsetWidth: number;
|
44
|
+
outerText: string;
|
45
|
+
popover: string | null;
|
46
|
+
spellcheck: boolean;
|
47
|
+
title: string;
|
48
|
+
translate: boolean;
|
49
|
+
writingSuggestions: string;
|
50
|
+
attachInternals(): ElementInternals;
|
51
|
+
click(): void;
|
52
|
+
hidePopover(): void;
|
53
|
+
showPopover(): void;
|
54
|
+
togglePopover(options?: boolean): boolean;
|
55
|
+
addEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | AddEventListenerOptions): void;
|
56
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
57
|
+
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
58
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
59
|
+
readonly attributes: NamedNodeMap;
|
60
|
+
get classList(): DOMTokenList;
|
61
|
+
set classList(value: string);
|
62
|
+
className: string;
|
63
|
+
readonly clientHeight: number;
|
64
|
+
readonly clientLeft: number;
|
65
|
+
readonly clientTop: number;
|
66
|
+
readonly clientWidth: number;
|
67
|
+
readonly currentCSSZoom: number;
|
68
|
+
id: string;
|
69
|
+
innerHTML: string;
|
70
|
+
readonly localName: string;
|
71
|
+
readonly namespaceURI: string | null;
|
72
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
73
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
74
|
+
outerHTML: string;
|
75
|
+
readonly ownerDocument: Document;
|
76
|
+
get part(): DOMTokenList;
|
77
|
+
set part(value: string);
|
78
|
+
readonly prefix: string | null;
|
79
|
+
readonly scrollHeight: number;
|
80
|
+
scrollLeft: number;
|
81
|
+
scrollTop: number;
|
82
|
+
readonly scrollWidth: number;
|
83
|
+
readonly shadowRoot: ShadowRoot | null;
|
84
|
+
slot: string;
|
85
|
+
readonly tagName: string;
|
86
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
87
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
88
|
+
closest<K_1 extends keyof HTMLElementTagNameMap>(selector: K_1): HTMLElementTagNameMap[K_1] | null;
|
89
|
+
closest<K_1 extends keyof SVGElementTagNameMap>(selector: K_1): SVGElementTagNameMap[K_1] | null;
|
90
|
+
closest<K_1 extends keyof MathMLElementTagNameMap>(selector: K_1): MathMLElementTagNameMap[K_1] | null;
|
91
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
92
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
93
|
+
getAttribute(qualifiedName: string): string | null;
|
94
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
95
|
+
getAttributeNames(): string[];
|
96
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
97
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
98
|
+
getBoundingClientRect(): DOMRect;
|
99
|
+
getClientRects(): DOMRectList;
|
100
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
101
|
+
getElementsByTagName<K_1 extends keyof HTMLElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<HTMLElementTagNameMap[K_1]>;
|
102
|
+
getElementsByTagName<K_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<SVGElementTagNameMap[K_1]>;
|
103
|
+
getElementsByTagName<K_1 extends keyof MathMLElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<MathMLElementTagNameMap[K_1]>;
|
104
|
+
getElementsByTagName<K_1 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_1]>;
|
105
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
106
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
107
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
108
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
109
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
110
|
+
getHTML(options?: GetHTMLOptions): string;
|
111
|
+
hasAttribute(qualifiedName: string): boolean;
|
112
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
113
|
+
hasAttributes(): boolean;
|
114
|
+
hasPointerCapture(pointerId: number): boolean;
|
115
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
116
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
117
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
118
|
+
matches(selectors: string): boolean;
|
119
|
+
releasePointerCapture(pointerId: number): void;
|
120
|
+
removeAttribute(qualifiedName: string): void;
|
121
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
122
|
+
removeAttributeNode(attr: Attr): Attr;
|
123
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
124
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
125
|
+
scroll(options?: ScrollToOptions): void;
|
126
|
+
scroll(x: number, y: number): void;
|
127
|
+
scrollBy(options?: ScrollToOptions): void;
|
128
|
+
scrollBy(x: number, y: number): void;
|
129
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
130
|
+
scrollTo(options?: ScrollToOptions): void;
|
131
|
+
scrollTo(x: number, y: number): void;
|
132
|
+
setAttribute(qualifiedName: string, value: string): void;
|
133
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
134
|
+
setAttributeNode(attr: Attr): Attr | null;
|
135
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
136
|
+
setHTMLUnsafe(html: string): void;
|
137
|
+
setPointerCapture(pointerId: number): void;
|
138
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
139
|
+
webkitMatchesSelector(selectors: string): boolean;
|
140
|
+
readonly baseURI: string;
|
141
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
142
|
+
readonly firstChild: ChildNode | null;
|
143
|
+
readonly isConnected: boolean;
|
144
|
+
readonly lastChild: ChildNode | null;
|
145
|
+
readonly nextSibling: ChildNode | null;
|
146
|
+
readonly nodeName: string;
|
147
|
+
readonly nodeType: number;
|
148
|
+
nodeValue: string | null;
|
149
|
+
readonly parentElement: HTMLElement | null;
|
150
|
+
readonly parentNode: ParentNode | null;
|
151
|
+
readonly previousSibling: ChildNode | null;
|
152
|
+
textContent: string | null;
|
153
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
154
|
+
cloneNode(subtree?: boolean): Node;
|
155
|
+
compareDocumentPosition(other: Node): number;
|
156
|
+
contains(other: Node | null): boolean;
|
157
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
158
|
+
hasChildNodes(): boolean;
|
159
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
160
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
161
|
+
isEqualNode(otherNode: Node | null): boolean;
|
162
|
+
isSameNode(otherNode: Node | null): boolean;
|
163
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
164
|
+
lookupPrefix(namespace: string | null): string | null;
|
165
|
+
normalize(): void;
|
166
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
167
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
168
|
+
readonly ELEMENT_NODE: 1;
|
169
|
+
readonly ATTRIBUTE_NODE: 2;
|
170
|
+
readonly TEXT_NODE: 3;
|
171
|
+
readonly CDATA_SECTION_NODE: 4;
|
172
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
173
|
+
readonly ENTITY_NODE: 6;
|
174
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
175
|
+
readonly COMMENT_NODE: 8;
|
176
|
+
readonly DOCUMENT_NODE: 9;
|
177
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
178
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
179
|
+
readonly NOTATION_NODE: 12;
|
180
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
181
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
182
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
183
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
184
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
185
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
186
|
+
dispatchEvent(event: Event): boolean;
|
187
|
+
ariaAtomic: string | null;
|
188
|
+
ariaAutoComplete: string | null;
|
189
|
+
ariaBrailleLabel: string | null;
|
190
|
+
ariaBrailleRoleDescription: string | null;
|
191
|
+
ariaBusy: string | null;
|
192
|
+
ariaChecked: string | null;
|
193
|
+
ariaColCount: string | null;
|
194
|
+
ariaColIndex: string | null;
|
195
|
+
ariaColIndexText: string | null;
|
196
|
+
ariaColSpan: string | null;
|
197
|
+
ariaCurrent: string | null;
|
198
|
+
ariaDescription: string | null;
|
199
|
+
ariaDisabled: string | null;
|
200
|
+
ariaExpanded: string | null;
|
201
|
+
ariaHasPopup: string | null;
|
202
|
+
ariaHidden: string | null;
|
203
|
+
ariaInvalid: string | null;
|
204
|
+
ariaKeyShortcuts: string | null;
|
205
|
+
ariaLabel: string | null;
|
206
|
+
ariaLevel: string | null;
|
207
|
+
ariaLive: string | null;
|
208
|
+
ariaModal: string | null;
|
209
|
+
ariaMultiLine: string | null;
|
210
|
+
ariaMultiSelectable: string | null;
|
211
|
+
ariaOrientation: string | null;
|
212
|
+
ariaPlaceholder: string | null;
|
213
|
+
ariaPosInSet: string | null;
|
214
|
+
ariaPressed: string | null;
|
215
|
+
ariaReadOnly: string | null;
|
216
|
+
ariaRelevant: string | null;
|
217
|
+
ariaRequired: string | null;
|
218
|
+
ariaRoleDescription: string | null;
|
219
|
+
ariaRowCount: string | null;
|
220
|
+
ariaRowIndex: string | null;
|
221
|
+
ariaRowIndexText: string | null;
|
222
|
+
ariaRowSpan: string | null;
|
223
|
+
ariaSelected: string | null;
|
224
|
+
ariaSetSize: string | null;
|
225
|
+
ariaSort: string | null;
|
226
|
+
ariaValueMax: string | null;
|
227
|
+
ariaValueMin: string | null;
|
228
|
+
ariaValueNow: string | null;
|
229
|
+
ariaValueText: string | null;
|
230
|
+
role: string | null;
|
231
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
232
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
233
|
+
after(...nodes: (Node | string)[]): void;
|
234
|
+
before(...nodes: (Node | string)[]): void;
|
235
|
+
remove(): void;
|
236
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
237
|
+
readonly nextElementSibling: Element | null;
|
238
|
+
readonly previousElementSibling: Element | null;
|
239
|
+
readonly childElementCount: number;
|
240
|
+
readonly children: HTMLCollection;
|
241
|
+
readonly firstElementChild: Element | null;
|
242
|
+
readonly lastElementChild: Element | null;
|
243
|
+
append(...nodes: (Node | string)[]): void;
|
244
|
+
prepend(...nodes: (Node | string)[]): void;
|
245
|
+
querySelector<K_1 extends keyof HTMLElementTagNameMap>(selectors: K_1): HTMLElementTagNameMap[K_1] | null;
|
246
|
+
querySelector<K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): SVGElementTagNameMap[K_1] | null;
|
247
|
+
querySelector<K_1 extends keyof MathMLElementTagNameMap>(selectors: K_1): MathMLElementTagNameMap[K_1] | null;
|
248
|
+
querySelector<K_1 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_1): HTMLElementDeprecatedTagNameMap[K_1] | null;
|
249
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
250
|
+
querySelectorAll<K_1 extends keyof HTMLElementTagNameMap>(selectors: K_1): NodeListOf<HTMLElementTagNameMap[K_1]>;
|
251
|
+
querySelectorAll<K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): NodeListOf<SVGElementTagNameMap[K_1]>;
|
252
|
+
querySelectorAll<K_1 extends keyof MathMLElementTagNameMap>(selectors: K_1): NodeListOf<MathMLElementTagNameMap[K_1]>;
|
253
|
+
querySelectorAll<K_1 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_1): NodeListOf<HTMLElementDeprecatedTagNameMap[K_1]>;
|
254
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
255
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
256
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
257
|
+
readonly attributeStyleMap: StylePropertyMap;
|
258
|
+
get style(): CSSStyleDeclaration;
|
259
|
+
set style(cssText: string);
|
260
|
+
contentEditable: string;
|
261
|
+
enterKeyHint: string;
|
262
|
+
inputMode: string;
|
263
|
+
readonly isContentEditable: boolean;
|
264
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
265
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
266
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
267
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
268
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
269
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
270
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
271
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
272
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
273
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
274
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
275
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
276
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
277
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
278
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
279
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
280
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
281
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
282
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
283
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
284
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
285
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
286
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
287
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
288
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
289
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
290
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
291
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
292
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
293
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
294
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
295
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
296
|
+
onerror: OnErrorEventHandler;
|
297
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
298
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
299
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
300
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
301
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
302
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
303
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
304
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
305
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
306
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
307
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
308
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
309
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
310
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
311
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
312
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
313
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
314
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
315
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
316
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
317
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
318
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
319
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
320
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
321
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
322
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
323
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
324
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
325
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
326
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
327
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
328
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
329
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
330
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
331
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
332
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
333
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
334
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
335
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
336
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
337
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
338
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
339
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
340
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
341
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
342
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
343
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
344
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
345
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
346
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
347
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
348
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
349
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
350
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
351
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
352
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
353
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
354
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
355
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
356
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
357
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
358
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
359
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
360
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
361
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
362
|
+
autofocus: boolean;
|
363
|
+
readonly dataset: DOMStringMap;
|
364
|
+
nonce?: string;
|
365
|
+
tabIndex: number;
|
366
|
+
blur(): void;
|
367
|
+
focus(options?: FocusOptions): void;
|
368
|
+
};
|
369
|
+
} & T;
|
370
|
+
export declare const Content: <T extends Constructor<HTMLElement>>(Super: T) => {
|
371
|
+
new (...args: any[]): {
|
372
|
+
/**
|
373
|
+
* @param instance The instance of the desired element to validate against,
|
374
|
+
* ex: `HTMLDialogElement`. Defaults to `HTMLElement`.
|
375
|
+
* @returns The element that matches the `content` selector.
|
376
|
+
* @default this.querySelector("[data-content]")
|
377
|
+
*/
|
378
|
+
getContent<T_1 extends HTMLElement>(instance: Constructor<T_1>): T_1;
|
379
|
+
getContent(): HTMLElement;
|
380
|
+
/**
|
381
|
+
* Finds the `HTMLElement | HTMLTemplateElement` via the `swap` selector and
|
382
|
+
* swaps `this.content()` with the content of the element found.
|
383
|
+
*
|
384
|
+
* @param revert Wait time (ms) before swapping back, set to `false` to not revert.
|
385
|
+
* default: `800`
|
386
|
+
*/
|
387
|
+
swapContent(revert?: number | false): void;
|
388
|
+
accessKey: string;
|
389
|
+
readonly accessKeyLabel: string;
|
390
|
+
autocapitalize: string;
|
391
|
+
dir: string;
|
392
|
+
draggable: boolean;
|
393
|
+
hidden: boolean;
|
394
|
+
inert: boolean;
|
395
|
+
innerText: string;
|
396
|
+
lang: string;
|
397
|
+
readonly offsetHeight: number;
|
398
|
+
readonly offsetLeft: number;
|
399
|
+
readonly offsetParent: Element | null;
|
400
|
+
readonly offsetTop: number;
|
401
|
+
readonly offsetWidth: number;
|
402
|
+
outerText: string;
|
403
|
+
popover: string | null;
|
404
|
+
spellcheck: boolean;
|
405
|
+
title: string;
|
406
|
+
translate: boolean;
|
407
|
+
writingSuggestions: string;
|
408
|
+
attachInternals(): ElementInternals;
|
409
|
+
click(): void;
|
410
|
+
hidePopover(): void;
|
411
|
+
showPopover(): void;
|
412
|
+
togglePopover(options?: boolean): boolean;
|
413
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
414
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
415
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
416
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
417
|
+
readonly attributes: NamedNodeMap;
|
418
|
+
get classList(): DOMTokenList;
|
419
|
+
set classList(value: string);
|
420
|
+
className: string;
|
421
|
+
readonly clientHeight: number;
|
422
|
+
readonly clientLeft: number;
|
423
|
+
readonly clientTop: number;
|
424
|
+
readonly clientWidth: number;
|
425
|
+
readonly currentCSSZoom: number;
|
426
|
+
id: string;
|
427
|
+
innerHTML: string;
|
428
|
+
readonly localName: string;
|
429
|
+
readonly namespaceURI: string | null;
|
430
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
431
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
432
|
+
outerHTML: string;
|
433
|
+
readonly ownerDocument: Document;
|
434
|
+
get part(): DOMTokenList;
|
435
|
+
set part(value: string);
|
436
|
+
readonly prefix: string | null;
|
437
|
+
readonly scrollHeight: number;
|
438
|
+
scrollLeft: number;
|
439
|
+
scrollTop: number;
|
440
|
+
readonly scrollWidth: number;
|
441
|
+
readonly shadowRoot: ShadowRoot | null;
|
442
|
+
slot: string;
|
443
|
+
readonly tagName: string;
|
444
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
445
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
446
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
447
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
448
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
449
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
450
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
451
|
+
getAttribute(qualifiedName: string): string | null;
|
452
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
453
|
+
getAttributeNames(): string[];
|
454
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
455
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
456
|
+
getBoundingClientRect(): DOMRect;
|
457
|
+
getClientRects(): DOMRectList;
|
458
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
459
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
460
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
461
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
462
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
463
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
464
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
465
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
466
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
467
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
468
|
+
getHTML(options?: GetHTMLOptions): string;
|
469
|
+
hasAttribute(qualifiedName: string): boolean;
|
470
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
471
|
+
hasAttributes(): boolean;
|
472
|
+
hasPointerCapture(pointerId: number): boolean;
|
473
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
474
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
475
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
476
|
+
matches(selectors: string): boolean;
|
477
|
+
releasePointerCapture(pointerId: number): void;
|
478
|
+
removeAttribute(qualifiedName: string): void;
|
479
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
480
|
+
removeAttributeNode(attr: Attr): Attr;
|
481
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
482
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
483
|
+
scroll(options?: ScrollToOptions): void;
|
484
|
+
scroll(x: number, y: number): void;
|
485
|
+
scrollBy(options?: ScrollToOptions): void;
|
486
|
+
scrollBy(x: number, y: number): void;
|
487
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
488
|
+
scrollTo(options?: ScrollToOptions): void;
|
489
|
+
scrollTo(x: number, y: number): void;
|
490
|
+
setAttribute(qualifiedName: string, value: string): void;
|
491
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
492
|
+
setAttributeNode(attr: Attr): Attr | null;
|
493
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
494
|
+
setHTMLUnsafe(html: string): void;
|
495
|
+
setPointerCapture(pointerId: number): void;
|
496
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
497
|
+
webkitMatchesSelector(selectors: string): boolean;
|
498
|
+
readonly baseURI: string;
|
499
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
500
|
+
readonly firstChild: ChildNode | null;
|
501
|
+
readonly isConnected: boolean;
|
502
|
+
readonly lastChild: ChildNode | null;
|
503
|
+
readonly nextSibling: ChildNode | null;
|
504
|
+
readonly nodeName: string;
|
505
|
+
readonly nodeType: number;
|
506
|
+
nodeValue: string | null;
|
507
|
+
readonly parentElement: HTMLElement | null;
|
508
|
+
readonly parentNode: ParentNode | null;
|
509
|
+
readonly previousSibling: ChildNode | null;
|
510
|
+
textContent: string | null;
|
511
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
512
|
+
cloneNode(subtree?: boolean): Node;
|
513
|
+
compareDocumentPosition(other: Node): number;
|
514
|
+
contains(other: Node | null): boolean;
|
515
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
516
|
+
hasChildNodes(): boolean;
|
517
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
518
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
519
|
+
isEqualNode(otherNode: Node | null): boolean;
|
520
|
+
isSameNode(otherNode: Node | null): boolean;
|
521
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
522
|
+
lookupPrefix(namespace: string | null): string | null;
|
523
|
+
normalize(): void;
|
524
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
525
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
526
|
+
readonly ELEMENT_NODE: 1;
|
527
|
+
readonly ATTRIBUTE_NODE: 2;
|
528
|
+
readonly TEXT_NODE: 3;
|
529
|
+
readonly CDATA_SECTION_NODE: 4;
|
530
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
531
|
+
readonly ENTITY_NODE: 6;
|
532
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
533
|
+
readonly COMMENT_NODE: 8;
|
534
|
+
readonly DOCUMENT_NODE: 9;
|
535
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
536
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
537
|
+
readonly NOTATION_NODE: 12;
|
538
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
539
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
540
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
541
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
542
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
543
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
544
|
+
dispatchEvent(event: Event): boolean;
|
545
|
+
ariaAtomic: string | null;
|
546
|
+
ariaAutoComplete: string | null;
|
547
|
+
ariaBrailleLabel: string | null;
|
548
|
+
ariaBrailleRoleDescription: string | null;
|
549
|
+
ariaBusy: string | null;
|
550
|
+
ariaChecked: string | null;
|
551
|
+
ariaColCount: string | null;
|
552
|
+
ariaColIndex: string | null;
|
553
|
+
ariaColIndexText: string | null;
|
554
|
+
ariaColSpan: string | null;
|
555
|
+
ariaCurrent: string | null;
|
556
|
+
ariaDescription: string | null;
|
557
|
+
ariaDisabled: string | null;
|
558
|
+
ariaExpanded: string | null;
|
559
|
+
ariaHasPopup: string | null;
|
560
|
+
ariaHidden: string | null;
|
561
|
+
ariaInvalid: string | null;
|
562
|
+
ariaKeyShortcuts: string | null;
|
563
|
+
ariaLabel: string | null;
|
564
|
+
ariaLevel: string | null;
|
565
|
+
ariaLive: string | null;
|
566
|
+
ariaModal: string | null;
|
567
|
+
ariaMultiLine: string | null;
|
568
|
+
ariaMultiSelectable: string | null;
|
569
|
+
ariaOrientation: string | null;
|
570
|
+
ariaPlaceholder: string | null;
|
571
|
+
ariaPosInSet: string | null;
|
572
|
+
ariaPressed: string | null;
|
573
|
+
ariaReadOnly: string | null;
|
574
|
+
ariaRelevant: string | null;
|
575
|
+
ariaRequired: string | null;
|
576
|
+
ariaRoleDescription: string | null;
|
577
|
+
ariaRowCount: string | null;
|
578
|
+
ariaRowIndex: string | null;
|
579
|
+
ariaRowIndexText: string | null;
|
580
|
+
ariaRowSpan: string | null;
|
581
|
+
ariaSelected: string | null;
|
582
|
+
ariaSetSize: string | null;
|
583
|
+
ariaSort: string | null;
|
584
|
+
ariaValueMax: string | null;
|
585
|
+
ariaValueMin: string | null;
|
586
|
+
ariaValueNow: string | null;
|
587
|
+
ariaValueText: string | null;
|
588
|
+
role: string | null;
|
589
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
590
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
591
|
+
after(...nodes: (Node | string)[]): void;
|
592
|
+
before(...nodes: (Node | string)[]): void;
|
593
|
+
remove(): void;
|
594
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
595
|
+
readonly nextElementSibling: Element | null;
|
596
|
+
readonly previousElementSibling: Element | null;
|
597
|
+
readonly childElementCount: number;
|
598
|
+
readonly children: HTMLCollection;
|
599
|
+
readonly firstElementChild: Element | null;
|
600
|
+
readonly lastElementChild: Element | null;
|
601
|
+
append(...nodes: (Node | string)[]): void;
|
602
|
+
prepend(...nodes: (Node | string)[]): void;
|
603
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
604
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
605
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
606
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
607
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
608
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
609
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
610
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
611
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
612
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
613
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
614
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
615
|
+
readonly attributeStyleMap: StylePropertyMap;
|
616
|
+
get style(): CSSStyleDeclaration;
|
617
|
+
set style(cssText: string);
|
618
|
+
contentEditable: string;
|
619
|
+
enterKeyHint: string;
|
620
|
+
inputMode: string;
|
621
|
+
readonly isContentEditable: boolean;
|
622
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
623
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
624
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
625
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
626
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
627
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
628
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
629
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
630
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
631
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
632
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
633
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
634
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
635
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
636
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
637
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
638
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
639
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
640
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
641
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
642
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
643
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
644
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
645
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
646
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
647
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
648
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
649
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
650
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
651
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
652
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
653
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
654
|
+
onerror: OnErrorEventHandler;
|
655
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
656
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
657
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
658
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
659
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
660
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
661
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
662
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
663
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
664
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
665
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
666
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
667
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
668
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
669
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
670
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
671
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
672
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
673
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
674
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
675
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
676
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
677
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
678
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
679
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
680
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
681
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
682
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
683
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
684
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
685
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
686
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
687
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
688
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
689
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
690
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
691
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
692
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
693
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
694
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
695
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
696
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
697
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
698
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
699
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
700
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
701
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
702
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
703
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
704
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
705
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
706
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
707
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
708
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
709
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
710
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
711
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
712
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
713
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
714
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
715
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
716
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
717
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
718
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
719
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
720
|
+
autofocus: boolean;
|
721
|
+
readonly dataset: DOMStringMap;
|
722
|
+
nonce?: string;
|
723
|
+
tabIndex: number;
|
724
|
+
blur(): void;
|
725
|
+
focus(options?: FocusOptions): void;
|
726
|
+
};
|
727
|
+
} & T;
|
728
|
+
export declare const Lifecycle: <T extends Constructor<HTMLElement>>(Super: T) => {
|
729
|
+
new (...args: any[]): {
|
730
|
+
/** To clean up event listeners added to `document` when the element is removed. */
|
731
|
+
"__#1@#listenerController": AbortController;
|
732
|
+
/**
|
733
|
+
* Wrapper around `addEventListener` that ensures when the element is
|
734
|
+
* removed from the DOM, these event listeners are cleaned up.
|
735
|
+
*
|
736
|
+
* @param type Event listener type - ex: `"keydown"`
|
737
|
+
* @param listener Listener to add to the target.
|
738
|
+
* @param target Event target to add the listener to - defaults to `document.body`.
|
739
|
+
* @param options Other options sans `signal`.
|
740
|
+
*/
|
741
|
+
safeListener<T_1 extends keyof HTMLElementEventMap>(type: T_1, listener: (this: HTMLElement, event: HTMLElementEventMap[T_1]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
|
742
|
+
safeListener<T_1 extends keyof DocumentEventMap>(type: T_1, listener: (this: Document, event: DocumentEventMap[T_1]) => any, document: Document, options?: AddEventListenerOptions): void;
|
743
|
+
safeListener<T_1 extends keyof WindowEventMap>(type: T_1, listener: (this: Window, event: WindowEventMap[T_1]) => any, window: Window, options?: AddEventListenerOptions): void;
|
744
|
+
/**
|
745
|
+
* Passed into `queueMicrotask` in `connectedCallback`.
|
746
|
+
* It is overridden in each component that needs to run `connectedCallback`.
|
747
|
+
*
|
748
|
+
* The reason for this is to make these elements work better with frameworks like Svelte.
|
749
|
+
* For SSR this isn't necessary, but when client side rendering, the HTML within the
|
750
|
+
* custom element isn't available before `connectedCallback` is called. By waiting until
|
751
|
+
* the next microtask, the HTML content is available---then for example, listeners can
|
752
|
+
* be attached to elements inside.
|
753
|
+
*/
|
754
|
+
mount(): void;
|
755
|
+
/** Called when custom element is added to the page. */
|
756
|
+
connectedCallback(): void;
|
757
|
+
/**
|
758
|
+
* Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallback` as well. It is overridden in each element that needs to run `disconnectedCallback`.
|
759
|
+
*/
|
760
|
+
destroy(): void;
|
761
|
+
/** Called when custom element is removed from the page. */
|
762
|
+
disconnectedCallback(): void;
|
763
|
+
accessKey: string;
|
764
|
+
readonly accessKeyLabel: string;
|
765
|
+
autocapitalize: string;
|
766
|
+
dir: string;
|
767
|
+
draggable: boolean;
|
768
|
+
hidden: boolean;
|
769
|
+
inert: boolean;
|
770
|
+
innerText: string;
|
771
|
+
lang: string;
|
772
|
+
readonly offsetHeight: number;
|
773
|
+
readonly offsetLeft: number;
|
774
|
+
readonly offsetParent: Element | null;
|
775
|
+
readonly offsetTop: number;
|
776
|
+
readonly offsetWidth: number;
|
777
|
+
outerText: string;
|
778
|
+
popover: string | null;
|
779
|
+
spellcheck: boolean;
|
780
|
+
title: string;
|
781
|
+
translate: boolean;
|
782
|
+
writingSuggestions: string;
|
783
|
+
attachInternals(): ElementInternals;
|
784
|
+
click(): void;
|
785
|
+
hidePopover(): void;
|
786
|
+
showPopover(): void;
|
787
|
+
togglePopover(options?: boolean): boolean;
|
788
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
789
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
790
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
791
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
792
|
+
readonly attributes: NamedNodeMap;
|
793
|
+
get classList(): DOMTokenList;
|
794
|
+
set classList(value: string);
|
795
|
+
className: string;
|
796
|
+
readonly clientHeight: number;
|
797
|
+
readonly clientLeft: number;
|
798
|
+
readonly clientTop: number;
|
799
|
+
readonly clientWidth: number;
|
800
|
+
readonly currentCSSZoom: number;
|
801
|
+
id: string;
|
802
|
+
innerHTML: string;
|
803
|
+
readonly localName: string;
|
804
|
+
readonly namespaceURI: string | null;
|
805
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
806
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
807
|
+
outerHTML: string;
|
808
|
+
readonly ownerDocument: Document;
|
809
|
+
get part(): DOMTokenList;
|
810
|
+
set part(value: string);
|
811
|
+
readonly prefix: string | null;
|
812
|
+
readonly scrollHeight: number;
|
813
|
+
scrollLeft: number;
|
814
|
+
scrollTop: number;
|
815
|
+
readonly scrollWidth: number;
|
816
|
+
readonly shadowRoot: ShadowRoot | null;
|
817
|
+
slot: string;
|
818
|
+
readonly tagName: string;
|
819
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
820
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
821
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
822
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
823
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
824
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
825
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
826
|
+
getAttribute(qualifiedName: string): string | null;
|
827
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
828
|
+
getAttributeNames(): string[];
|
829
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
830
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
831
|
+
getBoundingClientRect(): DOMRect;
|
832
|
+
getClientRects(): DOMRectList;
|
833
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
834
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
835
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
836
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
837
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
838
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
839
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
840
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
841
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
842
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
843
|
+
getHTML(options?: GetHTMLOptions): string;
|
844
|
+
hasAttribute(qualifiedName: string): boolean;
|
845
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
846
|
+
hasAttributes(): boolean;
|
847
|
+
hasPointerCapture(pointerId: number): boolean;
|
848
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
849
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
850
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
851
|
+
matches(selectors: string): boolean;
|
852
|
+
releasePointerCapture(pointerId: number): void;
|
853
|
+
removeAttribute(qualifiedName: string): void;
|
854
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
855
|
+
removeAttributeNode(attr: Attr): Attr;
|
856
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
857
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
858
|
+
scroll(options?: ScrollToOptions): void;
|
859
|
+
scroll(x: number, y: number): void;
|
860
|
+
scrollBy(options?: ScrollToOptions): void;
|
861
|
+
scrollBy(x: number, y: number): void;
|
862
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
863
|
+
scrollTo(options?: ScrollToOptions): void;
|
864
|
+
scrollTo(x: number, y: number): void;
|
865
|
+
setAttribute(qualifiedName: string, value: string): void;
|
866
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
867
|
+
setAttributeNode(attr: Attr): Attr | null;
|
868
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
869
|
+
setHTMLUnsafe(html: string): void;
|
870
|
+
setPointerCapture(pointerId: number): void;
|
871
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
872
|
+
webkitMatchesSelector(selectors: string): boolean;
|
873
|
+
readonly baseURI: string;
|
874
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
875
|
+
readonly firstChild: ChildNode | null;
|
876
|
+
readonly isConnected: boolean;
|
877
|
+
readonly lastChild: ChildNode | null;
|
878
|
+
readonly nextSibling: ChildNode | null;
|
879
|
+
readonly nodeName: string;
|
880
|
+
readonly nodeType: number;
|
881
|
+
nodeValue: string | null;
|
882
|
+
readonly parentElement: HTMLElement | null;
|
883
|
+
readonly parentNode: ParentNode | null;
|
884
|
+
readonly previousSibling: ChildNode | null;
|
885
|
+
textContent: string | null;
|
886
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
887
|
+
cloneNode(subtree?: boolean): Node;
|
888
|
+
compareDocumentPosition(other: Node): number;
|
889
|
+
contains(other: Node | null): boolean;
|
890
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
891
|
+
hasChildNodes(): boolean;
|
892
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
893
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
894
|
+
isEqualNode(otherNode: Node | null): boolean;
|
895
|
+
isSameNode(otherNode: Node | null): boolean;
|
896
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
897
|
+
lookupPrefix(namespace: string | null): string | null;
|
898
|
+
normalize(): void;
|
899
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
900
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
901
|
+
readonly ELEMENT_NODE: 1;
|
902
|
+
readonly ATTRIBUTE_NODE: 2;
|
903
|
+
readonly TEXT_NODE: 3;
|
904
|
+
readonly CDATA_SECTION_NODE: 4;
|
905
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
906
|
+
readonly ENTITY_NODE: 6;
|
907
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
908
|
+
readonly COMMENT_NODE: 8;
|
909
|
+
readonly DOCUMENT_NODE: 9;
|
910
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
911
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
912
|
+
readonly NOTATION_NODE: 12;
|
913
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
914
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
915
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
916
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
917
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
918
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
919
|
+
dispatchEvent(event: Event): boolean;
|
920
|
+
ariaAtomic: string | null;
|
921
|
+
ariaAutoComplete: string | null;
|
922
|
+
ariaBrailleLabel: string | null;
|
923
|
+
ariaBrailleRoleDescription: string | null;
|
924
|
+
ariaBusy: string | null;
|
925
|
+
ariaChecked: string | null;
|
926
|
+
ariaColCount: string | null;
|
927
|
+
ariaColIndex: string | null;
|
928
|
+
ariaColIndexText: string | null;
|
929
|
+
ariaColSpan: string | null;
|
930
|
+
ariaCurrent: string | null;
|
931
|
+
ariaDescription: string | null;
|
932
|
+
ariaDisabled: string | null;
|
933
|
+
ariaExpanded: string | null;
|
934
|
+
ariaHasPopup: string | null;
|
935
|
+
ariaHidden: string | null;
|
936
|
+
ariaInvalid: string | null;
|
937
|
+
ariaKeyShortcuts: string | null;
|
938
|
+
ariaLabel: string | null;
|
939
|
+
ariaLevel: string | null;
|
940
|
+
ariaLive: string | null;
|
941
|
+
ariaModal: string | null;
|
942
|
+
ariaMultiLine: string | null;
|
943
|
+
ariaMultiSelectable: string | null;
|
944
|
+
ariaOrientation: string | null;
|
945
|
+
ariaPlaceholder: string | null;
|
946
|
+
ariaPosInSet: string | null;
|
947
|
+
ariaPressed: string | null;
|
948
|
+
ariaReadOnly: string | null;
|
949
|
+
ariaRelevant: string | null;
|
950
|
+
ariaRequired: string | null;
|
951
|
+
ariaRoleDescription: string | null;
|
952
|
+
ariaRowCount: string | null;
|
953
|
+
ariaRowIndex: string | null;
|
954
|
+
ariaRowIndexText: string | null;
|
955
|
+
ariaRowSpan: string | null;
|
956
|
+
ariaSelected: string | null;
|
957
|
+
ariaSetSize: string | null;
|
958
|
+
ariaSort: string | null;
|
959
|
+
ariaValueMax: string | null;
|
960
|
+
ariaValueMin: string | null;
|
961
|
+
ariaValueNow: string | null;
|
962
|
+
ariaValueText: string | null;
|
963
|
+
role: string | null;
|
964
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
965
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
966
|
+
after(...nodes: (Node | string)[]): void;
|
967
|
+
before(...nodes: (Node | string)[]): void;
|
968
|
+
remove(): void;
|
969
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
970
|
+
readonly nextElementSibling: Element | null;
|
971
|
+
readonly previousElementSibling: Element | null;
|
972
|
+
readonly childElementCount: number;
|
973
|
+
readonly children: HTMLCollection;
|
974
|
+
readonly firstElementChild: Element | null;
|
975
|
+
readonly lastElementChild: Element | null;
|
976
|
+
append(...nodes: (Node | string)[]): void;
|
977
|
+
prepend(...nodes: (Node | string)[]): void;
|
978
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
979
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
980
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
981
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
982
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
983
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
984
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
985
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
986
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
987
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
988
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
989
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
990
|
+
readonly attributeStyleMap: StylePropertyMap;
|
991
|
+
get style(): CSSStyleDeclaration;
|
992
|
+
set style(cssText: string);
|
993
|
+
contentEditable: string;
|
994
|
+
enterKeyHint: string;
|
995
|
+
inputMode: string;
|
996
|
+
readonly isContentEditable: boolean;
|
997
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
998
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
999
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1000
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1001
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1002
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1003
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
1004
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1005
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1006
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1007
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1008
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1009
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1010
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1011
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1012
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1013
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1014
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1015
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1016
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1017
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1018
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1019
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1020
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1021
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1022
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1023
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1024
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1025
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1026
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1027
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1028
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1029
|
+
onerror: OnErrorEventHandler;
|
1030
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1031
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
1032
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1033
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1034
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1035
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1036
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1037
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1038
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1039
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1040
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1041
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1042
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1043
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1044
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1045
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1046
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1047
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1048
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1049
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1050
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1051
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1052
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1053
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1054
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1055
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1056
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1057
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1058
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1059
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1060
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1061
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1062
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
1063
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1064
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1065
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
1066
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1067
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1068
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
1069
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1070
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1071
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1072
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1073
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1074
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1075
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1076
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
1077
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1078
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1079
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1080
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1081
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1082
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1083
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1084
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1085
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1086
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1087
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1088
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1089
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1090
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1091
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1092
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1093
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1094
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
1095
|
+
autofocus: boolean;
|
1096
|
+
readonly dataset: DOMStringMap;
|
1097
|
+
nonce?: string;
|
1098
|
+
tabIndex: number;
|
1099
|
+
blur(): void;
|
1100
|
+
focus(options?: FocusOptions): void;
|
1101
|
+
};
|
1102
|
+
} & T;
|
1103
|
+
export declare const Announce: <T extends Constructor<HTMLElement>>(Super: T) => {
|
1104
|
+
new (...args: any[]): {
|
1105
|
+
/**
|
1106
|
+
* @param message message to announce to screen readers
|
1107
|
+
*/
|
1108
|
+
announce(message: string): void;
|
1109
|
+
accessKey: string;
|
1110
|
+
readonly accessKeyLabel: string;
|
1111
|
+
autocapitalize: string;
|
1112
|
+
dir: string;
|
1113
|
+
draggable: boolean;
|
1114
|
+
hidden: boolean;
|
1115
|
+
inert: boolean;
|
1116
|
+
innerText: string;
|
1117
|
+
lang: string;
|
1118
|
+
readonly offsetHeight: number;
|
1119
|
+
readonly offsetLeft: number;
|
1120
|
+
readonly offsetParent: Element | null;
|
1121
|
+
readonly offsetTop: number;
|
1122
|
+
readonly offsetWidth: number;
|
1123
|
+
outerText: string;
|
1124
|
+
popover: string | null;
|
1125
|
+
spellcheck: boolean;
|
1126
|
+
title: string;
|
1127
|
+
translate: boolean;
|
1128
|
+
writingSuggestions: string;
|
1129
|
+
attachInternals(): ElementInternals;
|
1130
|
+
click(): void;
|
1131
|
+
hidePopover(): void;
|
1132
|
+
showPopover(): void;
|
1133
|
+
togglePopover(options?: boolean): boolean;
|
1134
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1135
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1136
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1137
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1138
|
+
readonly attributes: NamedNodeMap;
|
1139
|
+
get classList(): DOMTokenList;
|
1140
|
+
set classList(value: string);
|
1141
|
+
className: string;
|
1142
|
+
readonly clientHeight: number;
|
1143
|
+
readonly clientLeft: number;
|
1144
|
+
readonly clientTop: number;
|
1145
|
+
readonly clientWidth: number;
|
1146
|
+
readonly currentCSSZoom: number;
|
1147
|
+
id: string;
|
1148
|
+
innerHTML: string;
|
1149
|
+
readonly localName: string;
|
1150
|
+
readonly namespaceURI: string | null;
|
1151
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
1152
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
1153
|
+
outerHTML: string;
|
1154
|
+
readonly ownerDocument: Document;
|
1155
|
+
get part(): DOMTokenList;
|
1156
|
+
set part(value: string);
|
1157
|
+
readonly prefix: string | null;
|
1158
|
+
readonly scrollHeight: number;
|
1159
|
+
scrollLeft: number;
|
1160
|
+
scrollTop: number;
|
1161
|
+
readonly scrollWidth: number;
|
1162
|
+
readonly shadowRoot: ShadowRoot | null;
|
1163
|
+
slot: string;
|
1164
|
+
readonly tagName: string;
|
1165
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
1166
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
1167
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
1168
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
1169
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
1170
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
1171
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
1172
|
+
getAttribute(qualifiedName: string): string | null;
|
1173
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
1174
|
+
getAttributeNames(): string[];
|
1175
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
1176
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
1177
|
+
getBoundingClientRect(): DOMRect;
|
1178
|
+
getClientRects(): DOMRectList;
|
1179
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
1180
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
1181
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
1182
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
1183
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
1184
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
1185
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
1186
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
1187
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
1188
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
1189
|
+
getHTML(options?: GetHTMLOptions): string;
|
1190
|
+
hasAttribute(qualifiedName: string): boolean;
|
1191
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
1192
|
+
hasAttributes(): boolean;
|
1193
|
+
hasPointerCapture(pointerId: number): boolean;
|
1194
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
1195
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
1196
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
1197
|
+
matches(selectors: string): boolean;
|
1198
|
+
releasePointerCapture(pointerId: number): void;
|
1199
|
+
removeAttribute(qualifiedName: string): void;
|
1200
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
1201
|
+
removeAttributeNode(attr: Attr): Attr;
|
1202
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
1203
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
1204
|
+
scroll(options?: ScrollToOptions): void;
|
1205
|
+
scroll(x: number, y: number): void;
|
1206
|
+
scrollBy(options?: ScrollToOptions): void;
|
1207
|
+
scrollBy(x: number, y: number): void;
|
1208
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
1209
|
+
scrollTo(options?: ScrollToOptions): void;
|
1210
|
+
scrollTo(x: number, y: number): void;
|
1211
|
+
setAttribute(qualifiedName: string, value: string): void;
|
1212
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
1213
|
+
setAttributeNode(attr: Attr): Attr | null;
|
1214
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
1215
|
+
setHTMLUnsafe(html: string): void;
|
1216
|
+
setPointerCapture(pointerId: number): void;
|
1217
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
1218
|
+
webkitMatchesSelector(selectors: string): boolean;
|
1219
|
+
readonly baseURI: string;
|
1220
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
1221
|
+
readonly firstChild: ChildNode | null;
|
1222
|
+
readonly isConnected: boolean;
|
1223
|
+
readonly lastChild: ChildNode | null;
|
1224
|
+
readonly nextSibling: ChildNode | null;
|
1225
|
+
readonly nodeName: string;
|
1226
|
+
readonly nodeType: number;
|
1227
|
+
nodeValue: string | null;
|
1228
|
+
readonly parentElement: HTMLElement | null;
|
1229
|
+
readonly parentNode: ParentNode | null;
|
1230
|
+
readonly previousSibling: ChildNode | null;
|
1231
|
+
textContent: string | null;
|
1232
|
+
appendChild<T_1 extends Node>(node: T_1): T_1;
|
1233
|
+
cloneNode(subtree?: boolean): Node;
|
1234
|
+
compareDocumentPosition(other: Node): number;
|
1235
|
+
contains(other: Node | null): boolean;
|
1236
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
1237
|
+
hasChildNodes(): boolean;
|
1238
|
+
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
1239
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
1240
|
+
isEqualNode(otherNode: Node | null): boolean;
|
1241
|
+
isSameNode(otherNode: Node | null): boolean;
|
1242
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
1243
|
+
lookupPrefix(namespace: string | null): string | null;
|
1244
|
+
normalize(): void;
|
1245
|
+
removeChild<T_1 extends Node>(child: T_1): T_1;
|
1246
|
+
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
1247
|
+
readonly ELEMENT_NODE: 1;
|
1248
|
+
readonly ATTRIBUTE_NODE: 2;
|
1249
|
+
readonly TEXT_NODE: 3;
|
1250
|
+
readonly CDATA_SECTION_NODE: 4;
|
1251
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
1252
|
+
readonly ENTITY_NODE: 6;
|
1253
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
1254
|
+
readonly COMMENT_NODE: 8;
|
1255
|
+
readonly DOCUMENT_NODE: 9;
|
1256
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
1257
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
1258
|
+
readonly NOTATION_NODE: 12;
|
1259
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
1260
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
1261
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
1262
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
1263
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
1264
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
1265
|
+
dispatchEvent(event: Event): boolean;
|
1266
|
+
ariaAtomic: string | null;
|
1267
|
+
ariaAutoComplete: string | null;
|
1268
|
+
ariaBrailleLabel: string | null;
|
1269
|
+
ariaBrailleRoleDescription: string | null;
|
1270
|
+
ariaBusy: string | null;
|
1271
|
+
ariaChecked: string | null;
|
1272
|
+
ariaColCount: string | null;
|
1273
|
+
ariaColIndex: string | null;
|
1274
|
+
ariaColIndexText: string | null;
|
1275
|
+
ariaColSpan: string | null;
|
1276
|
+
ariaCurrent: string | null;
|
1277
|
+
ariaDescription: string | null;
|
1278
|
+
ariaDisabled: string | null;
|
1279
|
+
ariaExpanded: string | null;
|
1280
|
+
ariaHasPopup: string | null;
|
1281
|
+
ariaHidden: string | null;
|
1282
|
+
ariaInvalid: string | null;
|
1283
|
+
ariaKeyShortcuts: string | null;
|
1284
|
+
ariaLabel: string | null;
|
1285
|
+
ariaLevel: string | null;
|
1286
|
+
ariaLive: string | null;
|
1287
|
+
ariaModal: string | null;
|
1288
|
+
ariaMultiLine: string | null;
|
1289
|
+
ariaMultiSelectable: string | null;
|
1290
|
+
ariaOrientation: string | null;
|
1291
|
+
ariaPlaceholder: string | null;
|
1292
|
+
ariaPosInSet: string | null;
|
1293
|
+
ariaPressed: string | null;
|
1294
|
+
ariaReadOnly: string | null;
|
1295
|
+
ariaRelevant: string | null;
|
1296
|
+
ariaRequired: string | null;
|
1297
|
+
ariaRoleDescription: string | null;
|
1298
|
+
ariaRowCount: string | null;
|
1299
|
+
ariaRowIndex: string | null;
|
1300
|
+
ariaRowIndexText: string | null;
|
1301
|
+
ariaRowSpan: string | null;
|
1302
|
+
ariaSelected: string | null;
|
1303
|
+
ariaSetSize: string | null;
|
1304
|
+
ariaSort: string | null;
|
1305
|
+
ariaValueMax: string | null;
|
1306
|
+
ariaValueMin: string | null;
|
1307
|
+
ariaValueNow: string | null;
|
1308
|
+
ariaValueText: string | null;
|
1309
|
+
role: string | null;
|
1310
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
1311
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
1312
|
+
after(...nodes: (Node | string)[]): void;
|
1313
|
+
before(...nodes: (Node | string)[]): void;
|
1314
|
+
remove(): void;
|
1315
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
1316
|
+
readonly nextElementSibling: Element | null;
|
1317
|
+
readonly previousElementSibling: Element | null;
|
1318
|
+
readonly childElementCount: number;
|
1319
|
+
readonly children: HTMLCollection;
|
1320
|
+
readonly firstElementChild: Element | null;
|
1321
|
+
readonly lastElementChild: Element | null;
|
1322
|
+
append(...nodes: (Node | string)[]): void;
|
1323
|
+
prepend(...nodes: (Node | string)[]): void;
|
1324
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
1325
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
1326
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
1327
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
1328
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
1329
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
1330
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
1331
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
1332
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
1333
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
1334
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
1335
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
1336
|
+
readonly attributeStyleMap: StylePropertyMap;
|
1337
|
+
get style(): CSSStyleDeclaration;
|
1338
|
+
set style(cssText: string);
|
1339
|
+
contentEditable: string;
|
1340
|
+
enterKeyHint: string;
|
1341
|
+
inputMode: string;
|
1342
|
+
readonly isContentEditable: boolean;
|
1343
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
1344
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1345
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1346
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1347
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1348
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1349
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
1350
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1351
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1352
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1353
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1354
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1355
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1356
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1357
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1358
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1359
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1360
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1361
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1362
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1363
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1364
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1365
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1366
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1367
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1368
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1369
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1370
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1371
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1372
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1373
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1374
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1375
|
+
onerror: OnErrorEventHandler;
|
1376
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1377
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
1378
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1379
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1380
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1381
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1382
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1383
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1384
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1385
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1386
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1387
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1388
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1389
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1390
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1391
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1392
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1393
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1394
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1395
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1396
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1397
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1398
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1399
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1400
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1401
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1402
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1403
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1404
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1405
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1406
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1407
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1408
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
1409
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1410
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1411
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
1412
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1413
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1414
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
1415
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1416
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1417
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1418
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1419
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1420
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1421
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1422
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
1423
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1424
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1425
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1426
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1427
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1428
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1429
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1430
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1431
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1432
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1433
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1434
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1435
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1436
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1437
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1438
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1439
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1440
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
1441
|
+
autofocus: boolean;
|
1442
|
+
readonly dataset: DOMStringMap;
|
1443
|
+
nonce?: string;
|
1444
|
+
tabIndex: number;
|
1445
|
+
blur(): void;
|
1446
|
+
focus(options?: FocusOptions): void;
|
1447
|
+
};
|
1448
|
+
/**
|
1449
|
+
* A single `Announcer` element to share between all drab elements to announce
|
1450
|
+
* interactive changes.
|
1451
|
+
*/
|
1452
|
+
"__#2@#announcer": Announcer;
|
1453
|
+
} & T;
|
1454
|
+
declare const Base_base: {
|
1455
|
+
new (...args: any[]): {
|
1456
|
+
/**
|
1457
|
+
* Event for the `trigger` to execute.
|
1458
|
+
*
|
1459
|
+
* For example, set to `"mouseover"` to execute the event when the user hovers the mouse over the `trigger`, instead of when they click it.
|
1460
|
+
*
|
1461
|
+
* @default "click"
|
1462
|
+
*/
|
1463
|
+
event: keyof HTMLElementEventMap;
|
1464
|
+
/**
|
1465
|
+
* @param instance The instance of the desired element to validate against,
|
1466
|
+
* ex: `HTMLButtonElement`. Defaults to `HTMLElement`.
|
1467
|
+
* @returns All of the elements that match the `trigger` selector.
|
1468
|
+
* @default this.querySelectorAll("[data-trigger]")
|
1469
|
+
*/
|
1470
|
+
getTrigger<T extends HTMLElement>(instance: Constructor<T>): NodeListOf<T>;
|
1471
|
+
getTrigger(): NodeListOf<HTMLElement>;
|
1472
|
+
/**
|
1473
|
+
* @param listener Listener to attach to all of the `trigger` elements.
|
1474
|
+
*/
|
1475
|
+
triggerListener<T extends HTMLElement, K extends keyof HTMLElementEventMap>(listener: (this: T, e: HTMLElementEventMap[K]) => any, type?: K, options?: AddEventListenerOptions): void;
|
1476
|
+
accessKey: string;
|
1477
|
+
readonly accessKeyLabel: string;
|
1478
|
+
autocapitalize: string;
|
1479
|
+
dir: string;
|
1480
|
+
draggable: boolean;
|
1481
|
+
hidden: boolean;
|
1482
|
+
inert: boolean;
|
1483
|
+
innerText: string;
|
1484
|
+
lang: string;
|
1485
|
+
readonly offsetHeight: number;
|
1486
|
+
readonly offsetLeft: number;
|
1487
|
+
readonly offsetParent: Element | null;
|
1488
|
+
readonly offsetTop: number;
|
1489
|
+
readonly offsetWidth: number;
|
1490
|
+
outerText: string;
|
1491
|
+
popover: string | null;
|
1492
|
+
spellcheck: boolean;
|
1493
|
+
title: string;
|
1494
|
+
translate: boolean;
|
1495
|
+
writingSuggestions: string;
|
1496
|
+
attachInternals(): ElementInternals;
|
1497
|
+
click(): void;
|
1498
|
+
hidePopover(): void;
|
1499
|
+
showPopover(): void;
|
1500
|
+
togglePopover(options?: boolean): boolean;
|
1501
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1502
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1503
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1504
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1505
|
+
readonly attributes: NamedNodeMap;
|
1506
|
+
get classList(): DOMTokenList;
|
1507
|
+
set classList(value: string);
|
1508
|
+
className: string;
|
1509
|
+
readonly clientHeight: number;
|
1510
|
+
readonly clientLeft: number;
|
1511
|
+
readonly clientTop: number;
|
1512
|
+
readonly clientWidth: number;
|
1513
|
+
readonly currentCSSZoom: number;
|
1514
|
+
id: string;
|
1515
|
+
innerHTML: string;
|
1516
|
+
readonly localName: string;
|
1517
|
+
readonly namespaceURI: string | null;
|
1518
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
1519
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
1520
|
+
outerHTML: string;
|
1521
|
+
readonly ownerDocument: Document;
|
1522
|
+
get part(): DOMTokenList;
|
1523
|
+
set part(value: string);
|
1524
|
+
readonly prefix: string | null;
|
1525
|
+
readonly scrollHeight: number;
|
1526
|
+
scrollLeft: number;
|
1527
|
+
scrollTop: number;
|
1528
|
+
readonly scrollWidth: number;
|
1529
|
+
readonly shadowRoot: ShadowRoot | null;
|
1530
|
+
slot: string;
|
1531
|
+
readonly tagName: string;
|
1532
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
1533
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
1534
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
1535
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
1536
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
1537
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
1538
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
1539
|
+
getAttribute(qualifiedName: string): string | null;
|
1540
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
1541
|
+
getAttributeNames(): string[];
|
1542
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
1543
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
1544
|
+
getBoundingClientRect(): DOMRect;
|
1545
|
+
getClientRects(): DOMRectList;
|
1546
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
1547
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
1548
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
1549
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
1550
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
1551
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
1552
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
1553
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
1554
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
1555
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
1556
|
+
getHTML(options?: GetHTMLOptions): string;
|
1557
|
+
hasAttribute(qualifiedName: string): boolean;
|
1558
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
1559
|
+
hasAttributes(): boolean;
|
1560
|
+
hasPointerCapture(pointerId: number): boolean;
|
1561
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
1562
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
1563
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
1564
|
+
matches(selectors: string): boolean;
|
1565
|
+
releasePointerCapture(pointerId: number): void;
|
1566
|
+
removeAttribute(qualifiedName: string): void;
|
1567
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
1568
|
+
removeAttributeNode(attr: Attr): Attr;
|
1569
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
1570
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
1571
|
+
scroll(options?: ScrollToOptions): void;
|
1572
|
+
scroll(x: number, y: number): void;
|
1573
|
+
scrollBy(options?: ScrollToOptions): void;
|
1574
|
+
scrollBy(x: number, y: number): void;
|
1575
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
1576
|
+
scrollTo(options?: ScrollToOptions): void;
|
1577
|
+
scrollTo(x: number, y: number): void;
|
1578
|
+
setAttribute(qualifiedName: string, value: string): void;
|
1579
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
1580
|
+
setAttributeNode(attr: Attr): Attr | null;
|
1581
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
1582
|
+
setHTMLUnsafe(html: string): void;
|
1583
|
+
setPointerCapture(pointerId: number): void;
|
1584
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
1585
|
+
webkitMatchesSelector(selectors: string): boolean;
|
1586
|
+
readonly baseURI: string;
|
1587
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
1588
|
+
readonly firstChild: ChildNode | null;
|
1589
|
+
readonly isConnected: boolean;
|
1590
|
+
readonly lastChild: ChildNode | null;
|
1591
|
+
readonly nextSibling: ChildNode | null;
|
1592
|
+
readonly nodeName: string;
|
1593
|
+
readonly nodeType: number;
|
1594
|
+
nodeValue: string | null;
|
1595
|
+
readonly parentElement: HTMLElement | null;
|
1596
|
+
readonly parentNode: ParentNode | null;
|
1597
|
+
readonly previousSibling: ChildNode | null;
|
1598
|
+
textContent: string | null;
|
1599
|
+
appendChild<T extends Node>(node: T): T;
|
1600
|
+
cloneNode(subtree?: boolean): Node;
|
1601
|
+
compareDocumentPosition(other: Node): number;
|
1602
|
+
contains(other: Node | null): boolean;
|
1603
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
1604
|
+
hasChildNodes(): boolean;
|
1605
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
1606
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
1607
|
+
isEqualNode(otherNode: Node | null): boolean;
|
1608
|
+
isSameNode(otherNode: Node | null): boolean;
|
1609
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
1610
|
+
lookupPrefix(namespace: string | null): string | null;
|
1611
|
+
normalize(): void;
|
1612
|
+
removeChild<T extends Node>(child: T): T;
|
1613
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
1614
|
+
readonly ELEMENT_NODE: 1;
|
1615
|
+
readonly ATTRIBUTE_NODE: 2;
|
1616
|
+
readonly TEXT_NODE: 3;
|
1617
|
+
readonly CDATA_SECTION_NODE: 4;
|
1618
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
1619
|
+
readonly ENTITY_NODE: 6;
|
1620
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
1621
|
+
readonly COMMENT_NODE: 8;
|
1622
|
+
readonly DOCUMENT_NODE: 9;
|
1623
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
1624
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
1625
|
+
readonly NOTATION_NODE: 12;
|
1626
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
1627
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
1628
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
1629
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
1630
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
1631
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
1632
|
+
dispatchEvent(event: Event): boolean;
|
1633
|
+
ariaAtomic: string | null;
|
1634
|
+
ariaAutoComplete: string | null;
|
1635
|
+
ariaBrailleLabel: string | null;
|
1636
|
+
ariaBrailleRoleDescription: string | null;
|
1637
|
+
ariaBusy: string | null;
|
1638
|
+
ariaChecked: string | null;
|
1639
|
+
ariaColCount: string | null;
|
1640
|
+
ariaColIndex: string | null;
|
1641
|
+
ariaColIndexText: string | null;
|
1642
|
+
ariaColSpan: string | null;
|
1643
|
+
ariaCurrent: string | null;
|
1644
|
+
ariaDescription: string | null;
|
1645
|
+
ariaDisabled: string | null;
|
1646
|
+
ariaExpanded: string | null;
|
1647
|
+
ariaHasPopup: string | null;
|
1648
|
+
ariaHidden: string | null;
|
1649
|
+
ariaInvalid: string | null;
|
1650
|
+
ariaKeyShortcuts: string | null;
|
1651
|
+
ariaLabel: string | null;
|
1652
|
+
ariaLevel: string | null;
|
1653
|
+
ariaLive: string | null;
|
1654
|
+
ariaModal: string | null;
|
1655
|
+
ariaMultiLine: string | null;
|
1656
|
+
ariaMultiSelectable: string | null;
|
1657
|
+
ariaOrientation: string | null;
|
1658
|
+
ariaPlaceholder: string | null;
|
1659
|
+
ariaPosInSet: string | null;
|
1660
|
+
ariaPressed: string | null;
|
1661
|
+
ariaReadOnly: string | null;
|
1662
|
+
ariaRelevant: string | null;
|
1663
|
+
ariaRequired: string | null;
|
1664
|
+
ariaRoleDescription: string | null;
|
1665
|
+
ariaRowCount: string | null;
|
1666
|
+
ariaRowIndex: string | null;
|
1667
|
+
ariaRowIndexText: string | null;
|
1668
|
+
ariaRowSpan: string | null;
|
1669
|
+
ariaSelected: string | null;
|
1670
|
+
ariaSetSize: string | null;
|
1671
|
+
ariaSort: string | null;
|
1672
|
+
ariaValueMax: string | null;
|
1673
|
+
ariaValueMin: string | null;
|
1674
|
+
ariaValueNow: string | null;
|
1675
|
+
ariaValueText: string | null;
|
1676
|
+
role: string | null;
|
1677
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
1678
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
1679
|
+
after(...nodes: (Node | string)[]): void;
|
1680
|
+
before(...nodes: (Node | string)[]): void;
|
1681
|
+
remove(): void;
|
1682
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
1683
|
+
readonly nextElementSibling: Element | null;
|
1684
|
+
readonly previousElementSibling: Element | null;
|
1685
|
+
readonly childElementCount: number;
|
1686
|
+
readonly children: HTMLCollection;
|
1687
|
+
readonly firstElementChild: Element | null;
|
1688
|
+
readonly lastElementChild: Element | null;
|
1689
|
+
append(...nodes: (Node | string)[]): void;
|
1690
|
+
prepend(...nodes: (Node | string)[]): void;
|
1691
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
1692
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
1693
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
1694
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
1695
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
1696
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
1697
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
1698
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
1699
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
1700
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
1701
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
1702
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
1703
|
+
readonly attributeStyleMap: StylePropertyMap;
|
1704
|
+
get style(): CSSStyleDeclaration;
|
1705
|
+
set style(cssText: string);
|
1706
|
+
contentEditable: string;
|
1707
|
+
enterKeyHint: string;
|
1708
|
+
inputMode: string;
|
1709
|
+
readonly isContentEditable: boolean;
|
1710
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
1711
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1712
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1713
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1714
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
1715
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1716
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
1717
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1718
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1719
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1720
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1721
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1722
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1723
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1724
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1725
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1726
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1727
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1728
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1729
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1730
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1731
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1732
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1733
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1734
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1735
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1736
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1737
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1738
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
1739
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1740
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1741
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1742
|
+
onerror: OnErrorEventHandler;
|
1743
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
1744
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
1745
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1746
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1747
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1748
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1749
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1750
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
1751
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1752
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1753
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1754
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1755
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1756
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1757
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1758
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1759
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1760
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1761
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1762
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
1763
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
1764
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1765
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1766
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1767
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1768
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1769
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1770
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1771
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1772
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1773
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1774
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
1775
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
1776
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1777
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1778
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
1779
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1780
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1781
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
1782
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1783
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1784
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1785
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1786
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1787
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1788
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1789
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
1790
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1791
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1792
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1793
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1794
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1795
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1796
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
1797
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1798
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1799
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1800
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
1801
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1802
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1803
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1804
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1805
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1806
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
1807
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
1808
|
+
autofocus: boolean;
|
1809
|
+
readonly dataset: DOMStringMap;
|
1810
|
+
nonce?: string;
|
1811
|
+
tabIndex: number;
|
1812
|
+
blur(): void;
|
1813
|
+
focus(options?: FocusOptions): void;
|
1814
|
+
};
|
1815
|
+
} & {
|
1816
|
+
new (...args: any[]): {
|
1817
|
+
/**
|
1818
|
+
* @param instance The instance of the desired element to validate against,
|
1819
|
+
* ex: `HTMLDialogElement`. Defaults to `HTMLElement`.
|
1820
|
+
* @returns The element that matches the `content` selector.
|
1821
|
+
* @default this.querySelector("[data-content]")
|
1822
|
+
*/
|
1823
|
+
getContent<T extends HTMLElement>(instance: Constructor<T>): T;
|
1824
|
+
getContent(): HTMLElement;
|
1825
|
+
/**
|
1826
|
+
* Finds the `HTMLElement | HTMLTemplateElement` via the `swap` selector and
|
1827
|
+
* swaps `this.content()` with the content of the element found.
|
1828
|
+
*
|
1829
|
+
* @param revert Wait time (ms) before swapping back, set to `false` to not revert.
|
1830
|
+
* default: `800`
|
1831
|
+
*/
|
1832
|
+
swapContent(revert?: number | false): void;
|
1833
|
+
accessKey: string;
|
1834
|
+
readonly accessKeyLabel: string;
|
1835
|
+
autocapitalize: string;
|
1836
|
+
dir: string;
|
1837
|
+
draggable: boolean;
|
1838
|
+
hidden: boolean;
|
1839
|
+
inert: boolean;
|
1840
|
+
innerText: string;
|
1841
|
+
lang: string;
|
1842
|
+
readonly offsetHeight: number;
|
1843
|
+
readonly offsetLeft: number;
|
1844
|
+
readonly offsetParent: Element | null;
|
1845
|
+
readonly offsetTop: number;
|
1846
|
+
readonly offsetWidth: number;
|
1847
|
+
outerText: string;
|
1848
|
+
popover: string | null;
|
1849
|
+
spellcheck: boolean;
|
1850
|
+
title: string;
|
1851
|
+
translate: boolean;
|
1852
|
+
writingSuggestions: string;
|
1853
|
+
attachInternals(): ElementInternals;
|
1854
|
+
click(): void;
|
1855
|
+
hidePopover(): void;
|
1856
|
+
showPopover(): void;
|
1857
|
+
togglePopover(options?: boolean): boolean;
|
1858
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
1859
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
1860
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
1861
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
1862
|
+
readonly attributes: NamedNodeMap;
|
1863
|
+
get classList(): DOMTokenList;
|
1864
|
+
set classList(value: string);
|
1865
|
+
className: string;
|
1866
|
+
readonly clientHeight: number;
|
1867
|
+
readonly clientLeft: number;
|
1868
|
+
readonly clientTop: number;
|
1869
|
+
readonly clientWidth: number;
|
1870
|
+
readonly currentCSSZoom: number;
|
1871
|
+
id: string;
|
1872
|
+
innerHTML: string;
|
1873
|
+
readonly localName: string;
|
1874
|
+
readonly namespaceURI: string | null;
|
1875
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
1876
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
1877
|
+
outerHTML: string;
|
1878
|
+
readonly ownerDocument: Document;
|
1879
|
+
get part(): DOMTokenList;
|
1880
|
+
set part(value: string);
|
1881
|
+
readonly prefix: string | null;
|
1882
|
+
readonly scrollHeight: number;
|
1883
|
+
scrollLeft: number;
|
1884
|
+
scrollTop: number;
|
1885
|
+
readonly scrollWidth: number;
|
1886
|
+
readonly shadowRoot: ShadowRoot | null;
|
1887
|
+
slot: string;
|
1888
|
+
readonly tagName: string;
|
1889
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
1890
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
1891
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
1892
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
1893
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
1894
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
1895
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
1896
|
+
getAttribute(qualifiedName: string): string | null;
|
1897
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
1898
|
+
getAttributeNames(): string[];
|
1899
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
1900
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
1901
|
+
getBoundingClientRect(): DOMRect;
|
1902
|
+
getClientRects(): DOMRectList;
|
1903
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
1904
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
1905
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
1906
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
1907
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
1908
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
1909
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
1910
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
1911
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
1912
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
1913
|
+
getHTML(options?: GetHTMLOptions): string;
|
1914
|
+
hasAttribute(qualifiedName: string): boolean;
|
1915
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
1916
|
+
hasAttributes(): boolean;
|
1917
|
+
hasPointerCapture(pointerId: number): boolean;
|
1918
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
1919
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
1920
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
1921
|
+
matches(selectors: string): boolean;
|
1922
|
+
releasePointerCapture(pointerId: number): void;
|
1923
|
+
removeAttribute(qualifiedName: string): void;
|
1924
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
1925
|
+
removeAttributeNode(attr: Attr): Attr;
|
1926
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
1927
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
1928
|
+
scroll(options?: ScrollToOptions): void;
|
1929
|
+
scroll(x: number, y: number): void;
|
1930
|
+
scrollBy(options?: ScrollToOptions): void;
|
1931
|
+
scrollBy(x: number, y: number): void;
|
1932
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
1933
|
+
scrollTo(options?: ScrollToOptions): void;
|
1934
|
+
scrollTo(x: number, y: number): void;
|
1935
|
+
setAttribute(qualifiedName: string, value: string): void;
|
1936
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
1937
|
+
setAttributeNode(attr: Attr): Attr | null;
|
1938
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
1939
|
+
setHTMLUnsafe(html: string): void;
|
1940
|
+
setPointerCapture(pointerId: number): void;
|
1941
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
1942
|
+
webkitMatchesSelector(selectors: string): boolean;
|
1943
|
+
readonly baseURI: string;
|
1944
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
1945
|
+
readonly firstChild: ChildNode | null;
|
1946
|
+
readonly isConnected: boolean;
|
1947
|
+
readonly lastChild: ChildNode | null;
|
1948
|
+
readonly nextSibling: ChildNode | null;
|
1949
|
+
readonly nodeName: string;
|
1950
|
+
readonly nodeType: number;
|
1951
|
+
nodeValue: string | null;
|
1952
|
+
readonly parentElement: HTMLElement | null;
|
1953
|
+
readonly parentNode: ParentNode | null;
|
1954
|
+
readonly previousSibling: ChildNode | null;
|
1955
|
+
textContent: string | null;
|
1956
|
+
appendChild<T extends Node>(node: T): T;
|
1957
|
+
cloneNode(subtree?: boolean): Node;
|
1958
|
+
compareDocumentPosition(other: Node): number;
|
1959
|
+
contains(other: Node | null): boolean;
|
1960
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
1961
|
+
hasChildNodes(): boolean;
|
1962
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
1963
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
1964
|
+
isEqualNode(otherNode: Node | null): boolean;
|
1965
|
+
isSameNode(otherNode: Node | null): boolean;
|
1966
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
1967
|
+
lookupPrefix(namespace: string | null): string | null;
|
1968
|
+
normalize(): void;
|
1969
|
+
removeChild<T extends Node>(child: T): T;
|
1970
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
1971
|
+
readonly ELEMENT_NODE: 1;
|
1972
|
+
readonly ATTRIBUTE_NODE: 2;
|
1973
|
+
readonly TEXT_NODE: 3;
|
1974
|
+
readonly CDATA_SECTION_NODE: 4;
|
1975
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
1976
|
+
readonly ENTITY_NODE: 6;
|
1977
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
1978
|
+
readonly COMMENT_NODE: 8;
|
1979
|
+
readonly DOCUMENT_NODE: 9;
|
1980
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
1981
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
1982
|
+
readonly NOTATION_NODE: 12;
|
1983
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
1984
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
1985
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
1986
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
1987
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
1988
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
1989
|
+
dispatchEvent(event: Event): boolean;
|
1990
|
+
ariaAtomic: string | null;
|
1991
|
+
ariaAutoComplete: string | null;
|
1992
|
+
ariaBrailleLabel: string | null;
|
1993
|
+
ariaBrailleRoleDescription: string | null;
|
1994
|
+
ariaBusy: string | null;
|
1995
|
+
ariaChecked: string | null;
|
1996
|
+
ariaColCount: string | null;
|
1997
|
+
ariaColIndex: string | null;
|
1998
|
+
ariaColIndexText: string | null;
|
1999
|
+
ariaColSpan: string | null;
|
2000
|
+
ariaCurrent: string | null;
|
2001
|
+
ariaDescription: string | null;
|
2002
|
+
ariaDisabled: string | null;
|
2003
|
+
ariaExpanded: string | null;
|
2004
|
+
ariaHasPopup: string | null;
|
2005
|
+
ariaHidden: string | null;
|
2006
|
+
ariaInvalid: string | null;
|
2007
|
+
ariaKeyShortcuts: string | null;
|
2008
|
+
ariaLabel: string | null;
|
2009
|
+
ariaLevel: string | null;
|
2010
|
+
ariaLive: string | null;
|
2011
|
+
ariaModal: string | null;
|
2012
|
+
ariaMultiLine: string | null;
|
2013
|
+
ariaMultiSelectable: string | null;
|
2014
|
+
ariaOrientation: string | null;
|
2015
|
+
ariaPlaceholder: string | null;
|
2016
|
+
ariaPosInSet: string | null;
|
2017
|
+
ariaPressed: string | null;
|
2018
|
+
ariaReadOnly: string | null;
|
2019
|
+
ariaRelevant: string | null;
|
2020
|
+
ariaRequired: string | null;
|
2021
|
+
ariaRoleDescription: string | null;
|
2022
|
+
ariaRowCount: string | null;
|
2023
|
+
ariaRowIndex: string | null;
|
2024
|
+
ariaRowIndexText: string | null;
|
2025
|
+
ariaRowSpan: string | null;
|
2026
|
+
ariaSelected: string | null;
|
2027
|
+
ariaSetSize: string | null;
|
2028
|
+
ariaSort: string | null;
|
2029
|
+
ariaValueMax: string | null;
|
2030
|
+
ariaValueMin: string | null;
|
2031
|
+
ariaValueNow: string | null;
|
2032
|
+
ariaValueText: string | null;
|
2033
|
+
role: string | null;
|
2034
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
2035
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
2036
|
+
after(...nodes: (Node | string)[]): void;
|
2037
|
+
before(...nodes: (Node | string)[]): void;
|
2038
|
+
remove(): void;
|
2039
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
2040
|
+
readonly nextElementSibling: Element | null;
|
2041
|
+
readonly previousElementSibling: Element | null;
|
2042
|
+
readonly childElementCount: number;
|
2043
|
+
readonly children: HTMLCollection;
|
2044
|
+
readonly firstElementChild: Element | null;
|
2045
|
+
readonly lastElementChild: Element | null;
|
2046
|
+
append(...nodes: (Node | string)[]): void;
|
2047
|
+
prepend(...nodes: (Node | string)[]): void;
|
2048
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
2049
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
2050
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
2051
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
2052
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
2053
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
2054
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
2055
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
2056
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
2057
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
2058
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
2059
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
2060
|
+
readonly attributeStyleMap: StylePropertyMap;
|
2061
|
+
get style(): CSSStyleDeclaration;
|
2062
|
+
set style(cssText: string);
|
2063
|
+
contentEditable: string;
|
2064
|
+
enterKeyHint: string;
|
2065
|
+
inputMode: string;
|
2066
|
+
readonly isContentEditable: boolean;
|
2067
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2068
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2069
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2070
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2071
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2072
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2073
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
2074
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2075
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2076
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2077
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2078
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2079
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2080
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2081
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2082
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2083
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2084
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2085
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2086
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2087
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2088
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2089
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2090
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2091
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2092
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2093
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2094
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2095
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2096
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2097
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2098
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2099
|
+
onerror: OnErrorEventHandler;
|
2100
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2101
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
2102
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2103
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2104
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2105
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2106
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2107
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2108
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2109
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2110
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2111
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2112
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2113
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2114
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2115
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2116
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2117
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2118
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2119
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2120
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2121
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2122
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2123
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2124
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2125
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2126
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2127
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2128
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2129
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2130
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2131
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2132
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
2133
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2134
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2135
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2136
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2137
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2138
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
2139
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2140
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2141
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2142
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2143
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2144
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2145
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2146
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
2147
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2148
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2149
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2150
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2151
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2152
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2153
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2154
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2155
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2156
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2157
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2158
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2159
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2160
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2161
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2162
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2163
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2164
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
2165
|
+
autofocus: boolean;
|
2166
|
+
readonly dataset: DOMStringMap;
|
2167
|
+
nonce?: string;
|
2168
|
+
tabIndex: number;
|
2169
|
+
blur(): void;
|
2170
|
+
focus(options?: FocusOptions): void;
|
2171
|
+
};
|
2172
|
+
} & {
|
2173
|
+
new (...args: any[]): {
|
2174
|
+
/** To clean up event listeners added to `document` when the element is removed. */
|
2175
|
+
"__#1@#listenerController": AbortController;
|
2176
|
+
/**
|
2177
|
+
* Wrapper around `addEventListener` that ensures when the element is
|
2178
|
+
* removed from the DOM, these event listeners are cleaned up.
|
2179
|
+
*
|
2180
|
+
* @param type Event listener type - ex: `"keydown"`
|
2181
|
+
* @param listener Listener to add to the target.
|
2182
|
+
* @param target Event target to add the listener to - defaults to `document.body`.
|
2183
|
+
* @param options Other options sans `signal`.
|
2184
|
+
*/
|
2185
|
+
safeListener<T extends keyof HTMLElementEventMap>(type: T, listener: (this: HTMLElement, event: HTMLElementEventMap[T]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
|
2186
|
+
safeListener<T extends keyof DocumentEventMap>(type: T, listener: (this: Document, event: DocumentEventMap[T]) => any, document: Document, options?: AddEventListenerOptions): void;
|
2187
|
+
safeListener<T extends keyof WindowEventMap>(type: T, listener: (this: Window, event: WindowEventMap[T]) => any, window: Window, options?: AddEventListenerOptions): void;
|
2188
|
+
/**
|
2189
|
+
* Passed into `queueMicrotask` in `connectedCallback`.
|
2190
|
+
* It is overridden in each component that needs to run `connectedCallback`.
|
2191
|
+
*
|
2192
|
+
* The reason for this is to make these elements work better with frameworks like Svelte.
|
2193
|
+
* For SSR this isn't necessary, but when client side rendering, the HTML within the
|
2194
|
+
* custom element isn't available before `connectedCallback` is called. By waiting until
|
2195
|
+
* the next microtask, the HTML content is available---then for example, listeners can
|
2196
|
+
* be attached to elements inside.
|
2197
|
+
*/
|
2198
|
+
mount(): void;
|
2199
|
+
/** Called when custom element is added to the page. */
|
2200
|
+
connectedCallback(): void;
|
2201
|
+
/**
|
2202
|
+
* Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallback` as well. It is overridden in each element that needs to run `disconnectedCallback`.
|
2203
|
+
*/
|
2204
|
+
destroy(): void;
|
2205
|
+
/** Called when custom element is removed from the page. */
|
2206
|
+
disconnectedCallback(): void;
|
2207
|
+
accessKey: string;
|
2208
|
+
readonly accessKeyLabel: string;
|
2209
|
+
autocapitalize: string;
|
2210
|
+
dir: string;
|
2211
|
+
draggable: boolean;
|
2212
|
+
hidden: boolean;
|
2213
|
+
inert: boolean;
|
2214
|
+
innerText: string;
|
2215
|
+
lang: string;
|
2216
|
+
readonly offsetHeight: number;
|
2217
|
+
readonly offsetLeft: number;
|
2218
|
+
readonly offsetParent: Element | null;
|
2219
|
+
readonly offsetTop: number;
|
2220
|
+
readonly offsetWidth: number;
|
2221
|
+
outerText: string;
|
2222
|
+
popover: string | null;
|
2223
|
+
spellcheck: boolean;
|
2224
|
+
title: string;
|
2225
|
+
translate: boolean;
|
2226
|
+
writingSuggestions: string;
|
2227
|
+
attachInternals(): ElementInternals;
|
2228
|
+
click(): void;
|
2229
|
+
hidePopover(): void;
|
2230
|
+
showPopover(): void;
|
2231
|
+
togglePopover(options?: boolean): boolean;
|
2232
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
2233
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
2234
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
2235
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
2236
|
+
readonly attributes: NamedNodeMap;
|
2237
|
+
get classList(): DOMTokenList;
|
2238
|
+
set classList(value: string);
|
2239
|
+
className: string;
|
2240
|
+
readonly clientHeight: number;
|
2241
|
+
readonly clientLeft: number;
|
2242
|
+
readonly clientTop: number;
|
2243
|
+
readonly clientWidth: number;
|
2244
|
+
readonly currentCSSZoom: number;
|
2245
|
+
id: string;
|
2246
|
+
innerHTML: string;
|
2247
|
+
readonly localName: string;
|
2248
|
+
readonly namespaceURI: string | null;
|
2249
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
2250
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
2251
|
+
outerHTML: string;
|
2252
|
+
readonly ownerDocument: Document;
|
2253
|
+
get part(): DOMTokenList;
|
2254
|
+
set part(value: string);
|
2255
|
+
readonly prefix: string | null;
|
2256
|
+
readonly scrollHeight: number;
|
2257
|
+
scrollLeft: number;
|
2258
|
+
scrollTop: number;
|
2259
|
+
readonly scrollWidth: number;
|
2260
|
+
readonly shadowRoot: ShadowRoot | null;
|
2261
|
+
slot: string;
|
2262
|
+
readonly tagName: string;
|
2263
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
2264
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
2265
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
2266
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
2267
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
2268
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
2269
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
2270
|
+
getAttribute(qualifiedName: string): string | null;
|
2271
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
2272
|
+
getAttributeNames(): string[];
|
2273
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
2274
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
2275
|
+
getBoundingClientRect(): DOMRect;
|
2276
|
+
getClientRects(): DOMRectList;
|
2277
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
2278
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
2279
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
2280
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
2281
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
2282
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
2283
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
2284
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
2285
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
2286
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
2287
|
+
getHTML(options?: GetHTMLOptions): string;
|
2288
|
+
hasAttribute(qualifiedName: string): boolean;
|
2289
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
2290
|
+
hasAttributes(): boolean;
|
2291
|
+
hasPointerCapture(pointerId: number): boolean;
|
2292
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
2293
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
2294
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
2295
|
+
matches(selectors: string): boolean;
|
2296
|
+
releasePointerCapture(pointerId: number): void;
|
2297
|
+
removeAttribute(qualifiedName: string): void;
|
2298
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
2299
|
+
removeAttributeNode(attr: Attr): Attr;
|
2300
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
2301
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
2302
|
+
scroll(options?: ScrollToOptions): void;
|
2303
|
+
scroll(x: number, y: number): void;
|
2304
|
+
scrollBy(options?: ScrollToOptions): void;
|
2305
|
+
scrollBy(x: number, y: number): void;
|
2306
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
2307
|
+
scrollTo(options?: ScrollToOptions): void;
|
2308
|
+
scrollTo(x: number, y: number): void;
|
2309
|
+
setAttribute(qualifiedName: string, value: string): void;
|
2310
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
2311
|
+
setAttributeNode(attr: Attr): Attr | null;
|
2312
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
2313
|
+
setHTMLUnsafe(html: string): void;
|
2314
|
+
setPointerCapture(pointerId: number): void;
|
2315
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
2316
|
+
webkitMatchesSelector(selectors: string): boolean;
|
2317
|
+
readonly baseURI: string;
|
2318
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
2319
|
+
readonly firstChild: ChildNode | null;
|
2320
|
+
readonly isConnected: boolean;
|
2321
|
+
readonly lastChild: ChildNode | null;
|
2322
|
+
readonly nextSibling: ChildNode | null;
|
2323
|
+
readonly nodeName: string;
|
2324
|
+
readonly nodeType: number;
|
2325
|
+
nodeValue: string | null;
|
2326
|
+
readonly parentElement: HTMLElement | null;
|
2327
|
+
readonly parentNode: ParentNode | null;
|
2328
|
+
readonly previousSibling: ChildNode | null;
|
2329
|
+
textContent: string | null;
|
2330
|
+
appendChild<T extends Node>(node: T): T;
|
2331
|
+
cloneNode(subtree?: boolean): Node;
|
2332
|
+
compareDocumentPosition(other: Node): number;
|
2333
|
+
contains(other: Node | null): boolean;
|
2334
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
2335
|
+
hasChildNodes(): boolean;
|
2336
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
2337
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
2338
|
+
isEqualNode(otherNode: Node | null): boolean;
|
2339
|
+
isSameNode(otherNode: Node | null): boolean;
|
2340
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
2341
|
+
lookupPrefix(namespace: string | null): string | null;
|
2342
|
+
normalize(): void;
|
2343
|
+
removeChild<T extends Node>(child: T): T;
|
2344
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
2345
|
+
readonly ELEMENT_NODE: 1;
|
2346
|
+
readonly ATTRIBUTE_NODE: 2;
|
2347
|
+
readonly TEXT_NODE: 3;
|
2348
|
+
readonly CDATA_SECTION_NODE: 4;
|
2349
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
2350
|
+
readonly ENTITY_NODE: 6;
|
2351
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
2352
|
+
readonly COMMENT_NODE: 8;
|
2353
|
+
readonly DOCUMENT_NODE: 9;
|
2354
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
2355
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
2356
|
+
readonly NOTATION_NODE: 12;
|
2357
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
2358
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
2359
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
2360
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
2361
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
2362
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
2363
|
+
dispatchEvent(event: Event): boolean;
|
2364
|
+
ariaAtomic: string | null;
|
2365
|
+
ariaAutoComplete: string | null;
|
2366
|
+
ariaBrailleLabel: string | null;
|
2367
|
+
ariaBrailleRoleDescription: string | null;
|
2368
|
+
ariaBusy: string | null;
|
2369
|
+
ariaChecked: string | null;
|
2370
|
+
ariaColCount: string | null;
|
2371
|
+
ariaColIndex: string | null;
|
2372
|
+
ariaColIndexText: string | null;
|
2373
|
+
ariaColSpan: string | null;
|
2374
|
+
ariaCurrent: string | null;
|
2375
|
+
ariaDescription: string | null;
|
2376
|
+
ariaDisabled: string | null;
|
2377
|
+
ariaExpanded: string | null;
|
2378
|
+
ariaHasPopup: string | null;
|
2379
|
+
ariaHidden: string | null;
|
2380
|
+
ariaInvalid: string | null;
|
2381
|
+
ariaKeyShortcuts: string | null;
|
2382
|
+
ariaLabel: string | null;
|
2383
|
+
ariaLevel: string | null;
|
2384
|
+
ariaLive: string | null;
|
2385
|
+
ariaModal: string | null;
|
2386
|
+
ariaMultiLine: string | null;
|
2387
|
+
ariaMultiSelectable: string | null;
|
2388
|
+
ariaOrientation: string | null;
|
2389
|
+
ariaPlaceholder: string | null;
|
2390
|
+
ariaPosInSet: string | null;
|
2391
|
+
ariaPressed: string | null;
|
2392
|
+
ariaReadOnly: string | null;
|
2393
|
+
ariaRelevant: string | null;
|
2394
|
+
ariaRequired: string | null;
|
2395
|
+
ariaRoleDescription: string | null;
|
2396
|
+
ariaRowCount: string | null;
|
2397
|
+
ariaRowIndex: string | null;
|
2398
|
+
ariaRowIndexText: string | null;
|
2399
|
+
ariaRowSpan: string | null;
|
2400
|
+
ariaSelected: string | null;
|
2401
|
+
ariaSetSize: string | null;
|
2402
|
+
ariaSort: string | null;
|
2403
|
+
ariaValueMax: string | null;
|
2404
|
+
ariaValueMin: string | null;
|
2405
|
+
ariaValueNow: string | null;
|
2406
|
+
ariaValueText: string | null;
|
2407
|
+
role: string | null;
|
2408
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
2409
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
2410
|
+
after(...nodes: (Node | string)[]): void;
|
2411
|
+
before(...nodes: (Node | string)[]): void;
|
2412
|
+
remove(): void;
|
2413
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
2414
|
+
readonly nextElementSibling: Element | null;
|
2415
|
+
readonly previousElementSibling: Element | null;
|
2416
|
+
readonly childElementCount: number;
|
2417
|
+
readonly children: HTMLCollection;
|
2418
|
+
readonly firstElementChild: Element | null;
|
2419
|
+
readonly lastElementChild: Element | null;
|
2420
|
+
append(...nodes: (Node | string)[]): void;
|
2421
|
+
prepend(...nodes: (Node | string)[]): void;
|
2422
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
2423
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
2424
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
2425
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
2426
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
2427
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
2428
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
2429
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
2430
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
2431
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
2432
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
2433
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
2434
|
+
readonly attributeStyleMap: StylePropertyMap;
|
2435
|
+
get style(): CSSStyleDeclaration;
|
2436
|
+
set style(cssText: string);
|
2437
|
+
contentEditable: string;
|
2438
|
+
enterKeyHint: string;
|
2439
|
+
inputMode: string;
|
2440
|
+
readonly isContentEditable: boolean;
|
2441
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2442
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2443
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2444
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2445
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2446
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2447
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
2448
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2449
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2450
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2451
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2452
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2453
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2454
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2455
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2456
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2457
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2458
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2459
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2460
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2461
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2462
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2463
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2464
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2465
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2466
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2467
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2468
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2469
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2470
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2471
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2472
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2473
|
+
onerror: OnErrorEventHandler;
|
2474
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2475
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
2476
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2477
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2478
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2479
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2480
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2481
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2482
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2483
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2484
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2485
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2486
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2487
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2488
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2489
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2490
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2491
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2492
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2493
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2494
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2495
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2496
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2497
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2498
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2499
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2500
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2501
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2502
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2503
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2504
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2505
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2506
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
2507
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2508
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2509
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2510
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2511
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2512
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
2513
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2514
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2515
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2516
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2517
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2518
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2519
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2520
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
2521
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2522
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2523
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2524
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2525
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2526
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2527
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2528
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2529
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2530
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2531
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2532
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2533
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2534
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2535
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2536
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2537
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2538
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
2539
|
+
autofocus: boolean;
|
2540
|
+
readonly dataset: DOMStringMap;
|
2541
|
+
nonce?: string;
|
2542
|
+
tabIndex: number;
|
2543
|
+
blur(): void;
|
2544
|
+
focus(options?: FocusOptions): void;
|
2545
|
+
};
|
2546
|
+
} & {
|
2547
|
+
new (...args: any[]): {
|
2548
|
+
/**
|
2549
|
+
* @param message message to announce to screen readers
|
2550
|
+
*/
|
2551
|
+
announce(message: string): void;
|
2552
|
+
accessKey: string;
|
2553
|
+
readonly accessKeyLabel: string;
|
2554
|
+
autocapitalize: string;
|
2555
|
+
dir: string;
|
2556
|
+
draggable: boolean;
|
2557
|
+
hidden: boolean;
|
2558
|
+
inert: boolean;
|
2559
|
+
innerText: string;
|
2560
|
+
lang: string;
|
2561
|
+
readonly offsetHeight: number;
|
2562
|
+
readonly offsetLeft: number;
|
2563
|
+
readonly offsetParent: Element | null;
|
2564
|
+
readonly offsetTop: number;
|
2565
|
+
readonly offsetWidth: number;
|
2566
|
+
outerText: string;
|
2567
|
+
popover: string | null;
|
2568
|
+
spellcheck: boolean;
|
2569
|
+
title: string;
|
2570
|
+
translate: boolean;
|
2571
|
+
writingSuggestions: string;
|
2572
|
+
attachInternals(): ElementInternals;
|
2573
|
+
click(): void;
|
2574
|
+
hidePopover(): void;
|
2575
|
+
showPopover(): void;
|
2576
|
+
togglePopover(options?: boolean): boolean;
|
2577
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
2578
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
2579
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
2580
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
2581
|
+
readonly attributes: NamedNodeMap;
|
2582
|
+
get classList(): DOMTokenList;
|
2583
|
+
set classList(value: string);
|
2584
|
+
className: string;
|
2585
|
+
readonly clientHeight: number;
|
2586
|
+
readonly clientLeft: number;
|
2587
|
+
readonly clientTop: number;
|
2588
|
+
readonly clientWidth: number;
|
2589
|
+
readonly currentCSSZoom: number;
|
2590
|
+
id: string;
|
2591
|
+
innerHTML: string;
|
2592
|
+
readonly localName: string;
|
2593
|
+
readonly namespaceURI: string | null;
|
2594
|
+
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
|
2595
|
+
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
|
2596
|
+
outerHTML: string;
|
2597
|
+
readonly ownerDocument: Document;
|
2598
|
+
get part(): DOMTokenList;
|
2599
|
+
set part(value: string);
|
2600
|
+
readonly prefix: string | null;
|
2601
|
+
readonly scrollHeight: number;
|
2602
|
+
scrollLeft: number;
|
2603
|
+
scrollTop: number;
|
2604
|
+
readonly scrollWidth: number;
|
2605
|
+
readonly shadowRoot: ShadowRoot | null;
|
2606
|
+
slot: string;
|
2607
|
+
readonly tagName: string;
|
2608
|
+
attachShadow(init: ShadowRootInit): ShadowRoot;
|
2609
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
2610
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
2611
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
2612
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
2613
|
+
closest<E extends Element = Element>(selectors: string): E | null;
|
2614
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
2615
|
+
getAttribute(qualifiedName: string): string | null;
|
2616
|
+
getAttributeNS(namespace: string | null, localName: string): string | null;
|
2617
|
+
getAttributeNames(): string[];
|
2618
|
+
getAttributeNode(qualifiedName: string): Attr | null;
|
2619
|
+
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
2620
|
+
getBoundingClientRect(): DOMRect;
|
2621
|
+
getClientRects(): DOMRectList;
|
2622
|
+
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
2623
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
2624
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
2625
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
2626
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
2627
|
+
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
2628
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
2629
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
2630
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
2631
|
+
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
2632
|
+
getHTML(options?: GetHTMLOptions): string;
|
2633
|
+
hasAttribute(qualifiedName: string): boolean;
|
2634
|
+
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
2635
|
+
hasAttributes(): boolean;
|
2636
|
+
hasPointerCapture(pointerId: number): boolean;
|
2637
|
+
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
2638
|
+
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
2639
|
+
insertAdjacentText(where: InsertPosition, data: string): void;
|
2640
|
+
matches(selectors: string): boolean;
|
2641
|
+
releasePointerCapture(pointerId: number): void;
|
2642
|
+
removeAttribute(qualifiedName: string): void;
|
2643
|
+
removeAttributeNS(namespace: string | null, localName: string): void;
|
2644
|
+
removeAttributeNode(attr: Attr): Attr;
|
2645
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
2646
|
+
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
2647
|
+
scroll(options?: ScrollToOptions): void;
|
2648
|
+
scroll(x: number, y: number): void;
|
2649
|
+
scrollBy(options?: ScrollToOptions): void;
|
2650
|
+
scrollBy(x: number, y: number): void;
|
2651
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
2652
|
+
scrollTo(options?: ScrollToOptions): void;
|
2653
|
+
scrollTo(x: number, y: number): void;
|
2654
|
+
setAttribute(qualifiedName: string, value: string): void;
|
2655
|
+
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
2656
|
+
setAttributeNode(attr: Attr): Attr | null;
|
2657
|
+
setAttributeNodeNS(attr: Attr): Attr | null;
|
2658
|
+
setHTMLUnsafe(html: string): void;
|
2659
|
+
setPointerCapture(pointerId: number): void;
|
2660
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
2661
|
+
webkitMatchesSelector(selectors: string): boolean;
|
2662
|
+
readonly baseURI: string;
|
2663
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
2664
|
+
readonly firstChild: ChildNode | null;
|
2665
|
+
readonly isConnected: boolean;
|
2666
|
+
readonly lastChild: ChildNode | null;
|
2667
|
+
readonly nextSibling: ChildNode | null;
|
2668
|
+
readonly nodeName: string;
|
2669
|
+
readonly nodeType: number;
|
2670
|
+
nodeValue: string | null;
|
2671
|
+
readonly parentElement: HTMLElement | null;
|
2672
|
+
readonly parentNode: ParentNode | null;
|
2673
|
+
readonly previousSibling: ChildNode | null;
|
2674
|
+
textContent: string | null;
|
2675
|
+
appendChild<T extends Node>(node: T): T;
|
2676
|
+
cloneNode(subtree?: boolean): Node;
|
2677
|
+
compareDocumentPosition(other: Node): number;
|
2678
|
+
contains(other: Node | null): boolean;
|
2679
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
2680
|
+
hasChildNodes(): boolean;
|
2681
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
2682
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
2683
|
+
isEqualNode(otherNode: Node | null): boolean;
|
2684
|
+
isSameNode(otherNode: Node | null): boolean;
|
2685
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
2686
|
+
lookupPrefix(namespace: string | null): string | null;
|
2687
|
+
normalize(): void;
|
2688
|
+
removeChild<T extends Node>(child: T): T;
|
2689
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
2690
|
+
readonly ELEMENT_NODE: 1;
|
2691
|
+
readonly ATTRIBUTE_NODE: 2;
|
2692
|
+
readonly TEXT_NODE: 3;
|
2693
|
+
readonly CDATA_SECTION_NODE: 4;
|
2694
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
2695
|
+
readonly ENTITY_NODE: 6;
|
2696
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
2697
|
+
readonly COMMENT_NODE: 8;
|
2698
|
+
readonly DOCUMENT_NODE: 9;
|
2699
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
2700
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
2701
|
+
readonly NOTATION_NODE: 12;
|
2702
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
2703
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
2704
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
2705
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
2706
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
2707
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
2708
|
+
dispatchEvent(event: Event): boolean;
|
2709
|
+
ariaAtomic: string | null;
|
2710
|
+
ariaAutoComplete: string | null;
|
2711
|
+
ariaBrailleLabel: string | null;
|
2712
|
+
ariaBrailleRoleDescription: string | null;
|
2713
|
+
ariaBusy: string | null;
|
2714
|
+
ariaChecked: string | null;
|
2715
|
+
ariaColCount: string | null;
|
2716
|
+
ariaColIndex: string | null;
|
2717
|
+
ariaColIndexText: string | null;
|
2718
|
+
ariaColSpan: string | null;
|
2719
|
+
ariaCurrent: string | null;
|
2720
|
+
ariaDescription: string | null;
|
2721
|
+
ariaDisabled: string | null;
|
2722
|
+
ariaExpanded: string | null;
|
2723
|
+
ariaHasPopup: string | null;
|
2724
|
+
ariaHidden: string | null;
|
2725
|
+
ariaInvalid: string | null;
|
2726
|
+
ariaKeyShortcuts: string | null;
|
2727
|
+
ariaLabel: string | null;
|
2728
|
+
ariaLevel: string | null;
|
2729
|
+
ariaLive: string | null;
|
2730
|
+
ariaModal: string | null;
|
2731
|
+
ariaMultiLine: string | null;
|
2732
|
+
ariaMultiSelectable: string | null;
|
2733
|
+
ariaOrientation: string | null;
|
2734
|
+
ariaPlaceholder: string | null;
|
2735
|
+
ariaPosInSet: string | null;
|
2736
|
+
ariaPressed: string | null;
|
2737
|
+
ariaReadOnly: string | null;
|
2738
|
+
ariaRelevant: string | null;
|
2739
|
+
ariaRequired: string | null;
|
2740
|
+
ariaRoleDescription: string | null;
|
2741
|
+
ariaRowCount: string | null;
|
2742
|
+
ariaRowIndex: string | null;
|
2743
|
+
ariaRowIndexText: string | null;
|
2744
|
+
ariaRowSpan: string | null;
|
2745
|
+
ariaSelected: string | null;
|
2746
|
+
ariaSetSize: string | null;
|
2747
|
+
ariaSort: string | null;
|
2748
|
+
ariaValueMax: string | null;
|
2749
|
+
ariaValueMin: string | null;
|
2750
|
+
ariaValueNow: string | null;
|
2751
|
+
ariaValueText: string | null;
|
2752
|
+
role: string | null;
|
2753
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
2754
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
2755
|
+
after(...nodes: (Node | string)[]): void;
|
2756
|
+
before(...nodes: (Node | string)[]): void;
|
2757
|
+
remove(): void;
|
2758
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
2759
|
+
readonly nextElementSibling: Element | null;
|
2760
|
+
readonly previousElementSibling: Element | null;
|
2761
|
+
readonly childElementCount: number;
|
2762
|
+
readonly children: HTMLCollection;
|
2763
|
+
readonly firstElementChild: Element | null;
|
2764
|
+
readonly lastElementChild: Element | null;
|
2765
|
+
append(...nodes: (Node | string)[]): void;
|
2766
|
+
prepend(...nodes: (Node | string)[]): void;
|
2767
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
2768
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
2769
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
2770
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
2771
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
2772
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
2773
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
2774
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
2775
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
2776
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
2777
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
2778
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
2779
|
+
readonly attributeStyleMap: StylePropertyMap;
|
2780
|
+
get style(): CSSStyleDeclaration;
|
2781
|
+
set style(cssText: string);
|
2782
|
+
contentEditable: string;
|
2783
|
+
enterKeyHint: string;
|
2784
|
+
inputMode: string;
|
2785
|
+
readonly isContentEditable: boolean;
|
2786
|
+
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2787
|
+
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2788
|
+
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2789
|
+
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2790
|
+
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
2791
|
+
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2792
|
+
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
2793
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2794
|
+
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2795
|
+
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2796
|
+
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2797
|
+
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2798
|
+
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2799
|
+
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2800
|
+
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2801
|
+
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2802
|
+
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2803
|
+
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2804
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2805
|
+
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2806
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2807
|
+
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2808
|
+
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2809
|
+
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2810
|
+
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2811
|
+
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2812
|
+
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2813
|
+
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2814
|
+
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
2815
|
+
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2816
|
+
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2817
|
+
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2818
|
+
onerror: OnErrorEventHandler;
|
2819
|
+
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
2820
|
+
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
2821
|
+
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2822
|
+
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2823
|
+
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2824
|
+
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2825
|
+
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2826
|
+
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
2827
|
+
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2828
|
+
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2829
|
+
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2830
|
+
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2831
|
+
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2832
|
+
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2833
|
+
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2834
|
+
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2835
|
+
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2836
|
+
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2837
|
+
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2838
|
+
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
2839
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
2840
|
+
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2841
|
+
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2842
|
+
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2843
|
+
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2844
|
+
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2845
|
+
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2846
|
+
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2847
|
+
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2848
|
+
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2849
|
+
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2850
|
+
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
2851
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
2852
|
+
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2853
|
+
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2854
|
+
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
2855
|
+
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2856
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2857
|
+
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
2858
|
+
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2859
|
+
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2860
|
+
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2861
|
+
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2862
|
+
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2863
|
+
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2864
|
+
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2865
|
+
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
2866
|
+
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2867
|
+
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2868
|
+
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2869
|
+
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2870
|
+
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2871
|
+
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2872
|
+
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
2873
|
+
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2874
|
+
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2875
|
+
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2876
|
+
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
2877
|
+
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2878
|
+
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2879
|
+
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2880
|
+
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2881
|
+
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2882
|
+
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
2883
|
+
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
2884
|
+
autofocus: boolean;
|
2885
|
+
readonly dataset: DOMStringMap;
|
2886
|
+
nonce?: string;
|
2887
|
+
tabIndex: number;
|
2888
|
+
blur(): void;
|
2889
|
+
focus(options?: FocusOptions): void;
|
2890
|
+
};
|
2891
|
+
/**
|
2892
|
+
* A single `Announcer` element to share between all drab elements to announce
|
2893
|
+
* interactive changes.
|
2894
|
+
*/
|
2895
|
+
"__#2@#announcer": Announcer;
|
2896
|
+
} & {
|
2897
|
+
new (): HTMLElement;
|
2898
|
+
prototype: HTMLElement;
|
2899
|
+
};
|
7
2900
|
/**
|
8
2901
|
* Each element in the library extends the `Base` class. It provides methods
|
9
2902
|
* for selecting elements via HTML attributes along with other helpers.
|
@@ -16,75 +2909,7 @@ type Constructor<T> = new (...args: any[]) => T;
|
|
16
2909
|
*
|
17
2910
|
* Each element can have multiple `trigger`s, but will only have one `content`.
|
18
2911
|
*/
|
19
|
-
export declare class Base extends
|
20
|
-
#private;
|
2912
|
+
export declare class Base extends Base_base {
|
21
2913
|
constructor();
|
22
|
-
/**
|
23
|
-
* Event for the `trigger` to execute.
|
24
|
-
*
|
25
|
-
* For example, set to `"mouseover"` to execute the event when the user hovers the mouse over the `trigger`, instead of when they click it.
|
26
|
-
*
|
27
|
-
* @default "click"
|
28
|
-
*/
|
29
|
-
get event(): keyof HTMLElementEventMap;
|
30
|
-
set event(value: keyof HTMLElementEventMap);
|
31
|
-
/**
|
32
|
-
* @param message message to announce to screen readers
|
33
|
-
*/
|
34
|
-
announce(message: string): void;
|
35
|
-
/**
|
36
|
-
* @param instance The instance of the desired element to validate against,
|
37
|
-
* ex: `HTMLButtonElement`. Defaults to `HTMLElement`.
|
38
|
-
* @returns All of the elements that match the `trigger` selector.
|
39
|
-
* @default this.querySelectorAll("[data-trigger]")
|
40
|
-
*/
|
41
|
-
getTrigger<T extends HTMLElement>(instance: Constructor<T>): NodeListOf<T>;
|
42
|
-
getTrigger(): NodeListOf<HTMLElement>;
|
43
|
-
/**
|
44
|
-
* @param instance The instance of the desired element to validate against,
|
45
|
-
* ex: `HTMLDialogElement`. Defaults to `HTMLElement`.
|
46
|
-
* @returns The element that matches the `content` selector.
|
47
|
-
* @default this.querySelector("[data-content]")
|
48
|
-
*/
|
49
|
-
getContent<T extends HTMLElement>(instance: Constructor<T>): T;
|
50
|
-
getContent(): HTMLElement;
|
51
|
-
/**
|
52
|
-
* Finds the `HTMLElement | HTMLTemplateElement` via the `swap` selector and
|
53
|
-
* swaps `this.content()` with the content of the element found.
|
54
|
-
*
|
55
|
-
* @param revert Wait time (ms) before swapping back, set to `false` to not revert.
|
56
|
-
* default: `800`
|
57
|
-
*/
|
58
|
-
swapContent(revert?: number | false): void;
|
59
|
-
/**
|
60
|
-
* Wrapper around `addEventListener` that ensures when the element is
|
61
|
-
* removed from the DOM, these event listeners are cleaned up.
|
62
|
-
*
|
63
|
-
* @param type Event listener type - ex: `"keydown"`
|
64
|
-
* @param listener Listener to add to the target.
|
65
|
-
* @param target Event target to add the listener to - defaults to `document.body`.
|
66
|
-
* @param options Other options sans `signal`.
|
67
|
-
*/
|
68
|
-
safeListener<T extends keyof HTMLElementEventMap>(type: T, listener: (this: HTMLElement, event: HTMLElementEventMap[T]) => any, element?: HTMLElement, options?: AddEventListenerOptions): void;
|
69
|
-
safeListener<T extends keyof DocumentEventMap>(type: T, listener: (this: Document, event: DocumentEventMap[T]) => any, document: Document, options?: AddEventListenerOptions): void;
|
70
|
-
safeListener<T extends keyof WindowEventMap>(type: T, listener: (this: Window, event: WindowEventMap[T]) => any, window: Window, options?: AddEventListenerOptions): void;
|
71
|
-
/**
|
72
|
-
* @param listener Listener to attach to all of the `trigger` elements.
|
73
|
-
*/
|
74
|
-
triggerListener<T extends HTMLElement, K extends keyof HTMLElementEventMap>(listener: (this: T, e: HTMLElementEventMap[K]) => any, type?: K, options?: AddEventListenerOptions): void;
|
75
|
-
/**
|
76
|
-
* Passed into `queueMicrotask` in `connectedCallback`. It is overridden in each component that needs to run `connectedCallback`.
|
77
|
-
*
|
78
|
-
* The reason for this is to make these elements work better with frameworks like Svelte. For SSR this isn't necessary, but when client side rendering, the HTML within the custom element isn't available before `connectedCallback` is called. By waiting until the next microtask, the HTML content is available---then for example, listeners can be attached to elements inside.
|
79
|
-
*/
|
80
|
-
mount(): void;
|
81
|
-
/** Called when custom element is added to the page. */
|
82
|
-
connectedCallback(): void;
|
83
|
-
/**
|
84
|
-
* Passed into `disconnectedCallback`, since `Base` needs to run `disconnectedCallback` as well. It is overridden in each element that needs to run `disconnectedCallback`.
|
85
|
-
*/
|
86
|
-
destroy(): void;
|
87
|
-
/** Called when custom element is removed from the page. */
|
88
|
-
disconnectedCallback(): void;
|
89
2914
|
}
|
90
2915
|
export {};
|