@genesislcap/foundation-events 14.67.1 → 14.67.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/dts/eventEmitter/eventEmitterDI.d.ts +43 -4
- package/dist/dts/eventEmitter/eventEmitterDI.d.ts.map +1 -1
- package/dist/dts/eventEmitter/eventEmitterMixin.d.ts +57 -317
- package/dist/dts/eventEmitter/eventEmitterMixin.d.ts.map +1 -1
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/types.d.ts +78 -10
- package/dist/dts/types.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +2 -0
- package/dist/dts/utils/index.d.ts.map +1 -0
- package/dist/dts/utils/logger.d.ts +5 -0
- package/dist/dts/utils/logger.d.ts.map +1 -0
- package/dist/esm/eventEmitter/eventEmitterDI.js +14 -0
- package/dist/esm/eventEmitter/eventEmitterMixin.js +57 -4
- package/dist/esm/index.js +1 -0
- package/dist/esm/types.js +48 -0
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/logger.js +5 -0
- package/dist/foundation-events.api.json +1374 -0
- package/dist/foundation-events.d.ts +246 -0
- package/docs/.gitattributes +2 -0
- package/docs/api/foundation-events.constructabletypedeventemitter.md +16 -0
- package/docs/api/foundation-events.createinputemitter.md +27 -0
- package/docs/api/foundation-events.createselectemitter.md +27 -0
- package/docs/api/foundation-events.customevent.md +12 -0
- package/docs/api/foundation-events.customeventmap.md +16 -0
- package/docs/api/foundation-events.defaulteventemitterdi.emit.md +22 -0
- package/docs/api/foundation-events.defaulteventemitterdi.md +21 -0
- package/docs/api/foundation-events.emitargs.md +14 -0
- package/docs/api/foundation-events.emitoptions.md +12 -0
- package/docs/api/foundation-events.emitorigin.md +12 -0
- package/docs/api/foundation-events.emitreturn.md +12 -0
- package/docs/api/foundation-events.eventdetailmap.md +12 -0
- package/docs/api/foundation-events.eventemitter.md +59 -0
- package/docs/api/foundation-events.eventemitterdi.emit.md +22 -0
- package/docs/api/foundation-events.eventemitterdi.md +48 -0
- package/docs/api/foundation-events.eventemittertarget.md +16 -0
- package/docs/api/foundation-events.getbaseemitargs.md +12 -0
- package/docs/api/foundation-events.keysmatching.md +14 -0
- package/docs/api/foundation-events.logger.md +12 -0
- package/docs/api/foundation-events.md +47 -0
- package/docs/api/foundation-events.registeremitter.md +13 -0
- package/docs/api/foundation-events.targetfirstselectedvalue.md +12 -0
- package/docs/api/foundation-events.targetvalue.md +12 -0
- package/docs/api/foundation-events.typedemitter._emit.md +22 -0
- package/docs/api/foundation-events.typedemitter.md +19 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +106 -0
- package/package.json +24 -4
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Genesis Foundation Events
|
|
2
2
|
|
|
3
|
+
`foundation-events` contains strongly typed [event emitting utilities](./src/eventEmitter/README.md) and interfaces.
|
|
4
|
+
|
|
5
|
+
### [API Docs](./docs/api/index.md)
|
|
6
|
+
|
|
3
7
|
- Contains [event emitting utilities](./src/eventEmitter/README.md).
|
|
4
8
|
- Contains common system level:
|
|
5
9
|
- Custom event types
|
|
@@ -89,4 +93,4 @@ To denote the type of "statistic":
|
|
|
89
93
|
Note: this project provides front end dependencies and uses licensed components listed in the next section, thus licenses for those components are required during development. Contact [Genesis Global](https://genesis.global/contact-us/) for more details.
|
|
90
94
|
|
|
91
95
|
### Licensed components
|
|
92
|
-
Genesis low-code platform
|
|
96
|
+
Genesis low-code platform
|
|
@@ -1,16 +1,55 @@
|
|
|
1
1
|
import { EmitOptions, EmitOrigin, EmitReturn, EventDetailMap } from '../types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* EventEmitterDI interface.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* A strongly typed event emitter with events typed to {@link EventDetailMap} pairings. This is closely related to the
|
|
7
|
+
* {@link EventEmitter} mixin in terms of functionality, however its purpose is different. This allows you to create
|
|
8
|
+
* pre-configured EventEmitters that can be injected anywhere. These can emit typed events from an origin html element,
|
|
9
|
+
* without that element needing to be an actual {@link @microsoft/fast-element#FASTElement | FASTElement}. If you are
|
|
10
|
+
* starting out, we recommend using the {@link EventEmitter} mixin where possible.
|
|
11
|
+
*
|
|
12
|
+
* @example Create an emitter within the DI.
|
|
13
|
+
* ```ts
|
|
14
|
+
* import {registerEmitter} from '@genesislcap/foundation-events';
|
|
15
|
+
* ...
|
|
16
|
+
* export const MyEventEmitter = registerEmitter<MyEventDetailMap>();
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @example Use that emitter.
|
|
20
|
+
* ```ts
|
|
21
|
+
* export class MyComponent extends FASTElement {
|
|
22
|
+
* @observable someElement!: HTMLElement;
|
|
23
|
+
* @MyEventEmitter emitter: MyEventEmitter;
|
|
24
|
+
* connectedCallback() {
|
|
25
|
+
* this.emitter.emit(this.someElement, 'some-event', {foo: 'bar'});
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @typeParam TEventDetailMap - The {@link EventDetailMap}.
|
|
31
|
+
* @public
|
|
7
32
|
*/
|
|
8
33
|
export interface EventEmitterDI<TEventDetailMap extends EventDetailMap> {
|
|
9
34
|
emit<K extends keyof TEventDetailMap>(...args: TEventDetailMap[K] extends void ? [origin: EmitOrigin, type: K, options?: EmitOptions] : [origin: EmitOrigin, type: K, detail: TEventDetailMap[K], options?: EmitOptions]): EmitReturn;
|
|
10
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Default EventEmitterDI.
|
|
38
|
+
* @typeParam TEventDetailMap - The {@link EventDetailMap}.
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
11
41
|
export declare class DefaultEventEmitterDI<TEventDetailMap extends EventDetailMap> implements EventEmitterDI<TEventDetailMap> {
|
|
12
42
|
emit<K extends keyof TEventDetailMap>(...args: TEventDetailMap[K] extends void ? [origin: EmitOrigin, type: K, options?: EmitOptions] : [origin: EmitOrigin, type: K, detail: TEventDetailMap[K], options?: EmitOptions]): EmitReturn;
|
|
13
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* EventEmitterDI DI key.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
14
48
|
export declare const EventEmitterDI: import("@microsoft/fast-foundation").InterfaceSymbol<EventEmitterDI<EventDetailMap>>;
|
|
49
|
+
/**
|
|
50
|
+
* Register an emitter with the DI.
|
|
51
|
+
* @typeParam TEventDetailMap - The {@link EventDetailMap}.
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
15
54
|
export declare const registerEmitter: <TEventDetailMap extends EventDetailMap>() => import("@microsoft/fast-foundation").InterfaceSymbol<EventEmitterDI<TEventDetailMap>>;
|
|
16
55
|
//# sourceMappingURL=eventEmitterDI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventEmitterDI.d.ts","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterDI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAmB,MAAM,UAAU,CAAC;AAEhG
|
|
1
|
+
{"version":3,"file":"eventEmitterDI.d.ts","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterDI.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAmB,MAAM,UAAU,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,WAAW,cAAc,CAAC,eAAe,SAAS,cAAc;IACpE,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,EAClC,GAAG,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GACpC,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GACpD,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GACnF,UAAU,CAAC;CACf;AAED;;;;GAIG;AACH,qBAAa,qBAAqB,CAAC,eAAe,SAAS,cAAc,CACvE,YAAW,cAAc,CAAC,eAAe,CAAC;IAE1C,IAAI,CAAC,CAAC,SAAS,MAAM,eAAe,EAClC,GAAG,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GACpC,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GACpD,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GACnF,UAAU;CAKd;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sFAE1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,qIAE3B,CAAC"}
|
|
@@ -1,319 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
closest<K_4 extends keyof SVGElementTagNameMap>(selector: K_4): SVGElementTagNameMap[K_4];
|
|
59
|
-
closest<E extends Element = Element>(selectors: string): E;
|
|
60
|
-
getAttribute(qualifiedName: string): string;
|
|
61
|
-
getAttributeNS(namespace: string, localName: string): string;
|
|
62
|
-
getAttributeNames(): string[];
|
|
63
|
-
getAttributeNode(qualifiedName: string): Attr;
|
|
64
|
-
getAttributeNodeNS(namespace: string, localName: string): Attr;
|
|
65
|
-
getBoundingClientRect(): DOMRect;
|
|
66
|
-
getClientRects(): DOMRectList;
|
|
67
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
68
|
-
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
69
|
-
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
70
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
71
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
72
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
73
|
-
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
|
74
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
75
|
-
hasAttributeNS(namespace: string, localName: string): boolean;
|
|
76
|
-
hasAttributes(): boolean;
|
|
77
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
78
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element;
|
|
79
|
-
insertAdjacentHTML(position: InsertPosition, text: string): void;
|
|
80
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
81
|
-
matches(selectors: string): boolean;
|
|
82
|
-
releasePointerCapture(pointerId: number): void;
|
|
83
|
-
removeAttribute(qualifiedName: string): void;
|
|
84
|
-
removeAttributeNS(namespace: string, localName: string): void;
|
|
85
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
86
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
87
|
-
requestPointerLock(): void;
|
|
88
|
-
scroll(options?: ScrollToOptions): void;
|
|
89
|
-
scroll(x: number, y: number): void;
|
|
90
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
91
|
-
scrollBy(x: number, y: number): void;
|
|
92
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
93
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
94
|
-
scrollTo(x: number, y: number): void;
|
|
95
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
96
|
-
setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
|
|
97
|
-
setAttributeNode(attr: Attr): Attr;
|
|
98
|
-
setAttributeNodeNS(attr: Attr): Attr;
|
|
99
|
-
setPointerCapture(pointerId: number): void;
|
|
100
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
101
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
102
|
-
readonly baseURI: string;
|
|
103
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
104
|
-
readonly firstChild: ChildNode;
|
|
105
|
-
readonly isConnected: boolean;
|
|
106
|
-
readonly lastChild: ChildNode;
|
|
107
|
-
readonly nextSibling: ChildNode;
|
|
108
|
-
readonly nodeName: string;
|
|
109
|
-
readonly nodeType: number;
|
|
110
|
-
nodeValue: string;
|
|
111
|
-
readonly parentElement: HTMLElement;
|
|
112
|
-
readonly parentNode: ParentNode;
|
|
113
|
-
readonly previousSibling: ChildNode;
|
|
114
|
-
textContent: string;
|
|
115
|
-
appendChild<T extends Node>(node: T): T;
|
|
116
|
-
cloneNode(deep?: boolean): Node;
|
|
117
|
-
compareDocumentPosition(other: Node): number;
|
|
118
|
-
contains(other: Node): boolean;
|
|
119
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
120
|
-
hasChildNodes(): boolean;
|
|
121
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
|
|
122
|
-
isDefaultNamespace(namespace: string): boolean;
|
|
123
|
-
isEqualNode(otherNode: Node): boolean;
|
|
124
|
-
isSameNode(otherNode: Node): boolean;
|
|
125
|
-
lookupNamespaceURI(prefix: string): string;
|
|
126
|
-
lookupPrefix(namespace: string): string;
|
|
127
|
-
normalize(): void;
|
|
128
|
-
removeChild<T_2 extends Node>(child: T_2): T_2;
|
|
129
|
-
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
|
130
|
-
readonly ATTRIBUTE_NODE: number;
|
|
131
|
-
readonly CDATA_SECTION_NODE: number;
|
|
132
|
-
readonly COMMENT_NODE: number;
|
|
133
|
-
readonly DOCUMENT_FRAGMENT_NODE: number;
|
|
134
|
-
readonly DOCUMENT_NODE: number;
|
|
135
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
|
136
|
-
readonly DOCUMENT_POSITION_CONTAINS: number;
|
|
137
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
|
138
|
-
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
|
139
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
|
140
|
-
readonly DOCUMENT_POSITION_PRECEDING: number;
|
|
141
|
-
readonly DOCUMENT_TYPE_NODE: number;
|
|
142
|
-
readonly ELEMENT_NODE: number;
|
|
143
|
-
readonly ENTITY_NODE: number;
|
|
144
|
-
readonly ENTITY_REFERENCE_NODE: number;
|
|
145
|
-
readonly NOTATION_NODE: number;
|
|
146
|
-
readonly PROCESSING_INSTRUCTION_NODE: number;
|
|
147
|
-
readonly TEXT_NODE: number;
|
|
148
|
-
dispatchEvent(event: Event): boolean;
|
|
149
|
-
ariaAtomic: string;
|
|
150
|
-
ariaAutoComplete: string;
|
|
151
|
-
ariaBusy: string;
|
|
152
|
-
ariaChecked: string;
|
|
153
|
-
ariaColCount: string;
|
|
154
|
-
ariaColIndex: string;
|
|
155
|
-
ariaColIndexText: string;
|
|
156
|
-
ariaColSpan: string;
|
|
157
|
-
ariaCurrent: string;
|
|
158
|
-
ariaDisabled: string;
|
|
159
|
-
ariaExpanded: string;
|
|
160
|
-
ariaHasPopup: string;
|
|
161
|
-
ariaHidden: string;
|
|
162
|
-
ariaInvalid: string;
|
|
163
|
-
ariaKeyShortcuts: string;
|
|
164
|
-
ariaLabel: string;
|
|
165
|
-
ariaLevel: string;
|
|
166
|
-
ariaLive: string;
|
|
167
|
-
ariaModal: string;
|
|
168
|
-
ariaMultiLine: string;
|
|
169
|
-
ariaMultiSelectable: string;
|
|
170
|
-
ariaOrientation: string;
|
|
171
|
-
ariaPlaceholder: string;
|
|
172
|
-
ariaPosInSet: string;
|
|
173
|
-
ariaPressed: string;
|
|
174
|
-
ariaReadOnly: string;
|
|
175
|
-
ariaRequired: string;
|
|
176
|
-
ariaRoleDescription: string;
|
|
177
|
-
ariaRowCount: string;
|
|
178
|
-
ariaRowIndex: string;
|
|
179
|
-
ariaRowIndexText: string;
|
|
180
|
-
ariaRowSpan: string;
|
|
181
|
-
ariaSelected: string;
|
|
182
|
-
ariaSetSize: string;
|
|
183
|
-
ariaSort: string;
|
|
184
|
-
ariaValueMax: string;
|
|
185
|
-
ariaValueMin: string;
|
|
186
|
-
ariaValueNow: string;
|
|
187
|
-
ariaValueText: string;
|
|
188
|
-
role: string;
|
|
189
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
|
|
190
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
191
|
-
after(...nodes: (string | Node)[]): void;
|
|
192
|
-
before(...nodes: (string | Node)[]): void;
|
|
193
|
-
remove(): void;
|
|
194
|
-
replaceWith(...nodes: (string | Node)[]): void;
|
|
195
|
-
innerHTML: string;
|
|
196
|
-
readonly nextElementSibling: Element;
|
|
197
|
-
readonly previousElementSibling: Element;
|
|
198
|
-
readonly childElementCount: number;
|
|
199
|
-
readonly children: HTMLCollection;
|
|
200
|
-
readonly firstElementChild: Element;
|
|
201
|
-
readonly lastElementChild: Element;
|
|
202
|
-
append(...nodes: (string | Node)[]): void;
|
|
203
|
-
prepend(...nodes: (string | Node)[]): void;
|
|
204
|
-
querySelector<K_7 extends keyof HTMLElementTagNameMap>(selectors: K_7): HTMLElementTagNameMap[K_7];
|
|
205
|
-
querySelector<K_8 extends keyof SVGElementTagNameMap>(selectors: K_8): SVGElementTagNameMap[K_8];
|
|
206
|
-
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
|
207
|
-
querySelectorAll<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): NodeListOf<HTMLElementTagNameMap[K_9]>;
|
|
208
|
-
querySelectorAll<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): NodeListOf<SVGElementTagNameMap[K_10]>;
|
|
209
|
-
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
210
|
-
replaceChildren(...nodes: (string | Node)[]): void;
|
|
211
|
-
readonly assignedSlot: HTMLSlotElement;
|
|
212
|
-
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
213
|
-
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
214
|
-
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
|
215
|
-
readonly style: CSSStyleDeclaration;
|
|
216
|
-
contentEditable: string;
|
|
217
|
-
enterKeyHint: string;
|
|
218
|
-
inputMode: string;
|
|
219
|
-
readonly isContentEditable: boolean;
|
|
220
|
-
onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
221
|
-
onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
222
|
-
onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
223
|
-
onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
224
|
-
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
|
225
|
-
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
226
|
-
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
|
227
|
-
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
228
|
-
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
|
229
|
-
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
230
|
-
oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
|
|
231
|
-
onchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
232
|
-
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
233
|
-
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
|
234
|
-
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
235
|
-
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
236
|
-
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
237
|
-
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
238
|
-
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
239
|
-
ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
240
|
-
ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
241
|
-
ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
242
|
-
ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
243
|
-
ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
|
244
|
-
ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
245
|
-
onemptied: (this: GlobalEventHandlers, ev: Event) => any;
|
|
246
|
-
onended: (this: GlobalEventHandlers, ev: Event) => any;
|
|
247
|
-
onerror: OnErrorEventHandlerNonNull;
|
|
248
|
-
onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
|
249
|
-
onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
|
|
250
|
-
ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
251
|
-
oninput: (this: GlobalEventHandlers, ev: Event) => any;
|
|
252
|
-
oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
|
|
253
|
-
onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
254
|
-
onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
255
|
-
onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
|
|
256
|
-
onload: (this: GlobalEventHandlers, ev: Event) => any;
|
|
257
|
-
onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
258
|
-
onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
|
|
259
|
-
onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
260
|
-
onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
261
|
-
onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
262
|
-
onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
263
|
-
onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
264
|
-
onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
265
|
-
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
266
|
-
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
267
|
-
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
|
268
|
-
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
|
269
|
-
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
|
270
|
-
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
|
271
|
-
onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
272
|
-
onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
273
|
-
onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
274
|
-
onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
275
|
-
onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
276
|
-
onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
277
|
-
onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
278
|
-
onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
|
|
279
|
-
onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
|
|
280
|
-
onratechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
281
|
-
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
|
282
|
-
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
|
283
|
-
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
|
284
|
-
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
|
285
|
-
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
|
286
|
-
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
|
287
|
-
onselect: (this: GlobalEventHandlers, ev: Event) => any;
|
|
288
|
-
onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
289
|
-
onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
290
|
-
onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
291
|
-
onstalled: (this: GlobalEventHandlers, ev: Event) => any;
|
|
292
|
-
onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
|
|
293
|
-
onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
294
|
-
ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
|
|
295
|
-
ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
|
296
|
-
ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
297
|
-
ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
298
|
-
ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
299
|
-
ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
|
|
300
|
-
ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
301
|
-
ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
302
|
-
ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
303
|
-
ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
|
|
304
|
-
onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
|
|
305
|
-
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
306
|
-
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
307
|
-
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
308
|
-
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
309
|
-
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
310
|
-
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
311
|
-
autofocus: boolean;
|
|
312
|
-
readonly dataset: DOMStringMap;
|
|
313
|
-
nonce?: string;
|
|
314
|
-
tabIndex: number;
|
|
315
|
-
blur(): void;
|
|
316
|
-
focus(options?: FocusOptions): void;
|
|
317
|
-
};
|
|
1
|
+
import { FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
import { EmitOptions, EmitReturn, EventDetailMap, EventEmitterTarget } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* EventEmitter mixin.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* Strongly types the components `$emit` method, allowing only the mapped events to be emitted.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* Apply mixin to the base {@link @microsoft/fast-element#FASTElement | FASTElement}
|
|
11
|
+
*
|
|
12
|
+
* # Import
|
|
13
|
+
* ```ts
|
|
14
|
+
* import { EventEmitter, SomeSystemLevelEventDetailMap } from '@genesislcap/foundation-events';
|
|
15
|
+
* import { StoreEventDetailMap, TradeEntryEventDetailMap } from '../store'; // < custom app level event maps
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* # Create event map
|
|
19
|
+
* ```ts
|
|
20
|
+
* type EventMap = SomeSystemLevelEventDetailMap & StoreEventDetailMap & TradeEntryEventDetailMap;
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* # Apply Mixin
|
|
24
|
+
* ```ts
|
|
25
|
+
* export class MyComponent extends EventEmitter<EventMap>(FASTElement) {
|
|
26
|
+
* onSomeComponentEvent() {
|
|
27
|
+
* this.$emit('some-allowed-event', { foo: 'expected data structure' });
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Apply mixin to a class in the inheritance chain requires a second generic type param.
|
|
34
|
+
*
|
|
35
|
+
* # Apply Mixin to MyComponent that extends MyBaseComponent (which might be abstract). Mixin can be applied at different levels.
|
|
36
|
+
* # Please note there's a current limitation on retaining protected member access with this approach, so apply to base where possible.
|
|
37
|
+
* # Also, super classes cannot emit typed events via inheritance. Each level must have an explicit map. Devs can use a Union and Pick to create these.
|
|
38
|
+
* ```ts
|
|
39
|
+
* export class MyComponent extends EventEmitter<EventMap, MyBaseComponent>(MyBaseComponent) {}
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @privateRemarks
|
|
43
|
+
* Failed to retain protected member access when the mixin is applied while keeping the typed emitter, we can revisit if needed.
|
|
44
|
+
* So in the last example, if `MyBaseComponent` had a protected member, `MyComponent` wouldn't be able to access it with the mixin
|
|
45
|
+
* applied. Public members are fine. It may be a limitation of TypeScript. Suggestions welcome, but be warned it's a time sink.
|
|
46
|
+
*
|
|
47
|
+
* @typeParam TEventDetailMap - The {@link EventDetailMap}.
|
|
48
|
+
* @typeParam TTarget - The target class.
|
|
49
|
+
* @param Target - The class to apply the mixin to which ultimately extends {@link @microsoft/fast-element#FASTElement | FASTElement}.
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
export declare const EventEmitter: <TEventDetailMap extends EventDetailMap, TTarget extends FASTElement = FASTElement>(Target: EventEmitterTarget<TTarget>) => abstract new (...args: any[]) => {
|
|
53
|
+
$emit<K extends keyof TEventDetailMap & string>(...args: TEventDetailMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: TEventDetailMap[K], options?: EmitOptions]): EmitReturn;
|
|
54
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
318
58
|
};
|
|
319
59
|
//# sourceMappingURL=eventEmitterMixin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventEmitterMixin.d.ts","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterMixin.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"eventEmitterMixin.d.ts","sourceRoot":"","sources":["../../../src/eventEmitter/eventEmitterMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,WAAW,EACX,UAAU,EACV,cAAc,EACd,kBAAkB,EAGnB,MAAM,UAAU,CAAC;AAElB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,eAAO,MAAM,YAAY;iMAYlB,UAAU;;;;;CAMhB,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.34.9"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/dist/dts/types.d.ts
CHANGED
|
@@ -1,36 +1,104 @@
|
|
|
1
1
|
import { Binding, Constructable, ExecutionContext, FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* @remarks
|
|
4
|
+
* Using `abstract` here should cover mixing into both concrete and abstract classes.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export type EventEmitterTarget<TBase extends FASTElement> = abstract new (...args: any[]) => TBase;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated - Use {@link EventEmitterTarget} type instead.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
2
12
|
export type ConstructableTypedEventEmitter = Constructable<FASTElement & HTMLElement>;
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
3
16
|
export type EmitOptions = Omit<CustomEventInit, 'detail'>;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
4
20
|
export type EmitReturn = boolean | void;
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
5
24
|
export type EmitArgs = [string, {} | undefined, EmitOptions | undefined];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
6
28
|
export type EmitOrigin = FASTElement;
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
7
32
|
export type EventDetailMap = Record<string, unknown>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export interface TypedEmitter<TEventDetailMap extends EventDetailMap> {
|
|
37
|
+
$emit<K extends keyof TEventDetailMap & string>(...args: TEventDetailMap[K] extends void ? [type: K, options?: EmitOptions] : [type: K, detail: TEventDetailMap[K], options?: EmitOptions]): EmitReturn;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
11
42
|
export type CustomEventMap<TEventDetailMap extends EventDetailMap> = {
|
|
12
43
|
[K in keyof TEventDetailMap]: CustomEvent<TEventDetailMap[K]>;
|
|
13
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
14
48
|
export declare const getBaseEmitArgs: (...args: unknown[]) => EmitArgs;
|
|
49
|
+
/**
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
15
52
|
export declare const customEvent: <TEventDetail = void>(ctx: ExecutionContext) => CustomEvent<TEventDetail>;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
16
56
|
type ValueGetter = (ctx: ExecutionContext) => any;
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
17
60
|
export declare const targetValue: ValueGetter;
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
18
64
|
export declare const targetFirstSelectedValue: ValueGetter;
|
|
19
65
|
/**
|
|
20
|
-
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export type KeysMatching<T, V> = {
|
|
69
|
+
[K in keyof T]-?: T[K] extends V ? K : never;
|
|
70
|
+
}[keyof T];
|
|
71
|
+
/**
|
|
72
|
+
* `<input>` template emit helper.
|
|
21
73
|
*
|
|
74
|
+
* @remarks
|
|
22
75
|
* In some.template.ts file you create the helper upfront by passing in the full event map.
|
|
23
76
|
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
24
79
|
* const inputEmit = createInputEmitter<EventMap>();
|
|
25
|
-
*
|
|
26
|
-
*
|
|
80
|
+
* ...
|
|
27
81
|
* <zero-text-field @change="${inputEmit('some-input-changed')}">
|
|
28
|
-
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
29
85
|
*/
|
|
30
|
-
export type KeysMatching<T, V> = {
|
|
31
|
-
[K in keyof T]-?: T[K] extends V ? K : never;
|
|
32
|
-
}[keyof T];
|
|
33
86
|
export declare const createInputEmitter: <TEventDetailMap extends EventDetailMap>() => <K extends KeysMatching<TEventDetailMap, string>>(type: K, options?: EmitOptions) => Binding;
|
|
87
|
+
/**
|
|
88
|
+
* `<select>` template emit helper.
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* In some.template.ts file you create the helper upfront by passing in the full event map.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```ts
|
|
95
|
+
* const selectEmit = createSelectEmitter<EventMap>();
|
|
96
|
+
* ...
|
|
97
|
+
* <zero-select @change="${selectEmit('some-select-changed')}">
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
34
102
|
export declare const createSelectEmitter: <TEventDetailMap extends EventDetailMap>() => <K extends KeysMatching<TEventDetailMap, string>>(type: K, options?: EmitOptions) => Binding;
|
|
35
103
|
export {};
|
|
36
104
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/dts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGhG,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGhG;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,WAAW,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC;AAEnG;;;GAGG;AACH,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,IAAI,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,EAAE,GAAG,SAAS,EAAE,WAAW,GAAG,SAAS,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC;AAErC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,eAAe,SAAS,cAAc;IAClE,KAAK,CAAC,CAAC,SAAS,MAAM,eAAe,GAAG,MAAM,EAC5C,GAAG,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,SAAS,IAAI,GACpC,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GAChC,CAAC,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,WAAW,CAAC,GAC/D,UAAU,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,eAAe,SAAS,cAAc,IAAI;KAClE,CAAC,IAAI,MAAM,eAAe,GAAG,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAC9D,CAAC;AAUF;;GAEG;AACH,eAAO,MAAM,eAAe,YAAa,OAAO,EAAE,aAWjD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,6BAA8B,gBAAgB,8BAC9B,CAAC;AAEzC;;GAEG;AACH,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,gBAAgB,KAAK,GAAG,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,WAAwE,CAAC;AAEnG;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,WACmB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AAW3F;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,qHAnBwC,WAAW,KAAG,OAoBlC,CAAC;AAEpD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,qHArCuC,WAAW,KAAG,OAsCrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,MAAM,gDAAoC,CAAC"}
|