@genesislcap/foundation-events 14.225.1-alpha-2aa9bd9.0 → 14.225.2-alpha-a51f60c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/eventEmitter/eventEmitterMixin.d.ts +45 -29
- package/dist/dts/eventEmitter/eventEmitterMixin.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/foundation-events.api.json +496 -132
- package/dist/foundation-events.d.ts +45 -29
- package/docs/api/foundation-events.createinputemitter.md +4 -1
- package/docs/api/foundation-events.createselectemitter.md +4 -1
- package/docs/api/foundation-events.customevent.md +12 -1
- package/docs/api/foundation-events.eventemitter.md +56 -30
- package/docs/api/foundation-events.eventemitterdi.md +1 -1
- package/docs/api/foundation-events.getbaseemitargs.md +12 -1
- package/docs/api/foundation-events.md +11 -6
- package/docs/api/foundation-events.registeremitter.md +5 -1
- package/docs/{api-report.md → api-report.md.api.md} +45 -29
- package/package.json +11 -11
@@ -158,11 +158,15 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
158
158
|
readonly offsetTop: number;
|
159
159
|
readonly offsetWidth: number;
|
160
160
|
outerText: string;
|
161
|
+
popover: string;
|
161
162
|
spellcheck: boolean;
|
162
163
|
title: string;
|
163
164
|
translate: boolean;
|
164
165
|
attachInternals(): ElementInternals;
|
165
166
|
click(): void;
|
167
|
+
hidePopover(): void;
|
168
|
+
showPopover(): void;
|
169
|
+
togglePopover(force?: boolean): boolean;
|
166
170
|
addEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | AddEventListenerOptions): void;
|
167
171
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
168
172
|
removeEventListener<K_2 extends keyof HTMLElementEventMap>(type: K_2, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_2]) => any, options?: boolean | EventListenerOptions): void;
|
@@ -191,9 +195,12 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
191
195
|
slot: string;
|
192
196
|
readonly tagName: string;
|
193
197
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
198
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
194
199
|
closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
|
195
200
|
closest<K_4 extends keyof SVGElementTagNameMap>(selector: K_4): SVGElementTagNameMap[K_4];
|
201
|
+
closest<K_5 extends keyof MathMLElementTagNameMap>(selector: K_5): MathMLElementTagNameMap[K_5];
|
196
202
|
closest<E extends Element = Element>(selectors: string): E;
|
203
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
197
204
|
getAttribute(qualifiedName: string): string;
|
198
205
|
getAttributeNS(namespace: string, localName: string): string;
|
199
206
|
getAttributeNames(): string[];
|
@@ -202,11 +209,14 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
202
209
|
getBoundingClientRect(): DOMRect;
|
203
210
|
getClientRects(): DOMRectList;
|
204
211
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
205
|
-
getElementsByTagName<
|
206
|
-
getElementsByTagName<
|
212
|
+
getElementsByTagName<K_6 extends keyof HTMLElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<HTMLElementTagNameMap[K_6]>;
|
213
|
+
getElementsByTagName<K_7 extends keyof SVGElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<SVGElementTagNameMap[K_7]>;
|
214
|
+
getElementsByTagName<K_8 extends keyof MathMLElementTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<MathMLElementTagNameMap[K_8]>;
|
215
|
+
getElementsByTagName<K_9 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_9): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_9]>;
|
207
216
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
208
217
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
209
218
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
219
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
210
220
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
211
221
|
hasAttribute(qualifiedName: string): boolean;
|
212
222
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
@@ -264,24 +274,24 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
264
274
|
normalize(): void;
|
265
275
|
removeChild<T_2 extends Node>(child: T_2): T_2;
|
266
276
|
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
267
|
-
readonly
|
268
|
-
readonly
|
269
|
-
readonly
|
270
|
-
readonly
|
271
|
-
readonly
|
272
|
-
readonly
|
273
|
-
readonly
|
274
|
-
readonly
|
275
|
-
readonly
|
276
|
-
readonly
|
277
|
-
readonly
|
278
|
-
readonly
|
279
|
-
readonly
|
280
|
-
readonly
|
281
|
-
readonly
|
282
|
-
readonly
|
283
|
-
readonly
|
284
|
-
readonly
|
277
|
+
readonly ELEMENT_NODE: 1;
|
278
|
+
readonly ATTRIBUTE_NODE: 2;
|
279
|
+
readonly TEXT_NODE: 3;
|
280
|
+
readonly CDATA_SECTION_NODE: 4;
|
281
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
282
|
+
readonly ENTITY_NODE: 6;
|
283
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
284
|
+
readonly COMMENT_NODE: 8;
|
285
|
+
readonly DOCUMENT_NODE: 9;
|
286
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
287
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
288
|
+
readonly NOTATION_NODE: 12;
|
289
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
290
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
291
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
292
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
293
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
294
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
285
295
|
dispatchEvent(event: Event): boolean;
|
286
296
|
ariaAtomic: string;
|
287
297
|
ariaAutoComplete: string;
|
@@ -289,9 +299,9 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
289
299
|
ariaChecked: string;
|
290
300
|
ariaColCount: string;
|
291
301
|
ariaColIndex: string;
|
292
|
-
ariaColIndexText: string;
|
293
302
|
ariaColSpan: string;
|
294
303
|
ariaCurrent: string;
|
304
|
+
ariaDescription: string;
|
295
305
|
ariaDisabled: string;
|
296
306
|
ariaExpanded: string;
|
297
307
|
ariaHasPopup: string;
|
@@ -313,7 +323,6 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
313
323
|
ariaRoleDescription: string;
|
314
324
|
ariaRowCount: string;
|
315
325
|
ariaRowIndex: string;
|
316
|
-
ariaRowIndexText: string;
|
317
326
|
ariaRowSpan: string;
|
318
327
|
ariaSelected: string;
|
319
328
|
ariaSetSize: string;
|
@@ -338,17 +347,19 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
338
347
|
readonly lastElementChild: Element;
|
339
348
|
append(...nodes: (string | Node)[]): void;
|
340
349
|
prepend(...nodes: (string | Node)[]): void;
|
341
|
-
querySelector<
|
342
|
-
querySelector<
|
350
|
+
querySelector<K_10 extends keyof HTMLElementTagNameMap>(selectors: K_10): HTMLElementTagNameMap[K_10];
|
351
|
+
querySelector<K_11 extends keyof SVGElementTagNameMap>(selectors: K_11): SVGElementTagNameMap[K_11];
|
352
|
+
querySelector<K_12 extends keyof MathMLElementTagNameMap>(selectors: K_12): MathMLElementTagNameMap[K_12];
|
353
|
+
querySelector<K_13 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_13): HTMLElementDeprecatedTagNameMap[K_13];
|
343
354
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
344
|
-
querySelectorAll<
|
345
|
-
querySelectorAll<
|
355
|
+
querySelectorAll<K_14 extends keyof HTMLElementTagNameMap>(selectors: K_14): NodeListOf<HTMLElementTagNameMap[K_14]>;
|
356
|
+
querySelectorAll<K_15 extends keyof SVGElementTagNameMap>(selectors: K_15): NodeListOf<SVGElementTagNameMap[K_15]>;
|
357
|
+
querySelectorAll<K_16 extends keyof MathMLElementTagNameMap>(selectors: K_16): NodeListOf<MathMLElementTagNameMap[K_16]>;
|
358
|
+
querySelectorAll<K_17 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_17): NodeListOf<HTMLElementDeprecatedTagNameMap[K_17]>;
|
346
359
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
347
360
|
replaceChildren(...nodes: (string | Node)[]): void;
|
348
361
|
readonly assignedSlot: HTMLSlotElement;
|
349
|
-
|
350
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
351
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
362
|
+
readonly attributeStyleMap: StylePropertyMap;
|
352
363
|
readonly style: CSSStyleDeclaration;
|
353
364
|
contentEditable: string;
|
354
365
|
enterKeyHint: string;
|
@@ -361,6 +372,7 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
361
372
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
362
373
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
363
374
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
375
|
+
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
364
376
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
365
377
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
366
378
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -369,7 +381,9 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
369
381
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
370
382
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
371
383
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
384
|
+
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
372
385
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
386
|
+
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
373
387
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
374
388
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
375
389
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
@@ -402,6 +416,7 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
402
416
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
403
417
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
404
418
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
419
|
+
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
405
420
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
406
421
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
407
422
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -418,6 +433,7 @@ export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTar
|
|
418
433
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
419
434
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
420
435
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
436
|
+
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
421
437
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
422
438
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
423
439
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [createInputEmitter](./foundation-events.createinputemitter.md)
|
4
4
|
|
5
|
-
## createInputEmitter
|
5
|
+
## createInputEmitter() function
|
6
6
|
|
7
7
|
`<input>` template emit helper.
|
8
8
|
|
@@ -11,6 +11,9 @@
|
|
11
11
|
```typescript
|
12
12
|
createInputEmitter: <TEventDetailMap extends EventDetailMap>() => <K extends KeysMatching<TEventDetailMap, string>>(type: K, options?: EmitOptions) => Binding
|
13
13
|
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
<K extends [KeysMatching](./foundation-events.keysmatching.md)<!-- --><TEventDetailMap, string>>(type: K, options?: [EmitOptions](./foundation-events.emitoptions.md)<!-- -->) => Binding
|
14
17
|
|
15
18
|
## Remarks
|
16
19
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [createSelectEmitter](./foundation-events.createselectemitter.md)
|
4
4
|
|
5
|
-
## createSelectEmitter
|
5
|
+
## createSelectEmitter() function
|
6
6
|
|
7
7
|
`<select>` template emit helper.
|
8
8
|
|
@@ -11,6 +11,9 @@
|
|
11
11
|
```typescript
|
12
12
|
createSelectEmitter: <TEventDetailMap extends EventDetailMap>() => <K extends KeysMatching<TEventDetailMap, string>>(type: K, options?: EmitOptions) => Binding
|
13
13
|
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
<K extends [KeysMatching](./foundation-events.keysmatching.md)<!-- --><TEventDetailMap, string>>(type: K, options?: [EmitOptions](./foundation-events.emitoptions.md)<!-- -->) => Binding
|
14
17
|
|
15
18
|
## Remarks
|
16
19
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [customEvent](./foundation-events.customevent.md)
|
4
4
|
|
5
|
-
## customEvent
|
5
|
+
## customEvent() function
|
6
6
|
|
7
7
|
|
8
8
|
**Signature:**
|
@@ -10,3 +10,14 @@
|
|
10
10
|
```typescript
|
11
11
|
customEvent: <TEventDetail = void>(ctx: ExecutionContext) => CustomEvent<TEventDetail>
|
12
12
|
```
|
13
|
+
|
14
|
+
## Parameters
|
15
|
+
|
16
|
+
| Parameter | Type | Description |
|
17
|
+
| --- | --- | --- |
|
18
|
+
| ctx | ExecutionContext | |
|
19
|
+
|
20
|
+
**Returns:**
|
21
|
+
|
22
|
+
CustomEvent<TEventDetail>
|
23
|
+
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [EventEmitter](./foundation-events.eventemitter.md)
|
4
4
|
|
5
|
-
## EventEmitter
|
5
|
+
## EventEmitter() function
|
6
6
|
|
7
7
|
EventEmitter mixin.
|
8
8
|
|
@@ -26,11 +26,15 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
26
26
|
readonly offsetTop: number;
|
27
27
|
readonly offsetWidth: number;
|
28
28
|
outerText: string;
|
29
|
+
popover: string;
|
29
30
|
spellcheck: boolean;
|
30
31
|
title: string;
|
31
32
|
translate: boolean;
|
32
33
|
attachInternals(): ElementInternals;
|
33
34
|
click(): void;
|
35
|
+
hidePopover(): void;
|
36
|
+
showPopover(): void;
|
37
|
+
togglePopover(force?: boolean): boolean;
|
34
38
|
addEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | AddEventListenerOptions): void;
|
35
39
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
36
40
|
removeEventListener<K_2 extends keyof HTMLElementEventMap>(type: K_2, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_2]) => any, options?: boolean | EventListenerOptions): void;
|
@@ -59,9 +63,12 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
59
63
|
slot: string;
|
60
64
|
readonly tagName: string;
|
61
65
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
66
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
62
67
|
closest<K_3 extends keyof HTMLElementTagNameMap>(selector: K_3): HTMLElementTagNameMap[K_3];
|
63
68
|
closest<K_4 extends keyof SVGElementTagNameMap>(selector: K_4): SVGElementTagNameMap[K_4];
|
69
|
+
closest<K_5 extends keyof MathMLElementTagNameMap>(selector: K_5): MathMLElementTagNameMap[K_5];
|
64
70
|
closest<E extends Element = Element>(selectors: string): E;
|
71
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
65
72
|
getAttribute(qualifiedName: string): string;
|
66
73
|
getAttributeNS(namespace: string, localName: string): string;
|
67
74
|
getAttributeNames(): string[];
|
@@ -70,11 +77,14 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
70
77
|
getBoundingClientRect(): DOMRect;
|
71
78
|
getClientRects(): DOMRectList;
|
72
79
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
73
|
-
getElementsByTagName<
|
74
|
-
getElementsByTagName<
|
80
|
+
getElementsByTagName<K_6 extends keyof HTMLElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<HTMLElementTagNameMap[K_6]>;
|
81
|
+
getElementsByTagName<K_7 extends keyof SVGElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<SVGElementTagNameMap[K_7]>;
|
82
|
+
getElementsByTagName<K_8 extends keyof MathMLElementTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<MathMLElementTagNameMap[K_8]>;
|
83
|
+
getElementsByTagName<K_9 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_9): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_9]>;
|
75
84
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
76
85
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
77
86
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
87
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
78
88
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
79
89
|
hasAttribute(qualifiedName: string): boolean;
|
80
90
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
@@ -132,24 +142,24 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
132
142
|
normalize(): void;
|
133
143
|
removeChild<T_2 extends Node>(child: T_2): T_2;
|
134
144
|
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
135
|
-
readonly
|
136
|
-
readonly
|
137
|
-
readonly
|
138
|
-
readonly
|
139
|
-
readonly
|
140
|
-
readonly
|
141
|
-
readonly
|
142
|
-
readonly
|
143
|
-
readonly
|
144
|
-
readonly
|
145
|
-
readonly
|
146
|
-
readonly
|
147
|
-
readonly
|
148
|
-
readonly
|
149
|
-
readonly
|
150
|
-
readonly
|
151
|
-
readonly
|
152
|
-
readonly
|
145
|
+
readonly ELEMENT_NODE: 1;
|
146
|
+
readonly ATTRIBUTE_NODE: 2;
|
147
|
+
readonly TEXT_NODE: 3;
|
148
|
+
readonly CDATA_SECTION_NODE: 4;
|
149
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
150
|
+
readonly ENTITY_NODE: 6;
|
151
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
152
|
+
readonly COMMENT_NODE: 8;
|
153
|
+
readonly DOCUMENT_NODE: 9;
|
154
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
155
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
156
|
+
readonly NOTATION_NODE: 12;
|
157
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
158
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
159
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
160
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
161
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
162
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
153
163
|
dispatchEvent(event: Event): boolean;
|
154
164
|
ariaAtomic: string;
|
155
165
|
ariaAutoComplete: string;
|
@@ -157,9 +167,9 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
157
167
|
ariaChecked: string;
|
158
168
|
ariaColCount: string;
|
159
169
|
ariaColIndex: string;
|
160
|
-
ariaColIndexText: string;
|
161
170
|
ariaColSpan: string;
|
162
171
|
ariaCurrent: string;
|
172
|
+
ariaDescription: string;
|
163
173
|
ariaDisabled: string;
|
164
174
|
ariaExpanded: string;
|
165
175
|
ariaHasPopup: string;
|
@@ -181,7 +191,6 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
181
191
|
ariaRoleDescription: string;
|
182
192
|
ariaRowCount: string;
|
183
193
|
ariaRowIndex: string;
|
184
|
-
ariaRowIndexText: string;
|
185
194
|
ariaRowSpan: string;
|
186
195
|
ariaSelected: string;
|
187
196
|
ariaSetSize: string;
|
@@ -206,17 +215,19 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
206
215
|
readonly lastElementChild: Element;
|
207
216
|
append(...nodes: (string | Node)[]): void;
|
208
217
|
prepend(...nodes: (string | Node)[]): void;
|
209
|
-
querySelector<
|
210
|
-
querySelector<
|
218
|
+
querySelector<K_10 extends keyof HTMLElementTagNameMap>(selectors: K_10): HTMLElementTagNameMap[K_10];
|
219
|
+
querySelector<K_11 extends keyof SVGElementTagNameMap>(selectors: K_11): SVGElementTagNameMap[K_11];
|
220
|
+
querySelector<K_12 extends keyof MathMLElementTagNameMap>(selectors: K_12): MathMLElementTagNameMap[K_12];
|
221
|
+
querySelector<K_13 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_13): HTMLElementDeprecatedTagNameMap[K_13];
|
211
222
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
212
|
-
querySelectorAll<
|
213
|
-
querySelectorAll<
|
223
|
+
querySelectorAll<K_14 extends keyof HTMLElementTagNameMap>(selectors: K_14): NodeListOf<HTMLElementTagNameMap[K_14]>;
|
224
|
+
querySelectorAll<K_15 extends keyof SVGElementTagNameMap>(selectors: K_15): NodeListOf<SVGElementTagNameMap[K_15]>;
|
225
|
+
querySelectorAll<K_16 extends keyof MathMLElementTagNameMap>(selectors: K_16): NodeListOf<MathMLElementTagNameMap[K_16]>;
|
226
|
+
querySelectorAll<K_17 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_17): NodeListOf<HTMLElementDeprecatedTagNameMap[K_17]>;
|
214
227
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
215
228
|
replaceChildren(...nodes: (string | Node)[]): void;
|
216
229
|
readonly assignedSlot: HTMLSlotElement;
|
217
|
-
|
218
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
219
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
230
|
+
readonly attributeStyleMap: StylePropertyMap;
|
220
231
|
readonly style: CSSStyleDeclaration;
|
221
232
|
contentEditable: string;
|
222
233
|
enterKeyHint: string;
|
@@ -229,6 +240,7 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
229
240
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
230
241
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
231
242
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
243
|
+
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
232
244
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
233
245
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
234
246
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -237,7 +249,9 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
237
249
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
238
250
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
239
251
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
252
|
+
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
240
253
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
254
|
+
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
241
255
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
242
256
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
243
257
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
@@ -270,6 +284,7 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
270
284
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
271
285
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
272
286
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
287
|
+
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
273
288
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
274
289
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
275
290
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -286,6 +301,7 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
286
301
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
287
302
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
288
303
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
304
|
+
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
289
305
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
290
306
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
291
307
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -326,6 +342,16 @@ EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends HTMLEleme
|
|
326
342
|
}
|
327
343
|
```
|
328
344
|
|
345
|
+
## Parameters
|
346
|
+
|
347
|
+
| Parameter | Type | Description |
|
348
|
+
| --- | --- | --- |
|
349
|
+
| Target | [EventEmitterTarget](./foundation-events.eventemittertarget.md)<!-- --><TTarget> | The class to apply the mixin to which ultimately extends . |
|
350
|
+
|
351
|
+
**Returns:**
|
352
|
+
|
353
|
+
abstract new (...args: any\[\]) => { $emit<K extends keyof TEventDetailMap & string>(...args: TEventDetailMap\[K\] extends void ? \[type: K, options?: [EmitOptions](./foundation-events.emitoptions.md)<!-- -->\] : \[type: K, detail: TEventDetailMap\[K\], options?: [EmitOptions](./foundation-events.emitoptions.md)<!-- -->\]): [EmitReturn](./foundation-events.emitreturn.md)<!-- -->; accessKey: string; readonly accessKeyLabel: string; autocapitalize: string; dir: string; draggable: boolean; hidden: boolean; inert: boolean; innerText: string; lang: string; readonly offsetHeight: number; readonly offsetLeft: number; readonly offsetParent: Element; readonly offsetTop: number; readonly offsetWidth: number; outerText: string; popover: string; spellcheck: boolean; title: string; translate: boolean; attachInternals(): ElementInternals; click(): void; hidePopover(): void; showPopover(): void; togglePopover(force?: boolean): boolean; addEventListener<K\_1 extends keyof HTMLElementEventMap>(type: K\_1, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\_1\]) => any, options?: boolean \| AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean \| AddEventListenerOptions): void; removeEventListener<K\_2 extends keyof HTMLElementEventMap>(type: K\_2, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\_2\]) => any, options?: boolean \| EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean \| EventListenerOptions): void; readonly attributes: NamedNodeMap; readonly classList: DOMTokenList; className: string; readonly clientHeight: number; readonly clientLeft: number; readonly clientTop: number; readonly clientWidth: number; id: string; readonly localName: string; readonly namespaceURI: string; onfullscreenchange: (this: Element, ev: Event) => any; onfullscreenerror: (this: Element, ev: Event) => any; outerHTML: string; readonly ownerDocument: Document; readonly part: DOMTokenList; readonly prefix: string; readonly scrollHeight: number; scrollLeft: number; scrollTop: number; readonly scrollWidth: number; readonly shadowRoot: ShadowRoot; slot: string; readonly tagName: string; attachShadow(init: ShadowRootInit): ShadowRoot; checkVisibility(options?: CheckVisibilityOptions): boolean; closest<K\_3 extends keyof HTMLElementTagNameMap>(selector: K\_3): HTMLElementTagNameMap\[K\_3\]; closest<K\_4 extends keyof SVGElementTagNameMap>(selector: K\_4): SVGElementTagNameMap\[K\_4\]; closest<K\_5 extends keyof MathMLElementTagNameMap>(selector: K\_5): MathMLElementTagNameMap\[K\_5\]; closest<E extends Element = Element>(selectors: string): E; computedStyleMap(): StylePropertyMapReadOnly; getAttribute(qualifiedName: string): string; getAttributeNS(namespace: string, localName: string): string; getAttributeNames(): string\[\]; getAttributeNode(qualifiedName: string): Attr; getAttributeNodeNS(namespace: string, localName: string): Attr; getBoundingClientRect(): DOMRect; getClientRects(): DOMRectList; getElementsByClassName(classNames: string): HTMLCollectionOf<Element>; getElementsByTagName<K\_6 extends keyof HTMLElementTagNameMap>(qualifiedName: K\_6): HTMLCollectionOf<HTMLElementTagNameMap\[K\_6\]>; getElementsByTagName<K\_7 extends keyof SVGElementTagNameMap>(qualifiedName: K\_7): HTMLCollectionOf<SVGElementTagNameMap\[K\_7\]>; getElementsByTagName<K\_8 extends keyof MathMLElementTagNameMap>(qualifiedName: K\_8): HTMLCollectionOf<MathMLElementTagNameMap\[K\_8\]>; getElementsByTagName<K\_9 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K\_9): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap\[K\_9\]>; getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>; getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>; hasAttribute(qualifiedName: string): boolean; hasAttributeNS(namespace: string, localName: string): boolean; hasAttributes(): boolean; hasPointerCapture(pointerId: number): boolean; insertAdjacentElement(where: InsertPosition, element: Element): Element; insertAdjacentHTML(position: InsertPosition, text: string): void; insertAdjacentText(where: InsertPosition, data: string): void; matches(selectors: string): boolean; releasePointerCapture(pointerId: number): void; removeAttribute(qualifiedName: string): void; removeAttributeNS(namespace: string, localName: string): void; removeAttributeNode(attr: Attr): Attr; requestFullscreen(options?: FullscreenOptions): Promise<void>; requestPointerLock(): void; scroll(options?: ScrollToOptions): void; scroll(x: number, y: number): void; scrollBy(options?: ScrollToOptions): void; scrollBy(x: number, y: number): void; scrollIntoView(arg?: boolean \| ScrollIntoViewOptions): void; scrollTo(options?: ScrollToOptions): void; scrollTo(x: number, y: number): void; setAttribute(qualifiedName: string, value: string): void; setAttributeNS(namespace: string, qualifiedName: string, value: string): void; setAttributeNode(attr: Attr): Attr; setAttributeNodeNS(attr: Attr): Attr; setPointerCapture(pointerId: number): void; toggleAttribute(qualifiedName: string, force?: boolean): boolean; webkitMatchesSelector(selectors: string): boolean; readonly baseURI: string; readonly childNodes: NodeListOf<ChildNode>; readonly firstChild: ChildNode; readonly isConnected: boolean; readonly lastChild: ChildNode; readonly nextSibling: ChildNode; readonly nodeName: string; readonly nodeType: number; nodeValue: string; readonly parentElement: HTMLElement; readonly parentNode: ParentNode; readonly previousSibling: ChildNode; textContent: string; appendChild<T extends Node>(node: T): T; cloneNode(deep?: boolean): Node; compareDocumentPosition(other: Node): number; contains(other: Node): boolean; getRootNode(options?: GetRootNodeOptions): Node; hasChildNodes(): boolean; insertBefore<T\_1 extends Node>(node: T\_1, child: Node): T\_1; isDefaultNamespace(namespace: string): boolean; isEqualNode(otherNode: Node): boolean; isSameNode(otherNode: Node): boolean; lookupNamespaceURI(prefix: string): string; lookupPrefix(namespace: string): string; normalize(): void; removeChild<T\_2 extends Node>(child: T\_2): T\_2; replaceChild<T\_3 extends Node>(node: Node, child: T\_3): T\_3; readonly ELEMENT\_NODE: 1; readonly ATTRIBUTE\_NODE: 2; readonly TEXT\_NODE: 3; readonly CDATA\_SECTION\_NODE: 4; readonly ENTITY\_REFERENCE\_NODE: 5; readonly ENTITY\_NODE: 6; readonly PROCESSING\_INSTRUCTION\_NODE: 7; readonly COMMENT\_NODE: 8; readonly DOCUMENT\_NODE: 9; readonly DOCUMENT\_TYPE\_NODE: 10; readonly DOCUMENT\_FRAGMENT\_NODE: 11; readonly NOTATION\_NODE: 12; readonly DOCUMENT\_POSITION\_DISCONNECTED: 1; readonly DOCUMENT\_POSITION\_PRECEDING: 2; readonly DOCUMENT\_POSITION\_FOLLOWING: 4; readonly DOCUMENT\_POSITION\_CONTAINS: 8; readonly DOCUMENT\_POSITION\_CONTAINED\_BY: 16; readonly DOCUMENT\_POSITION\_IMPLEMENTATION\_SPECIFIC: 32; dispatchEvent(event: Event): boolean; ariaAtomic: string; ariaAutoComplete: string; ariaBusy: string; ariaChecked: string; ariaColCount: string; ariaColIndex: string; ariaColSpan: string; ariaCurrent: string; ariaDescription: string; ariaDisabled: string; ariaExpanded: string; ariaHasPopup: string; ariaHidden: string; ariaInvalid: string; ariaKeyShortcuts: string; ariaLabel: string; ariaLevel: string; ariaLive: string; ariaModal: string; ariaMultiLine: string; ariaMultiSelectable: string; ariaOrientation: string; ariaPlaceholder: string; ariaPosInSet: string; ariaPressed: string; ariaReadOnly: string; ariaRequired: string; ariaRoleDescription: string; ariaRowCount: string; ariaRowIndex: string; ariaRowSpan: string; ariaSelected: string; ariaSetSize: string; ariaSort: string; ariaValueMax: string; ariaValueMin: string; ariaValueNow: string; ariaValueText: string; role: string; animate(keyframes: Keyframe\[\] \| PropertyIndexedKeyframes, options?: number \| KeyframeAnimationOptions): Animation; getAnimations(options?: GetAnimationsOptions): Animation\[\]; after(...nodes: (string \| Node)\[\]): void; before(...nodes: (string \| Node)\[\]): void; remove(): void; replaceWith(...nodes: (string \| Node)\[\]): void; innerHTML: string; readonly nextElementSibling: Element; readonly previousElementSibling: Element; readonly childElementCount: number; readonly children: HTMLCollection; readonly firstElementChild: Element; readonly lastElementChild: Element; append(...nodes: (string \| Node)\[\]): void; prepend(...nodes: (string \| Node)\[\]): void; querySelector<K\_10 extends keyof HTMLElementTagNameMap>(selectors: K\_10): HTMLElementTagNameMap\[K\_10\]; querySelector<K\_11 extends keyof SVGElementTagNameMap>(selectors: K\_11): SVGElementTagNameMap\[K\_11\]; querySelector<K\_12 extends keyof MathMLElementTagNameMap>(selectors: K\_12): MathMLElementTagNameMap\[K\_12\]; querySelector<K\_13 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_13): HTMLElementDeprecatedTagNameMap\[K\_13\]; querySelector<E\_1 extends Element = Element>(selectors: string): E\_1; querySelectorAll<K\_14 extends keyof HTMLElementTagNameMap>(selectors: K\_14): NodeListOf<HTMLElementTagNameMap\[K\_14\]>; querySelectorAll<K\_15 extends keyof SVGElementTagNameMap>(selectors: K\_15): NodeListOf<SVGElementTagNameMap\[K\_15\]>; querySelectorAll<K\_16 extends keyof MathMLElementTagNameMap>(selectors: K\_16): NodeListOf<MathMLElementTagNameMap\[K\_16\]>; querySelectorAll<K\_17 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_17): NodeListOf<HTMLElementDeprecatedTagNameMap\[K\_17\]>; querySelectorAll<E\_2 extends Element = Element>(selectors: string): NodeListOf<E\_2>; replaceChildren(...nodes: (string \| Node)\[\]): void; readonly assignedSlot: HTMLSlotElement; readonly attributeStyleMap: StylePropertyMap; readonly style: CSSStyleDeclaration; contentEditable: string; enterKeyHint: string; inputMode: string; readonly isContentEditable: boolean; onabort: (this: GlobalEventHandlers, ev: UIEvent) => any; onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any; onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any; onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any; onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any; onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any; onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any; onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any; oncancel: (this: GlobalEventHandlers, ev: Event) => any; oncanplay: (this: GlobalEventHandlers, ev: Event) => any; oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any; onchange: (this: GlobalEventHandlers, ev: Event) => any; onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; onclose: (this: GlobalEventHandlers, ev: Event) => any; oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any; oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any; oncuechange: (this: GlobalEventHandlers, ev: Event) => any; oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any; ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any; ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any; ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any; ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any; ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any; ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any; ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any; ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any; ondurationchange: (this: GlobalEventHandlers, ev: Event) => any; onemptied: (this: GlobalEventHandlers, ev: Event) => any; onended: (this: GlobalEventHandlers, ev: Event) => any; onerror: OnErrorEventHandlerNonNull; onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any; onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any; ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any; oninput: (this: GlobalEventHandlers, ev: Event) => any; oninvalid: (this: GlobalEventHandlers, ev: Event) => any; onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any; onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any; onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any; onload: (this: GlobalEventHandlers, ev: Event) => any; onloadeddata: (this: GlobalEventHandlers, ev: Event) => any; onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any; onloadstart: (this: GlobalEventHandlers, ev: Event) => any; onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any; onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any; onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any; onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any; onpause: (this: GlobalEventHandlers, ev: Event) => any; onplay: (this: GlobalEventHandlers, ev: Event) => any; onplaying: (this: GlobalEventHandlers, ev: Event) => any; onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any; onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any; onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any; onratechange: (this: GlobalEventHandlers, ev: Event) => any; onreset: (this: GlobalEventHandlers, ev: Event) => any; onresize: (this: GlobalEventHandlers, ev: UIEvent) => any; onscroll: (this: GlobalEventHandlers, ev: Event) => any; onscrollend: (this: GlobalEventHandlers, ev: Event) => any; onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any; onseeked: (this: GlobalEventHandlers, ev: Event) => any; onseeking: (this: GlobalEventHandlers, ev: Event) => any; onselect: (this: GlobalEventHandlers, ev: Event) => any; onselectionchange: (this: GlobalEventHandlers, ev: Event) => any; onselectstart: (this: GlobalEventHandlers, ev: Event) => any; onslotchange: (this: GlobalEventHandlers, ev: Event) => any; onstalled: (this: GlobalEventHandlers, ev: Event) => any; onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any; onsuspend: (this: GlobalEventHandlers, ev: Event) => any; ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any; ontoggle: (this: GlobalEventHandlers, ev: Event) => any; ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any; ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any; ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any; ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any; ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any; ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any; ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any; ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any; onvolumechange: (this: GlobalEventHandlers, ev: Event) => any; onwaiting: (this: GlobalEventHandlers, ev: Event) => any; onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any; onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any; onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any; onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any; onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any; autofocus: boolean; readonly dataset: DOMStringMap; nonce?: string; tabIndex: number; blur(): void; focus(options?: FocusOptions): void; readonly $fastController: import("@microsoft/fast-element").Controller; connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string, newValue: string): void; }
|
354
|
+
|
329
355
|
## Remarks
|
330
356
|
|
331
357
|
Strongly types the components `$emit` method, allowing only the mapped events to be emitted.
|
@@ -14,7 +14,7 @@ export interface EventEmitterDI<TEventDetailMap extends EventDetailMap>
|
|
14
14
|
|
15
15
|
## Remarks
|
16
16
|
|
17
|
-
A strongly typed event emitter with events typed to [EventDetailMap](./foundation-events.eventdetailmap.md) pairings. This is closely related to the [EventEmitter](./foundation-events.eventemitter.md) mixin in terms of functionality, however its purpose is different. This allows you to create pre-configured EventEmitters that can be injected anywhere. These can emit typed events from an origin html element, without that element needing to be an actual . If you are starting out, we recommend using the [EventEmitter](./foundation-events.eventemitter.md) mixin where possible.
|
17
|
+
A strongly typed event emitter with events typed to [EventDetailMap](./foundation-events.eventdetailmap.md) pairings. This is closely related to the [EventEmitter()](./foundation-events.eventemitter.md) mixin in terms of functionality, however its purpose is different. This allows you to create pre-configured EventEmitters that can be injected anywhere. These can emit typed events from an origin html element, without that element needing to be an actual . If you are starting out, we recommend using the [EventEmitter()](./foundation-events.eventemitter.md) mixin where possible.
|
18
18
|
|
19
19
|
## Example 1
|
20
20
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [getBaseEmitArgs](./foundation-events.getbaseemitargs.md)
|
4
4
|
|
5
|
-
## getBaseEmitArgs
|
5
|
+
## getBaseEmitArgs() function
|
6
6
|
|
7
7
|
|
8
8
|
**Signature:**
|
@@ -10,3 +10,14 @@
|
|
10
10
|
```typescript
|
11
11
|
getBaseEmitArgs: (...args: unknown[]) => EmitArgs
|
12
12
|
```
|
13
|
+
|
14
|
+
## Parameters
|
15
|
+
|
16
|
+
| Parameter | Type | Description |
|
17
|
+
| --- | --- | --- |
|
18
|
+
| args | unknown\[\] | |
|
19
|
+
|
20
|
+
**Returns:**
|
21
|
+
|
22
|
+
[EmitArgs](./foundation-events.emitargs.md)
|
23
|
+
|
@@ -10,6 +10,17 @@
|
|
10
10
|
| --- | --- |
|
11
11
|
| [DefaultEventEmitterDI](./foundation-events.defaulteventemitterdi.md) | Default EventEmitterDI. |
|
12
12
|
|
13
|
+
## Functions
|
14
|
+
|
15
|
+
| Function | Description |
|
16
|
+
| --- | --- |
|
17
|
+
| [createInputEmitter()](./foundation-events.createinputemitter.md) | <code><input></code> template emit helper. |
|
18
|
+
| [createSelectEmitter()](./foundation-events.createselectemitter.md) | <code><select></code> template emit helper. |
|
19
|
+
| [customEvent(ctx)](./foundation-events.customevent.md) | |
|
20
|
+
| [EventEmitter(Target)](./foundation-events.eventemitter.md) | EventEmitter mixin. |
|
21
|
+
| [getBaseEmitArgs(args)](./foundation-events.getbaseemitargs.md) | |
|
22
|
+
| [registerEmitter()](./foundation-events.registeremitter.md) | Register an emitter with the DI. |
|
23
|
+
|
13
24
|
## Interfaces
|
14
25
|
|
15
26
|
| Interface | Description |
|
@@ -21,13 +32,7 @@
|
|
21
32
|
|
22
33
|
| Variable | Description |
|
23
34
|
| --- | --- |
|
24
|
-
| [createInputEmitter](./foundation-events.createinputemitter.md) | <code><input></code> template emit helper. |
|
25
|
-
| [createSelectEmitter](./foundation-events.createselectemitter.md) | <code><select></code> template emit helper. |
|
26
|
-
| [customEvent](./foundation-events.customevent.md) | |
|
27
|
-
| [EventEmitter](./foundation-events.eventemitter.md) | EventEmitter mixin. |
|
28
|
-
| [getBaseEmitArgs](./foundation-events.getbaseemitargs.md) | |
|
29
35
|
| [logger](./foundation-events.logger.md) | |
|
30
|
-
| [registerEmitter](./foundation-events.registeremitter.md) | Register an emitter with the DI. |
|
31
36
|
| [targetChecked](./foundation-events.targetchecked.md) | |
|
32
37
|
| [targetFirstSelectedValue](./foundation-events.targetfirstselectedvalue.md) | |
|
33
38
|
| [targetValue](./foundation-events.targetvalue.md) | |
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-events](./foundation-events.md) > [registerEmitter](./foundation-events.registeremitter.md)
|
4
4
|
|
5
|
-
## registerEmitter
|
5
|
+
## registerEmitter() function
|
6
6
|
|
7
7
|
Register an emitter with the DI.
|
8
8
|
|
@@ -11,3 +11,7 @@ Register an emitter with the DI.
|
|
11
11
|
```typescript
|
12
12
|
registerEmitter: <TEventDetailMap extends EventDetailMap>() => import("@microsoft/fast-foundation").InterfaceSymbol<EventEmitterDI<TEventDetailMap>>
|
13
13
|
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
import("@microsoft/fast-foundation").InterfaceSymbol<[EventEmitterDI](./foundation-events.eventemitterdi.md)<!-- --><TEventDetailMap>>
|
17
|
+
|