@genesislcap/foundation-utils 14.225.2-alpha-a51f60c.0 → 14.225.2-alpha-968f711.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/custom-elements.json +319 -319
- package/dist/dts/error/errorMap.d.ts.map +1 -1
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts +29 -51
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/dts/mixins/pendingState/pendingState.d.ts +29 -45
- package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -1
- package/dist/dts/observer/observer.d.ts.map +1 -1
- package/dist/dts/promise/resolveAfter.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +1 -1
- package/dist/esm/mixins/lifecycle/lifecycle.js +5 -5
- package/dist/esm/mixins/pendingState/pendingState.js +2 -2
- package/dist/esm/uuid/uuid.js +2 -2
- package/dist/foundation-utils.api.json +267 -1106
- package/dist/foundation-utils.d.ts +58 -93
- package/docs/api/foundation-utils.createerrormap.md +1 -14
- package/docs/api/foundation-utils.createobserver.md +1 -5
- package/docs/api/foundation-utils.getfontmixin.md +1 -16
- package/docs/api/foundation-utils.iniframe.md +1 -7
- package/docs/api/foundation-utils.insertdocumentcssrule.md +1 -15
- package/docs/api/foundation-utils.insertdocumentlink.md +1 -12
- package/docs/api/foundation-utils.insymphonydesktop.md +1 -7
- package/docs/api/foundation-utils.isdev.md +1 -5
- package/docs/api/foundation-utils.lifecyclemixin.md +30 -56
- package/docs/api/foundation-utils.loadfontfaces.md +1 -13
- package/docs/api/foundation-utils.md +14 -14
- package/docs/api/foundation-utils.openpopup.md +1 -17
- package/docs/api/foundation-utils.pendingstate.md +30 -57
- package/docs/api/foundation-utils.resolveafter.md +1 -12
- package/docs/api/foundation-utils.respondtovisibility.md +1 -13
- package/docs/{api-report.md.api.md → api-report.md} +58 -93
- package/package.json +11 -11
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [LifecycleMixin](./foundation-utils.lifecyclemixin.md)
|
4
4
|
|
5
|
-
## LifecycleMixin
|
5
|
+
## LifecycleMixin variable
|
6
6
|
|
7
7
|
> This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
|
8
8
|
>
|
@@ -45,15 +45,11 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
45
45
|
readonly offsetTop: number;
|
46
46
|
readonly offsetWidth: number;
|
47
47
|
outerText: string;
|
48
|
-
popover: string;
|
49
48
|
spellcheck: boolean;
|
50
49
|
title: string;
|
51
50
|
translate: boolean;
|
52
51
|
attachInternals(): ElementInternals;
|
53
52
|
click(): void;
|
54
|
-
hidePopover(): void;
|
55
|
-
showPopover(): void;
|
56
|
-
togglePopover(force?: boolean): boolean;
|
57
53
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
58
54
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
59
55
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
@@ -82,12 +78,9 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
82
78
|
slot: string;
|
83
79
|
readonly tagName: string;
|
84
80
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
85
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
86
81
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
87
82
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
88
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
89
83
|
closest<E extends Element = Element>(selectors: string): E;
|
90
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
91
84
|
getAttribute(qualifiedName: string): string;
|
92
85
|
getAttributeNS(namespace: string, localName: string): string;
|
93
86
|
getAttributeNames(): string[];
|
@@ -96,14 +89,11 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
96
89
|
getBoundingClientRect(): DOMRect;
|
97
90
|
getClientRects(): DOMRectList;
|
98
91
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
99
|
-
getElementsByTagName<
|
100
|
-
getElementsByTagName<
|
101
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
102
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
92
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
93
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
103
94
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
104
95
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
105
96
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
106
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
107
97
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
108
98
|
hasAttribute(qualifiedName: string): boolean;
|
109
99
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
@@ -160,24 +150,24 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
160
150
|
normalize(): void;
|
161
151
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
162
152
|
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
163
|
-
readonly
|
164
|
-
readonly
|
165
|
-
readonly
|
166
|
-
readonly
|
167
|
-
readonly
|
168
|
-
readonly
|
169
|
-
readonly
|
170
|
-
readonly
|
171
|
-
readonly
|
172
|
-
readonly
|
173
|
-
readonly
|
174
|
-
readonly
|
175
|
-
readonly
|
176
|
-
readonly
|
177
|
-
readonly
|
178
|
-
readonly
|
179
|
-
readonly
|
180
|
-
readonly
|
153
|
+
readonly ATTRIBUTE_NODE: number;
|
154
|
+
readonly CDATA_SECTION_NODE: number;
|
155
|
+
readonly COMMENT_NODE: number;
|
156
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
157
|
+
readonly DOCUMENT_NODE: number;
|
158
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
159
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
160
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
161
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
162
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
163
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
164
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
165
|
+
readonly ELEMENT_NODE: number;
|
166
|
+
readonly ENTITY_NODE: number;
|
167
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
168
|
+
readonly NOTATION_NODE: number;
|
169
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
170
|
+
readonly TEXT_NODE: number;
|
181
171
|
dispatchEvent(event: Event): boolean;
|
182
172
|
ariaAtomic: string;
|
183
173
|
ariaAutoComplete: string;
|
@@ -185,9 +175,9 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
185
175
|
ariaChecked: string;
|
186
176
|
ariaColCount: string;
|
187
177
|
ariaColIndex: string;
|
178
|
+
ariaColIndexText: string;
|
188
179
|
ariaColSpan: string;
|
189
180
|
ariaCurrent: string;
|
190
|
-
ariaDescription: string;
|
191
181
|
ariaDisabled: string;
|
192
182
|
ariaExpanded: string;
|
193
183
|
ariaHasPopup: string;
|
@@ -209,6 +199,7 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
209
199
|
ariaRoleDescription: string;
|
210
200
|
ariaRowCount: string;
|
211
201
|
ariaRowIndex: string;
|
202
|
+
ariaRowIndexText: string;
|
212
203
|
ariaRowSpan: string;
|
213
204
|
ariaSelected: string;
|
214
205
|
ariaSetSize: string;
|
@@ -233,19 +224,17 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
233
224
|
readonly lastElementChild: Element;
|
234
225
|
append(...nodes: (string | Node)[]): void;
|
235
226
|
prepend(...nodes: (string | Node)[]): void;
|
236
|
-
querySelector<
|
237
|
-
querySelector<
|
238
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
239
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
227
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
228
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
240
229
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
241
|
-
querySelectorAll<
|
242
|
-
querySelectorAll<
|
243
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
244
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
230
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
231
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
245
232
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
246
233
|
replaceChildren(...nodes: (string | Node)[]): void;
|
247
234
|
readonly assignedSlot: HTMLSlotElement;
|
248
|
-
|
235
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
236
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
237
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
249
238
|
readonly style: CSSStyleDeclaration;
|
250
239
|
contentEditable: string;
|
251
240
|
enterKeyHint: string;
|
@@ -258,7 +247,6 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
258
247
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
259
248
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
260
249
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
261
|
-
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
262
250
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
263
251
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
264
252
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -267,9 +255,7 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
267
255
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
268
256
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
269
257
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
270
|
-
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
271
258
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
272
|
-
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
273
259
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
274
260
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
275
261
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
@@ -302,7 +288,6 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
302
288
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
303
289
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
304
290
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
305
|
-
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
306
291
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
307
292
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
308
293
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -319,7 +304,6 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
319
304
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
320
305
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
321
306
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
322
|
-
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
323
307
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
324
308
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
325
309
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -357,16 +341,6 @@ LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
|
|
357
341
|
} & T
|
358
342
|
```
|
359
343
|
|
360
|
-
## Parameters
|
361
|
-
|
362
|
-
| Parameter | Type | Description |
|
363
|
-
| --- | --- | --- |
|
364
|
-
| Base | T | |
|
365
|
-
|
366
|
-
**Returns:**
|
367
|
-
|
368
|
-
{ new (...args: any\[\]): { "\_\_\#1@\#\_container": Container; "\_\_\#1@\#\_latestTokenCode": string; "\_\_\#1@\#\_hasFirstLoaded": boolean; "\_\_\#1@\#\_cleanupTimeout": NodeJS.Timeout; "\_\_\#1@\#\_shouldForceLifecycle": boolean; cloneNode(deep?: boolean): Node; deepClone(): Node; readonly shouldRunDisconnect: boolean; readonly shouldRunConnect: boolean; "\_\_\#1@\#\_blockLifecycleDueToTokenChange"(lifecycleType: Lifecycletype): boolean; "\_\_\#1@\#\_tryFindContainingLayout"(e: Element): Container; connectedCallback(): void; readonly $fastController: import("@microsoft/fast-element").Controller; $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean \| void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string, newValue: string): void; 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 extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\]) => any, options?: boolean \| AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean \| AddEventListenerOptions): void; removeEventListener<K\_1 extends keyof HTMLElementEventMap>(type: K\_1, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\_1\]) => 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\_2 extends keyof HTMLElementTagNameMap>(selector: K\_2): HTMLElementTagNameMap\[K\_2\]; closest<K\_3 extends keyof SVGElementTagNameMap>(selector: K\_3): SVGElementTagNameMap\[K\_3\]; closest<K\_4 extends keyof MathMLElementTagNameMap>(selector: K\_4): MathMLElementTagNameMap\[K\_4\]; 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\_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K\_5): HTMLCollectionOf<HTMLElementTagNameMap\[K\_5\]>; getElementsByTagName<K\_6 extends keyof SVGElementTagNameMap>(qualifiedName: K\_6): HTMLCollectionOf<SVGElementTagNameMap\[K\_6\]>; getElementsByTagName<K\_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K\_7): HTMLCollectionOf<MathMLElementTagNameMap\[K\_7\]>; getElementsByTagName<K\_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K\_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap\[K\_8\]>; 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\_1 extends Node>(node: T\_1): T\_1; compareDocumentPosition(other: Node): number; contains(other: Node): boolean; getRootNode(options?: GetRootNodeOptions): Node; hasChildNodes(): boolean; insertBefore<T\_2 extends Node>(node: T\_2, child: Node): T\_2; isDefaultNamespace(namespace: string): boolean; isEqualNode(otherNode: Node): boolean; isSameNode(otherNode: Node): boolean; lookupNamespaceURI(prefix: string): string; lookupPrefix(namespace: string): string; normalize(): void; removeChild<T\_3 extends Node>(child: T\_3): T\_3; replaceChild<T\_4 extends Node>(node: Node, child: T\_4): T\_4; 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\_9 extends keyof HTMLElementTagNameMap>(selectors: K\_9): HTMLElementTagNameMap\[K\_9\]; querySelector<K\_10 extends keyof SVGElementTagNameMap>(selectors: K\_10): SVGElementTagNameMap\[K\_10\]; querySelector<K\_11 extends keyof MathMLElementTagNameMap>(selectors: K\_11): MathMLElementTagNameMap\[K\_11\]; querySelector<K\_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_12): HTMLElementDeprecatedTagNameMap\[K\_12\]; querySelector<E\_1 extends Element = Element>(selectors: string): E\_1; querySelectorAll<K\_13 extends keyof HTMLElementTagNameMap>(selectors: K\_13): NodeListOf<HTMLElementTagNameMap\[K\_13\]>; querySelectorAll<K\_14 extends keyof SVGElementTagNameMap>(selectors: K\_14): NodeListOf<SVGElementTagNameMap\[K\_14\]>; querySelectorAll<K\_15 extends keyof MathMLElementTagNameMap>(selectors: K\_15): NodeListOf<MathMLElementTagNameMap\[K\_15\]>; querySelectorAll<K\_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_16): NodeListOf<HTMLElementDeprecatedTagNameMap\[K\_16\]>; 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; }; } & T
|
369
|
-
|
370
344
|
## Remarks
|
371
345
|
|
372
346
|
These can be used to control what lifecycle functionality is ran when the elements are part of a custom layout. The class itself handles all events
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [loadFontFaces](./foundation-utils.loadfontfaces.md)
|
4
4
|
|
5
|
-
## loadFontFaces
|
5
|
+
## loadFontFaces variable
|
6
6
|
|
7
7
|
Loads font faces by inserting a style element with the specified font face rules into the document.
|
8
8
|
|
@@ -11,15 +11,3 @@ Loads font faces by inserting a style element with the specified font face rules
|
|
11
11
|
```typescript
|
12
12
|
loadFontFaces: (fontFaceRules: string, styleElementId: string) => void
|
13
13
|
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
| Parameter | Type | Description |
|
18
|
-
| --- | --- | --- |
|
19
|
-
| fontFaceRules | string | The CSS rules for the font faces. |
|
20
|
-
| styleElementId | string | The ID of the style element to insert into the document. |
|
21
|
-
|
22
|
-
**Returns:**
|
23
|
-
|
24
|
-
void
|
25
|
-
|
@@ -27,31 +27,17 @@
|
|
27
27
|
| Function | Description |
|
28
28
|
| --- | --- |
|
29
29
|
| [assureDesignSystem(module)](./foundation-utils.assuredesignsystem.md) | assureDesignSystem. |
|
30
|
-
| [createErrorMap(logger)](./foundation-utils.createerrormap.md) | A factory to create the error map. |
|
31
30
|
| [createLogger(name, options)](./foundation-utils.createlogger.md) | Creates a logger with the given name and options. |
|
32
|
-
| [createObserver()](./foundation-utils.createobserver.md) | Creates a new event observer instance. |
|
33
31
|
| [customNumberParser(value)](./foundation-utils.customnumberparser.md) | A Default Number Parser for deserializing objects. |
|
34
32
|
| [formatDateTimestamp(timestamp)](./foundation-utils.formatdatetimestamp.md) | Formats \[DATE\] UNIX Timestamps (without time) to readable strings |
|
35
33
|
| [formatDateTimeTimestamp(timestamp)](./foundation-utils.formatdatetimetimestamp.md) | Formats \[DATETIME\] UNIX Timestamps (with time) to readable strings |
|
36
34
|
| [formatTimestamp(timestamp, withTime)](./foundation-utils.formattimestamp.md) | Formats \[DATE\|DATETIME\] Unix Timestamps to readable strings |
|
37
35
|
| [getDateFormatter(locale, options)](./foundation-utils.getdateformatter.md) | |
|
38
|
-
| [getFontMixin(family, style, weight)](./foundation-utils.getfontmixin.md) | Generates a CSS mixin for the specified font family, style, and weight. |
|
39
36
|
| [getNumberFormatter(format, locale)](./foundation-utils.getnumberformatter.md) | |
|
40
|
-
| [inIFrame()](./foundation-utils.iniframe.md) | Returns a boolean value indicating whether the current window is inside an iframe. |
|
41
|
-
| [insertDocumentCSSRule(cssRule, styleElementId)](./foundation-utils.insertdocumentcssrule.md) | Inserts a CSS rule into the document by creating a new style element or using an existing one with the specified ID. Returns a function that can be called to remove the rule from the document. |
|
42
|
-
| [insertDocumentLink(href)](./foundation-utils.insertdocumentlink.md) | Inserts a CSS link into the document if it doesn't already exist. |
|
43
|
-
| [inSymphonyDesktop()](./foundation-utils.insymphonydesktop.md) | Returns a boolean value indicating whether the user is running the Symphony desktop app. |
|
44
|
-
| [isDev()](./foundation-utils.isdev.md) | Determines if the current environment is a development environment. |
|
45
37
|
| [JSONReplacer(key, value)](./foundation-utils.jsonreplacer.md) | JSON replacer function. |
|
46
38
|
| [JSONReviver(key, value)](./foundation-utils.jsonreviver.md) | JSON reviver function. |
|
47
|
-
| [LifecycleMixin(Base)](./foundation-utils.lifecyclemixin.md) | **_(BETA)_** Mixin class to expose <code>shouldRunConnect</code> and <code>shouldRunDisconnect</code> |
|
48
|
-
| [loadFontFaces(fontFaceRules, styleElementId)](./foundation-utils.loadfontfaces.md) | Loads font faces by inserting a style element with the specified font face rules into the document. |
|
49
|
-
| [openPopup(urlNavigate, target, popUpWidth, popUpHeight)](./foundation-utils.openpopup.md) | Opens a new browser window with the specified URL, target, width, and height. |
|
50
|
-
| [PendingState(Base)](./foundation-utils.pendingstate.md) | The <code>PendingState</code> mixin. |
|
51
39
|
| [reactive(object, deep)](./foundation-utils.reactive.md) | **_(BETA)_** Converts a plain object to a reactive, observable object. |
|
52
40
|
| [renderOnChange(target, name)](./foundation-utils.renderonchange.md) | Defines a property changed handler that calls a render() method on the target as an internal observation enhancement. |
|
53
|
-
| [resolveAfter(ms, valueCreator)](./foundation-utils.resolveafter.md) | Resolve a promise after a timeout. |
|
54
|
-
| [respondToVisibility(element, callback)](./foundation-utils.respondtovisibility.md) | Setup an <code>IntersectionObserver</code> which will activate a callback function when an element becomes visible on screen |
|
55
41
|
| [sync(binding, conversionType, eventName, keyAttr)](./foundation-utils.sync.md) | Creates a synchronization directive that binds a data source to an HTML element, |
|
56
42
|
| [toElementStyles(styles)](./foundation-utils.toelementstyles.md) | toElementStyles. |
|
57
43
|
| [visitObject(object, deep, visitor, data, traversed)](./foundation-utils.visitobject.md) | **_(BETA)_** Visit object utility. |
|
@@ -89,6 +75,8 @@
|
|
89
75
|
| --- | --- |
|
90
76
|
| [activeColorScheme](./foundation-utils.activecolorscheme.md) | A design token that represents the active color scheme (light or dark). |
|
91
77
|
| [API\_HOST](./foundation-utils.api_host.md) | The Genesis Server URL (WebSocket or HTTP). |
|
78
|
+
| [createErrorMap](./foundation-utils.createerrormap.md) | A factory to create the error map. |
|
79
|
+
| [createObserver](./foundation-utils.createobserver.md) | Creates a new event observer instance. |
|
92
80
|
| [DEFAULT\_ORGANISATION](./foundation-utils.default_organisation.md) | The default Organisation value, used in auth/login flow \[<code>genesislcap-foundation-login</code>\](https://link-to-docs). |
|
93
81
|
| [DEFAULT\_PASSWORD](./foundation-utils.default_password.md) | The default Password value, used in auth/login flow \[<code>genesislcap-foundation-login</code>\](https://link-to-docs). |
|
94
82
|
| [DEFAULT\_USER](./foundation-utils.default_user.md) | The default Username value, used in auth/login flow \[<code>genesislcap-foundation-login</code>\](https://link-to-docs). |
|
@@ -97,13 +85,25 @@
|
|
97
85
|
| [defaultLoggerOptions](./foundation-utils.defaultloggeroptions.md) | The default logger options. |
|
98
86
|
| [FORCE\_HTTP](./foundation-utils.force_http.md) | The path to a JSON config file for the HTTP mode. |
|
99
87
|
| [GENESIS\_SOCKET\_URL](./foundation-utils.genesis_socket_url.md) | Genesis Socket URL |
|
88
|
+
| [getFontMixin](./foundation-utils.getfontmixin.md) | Generates a CSS mixin for the specified font family, style, and weight. |
|
100
89
|
| [HTTP\_CONFIG](./foundation-utils.http_config.md) | Configuration settings for HTTP, used in http connect flow \[<code>genesislcap-foundation-comms.HttpConnectConfig</code>\](https://link-to-docs). |
|
90
|
+
| [inIFrame](./foundation-utils.iniframe.md) | Returns a boolean value indicating whether the current window is inside an iframe. |
|
91
|
+
| [insertDocumentCSSRule](./foundation-utils.insertdocumentcssrule.md) | Inserts a CSS rule into the document by creating a new style element or using an existing one with the specified ID. Returns a function that can be called to remove the rule from the document. |
|
92
|
+
| [insertDocumentLink](./foundation-utils.insertdocumentlink.md) | Inserts a CSS link into the document if it doesn't already exist. |
|
93
|
+
| [inSymphonyDesktop](./foundation-utils.insymphonydesktop.md) | Returns a boolean value indicating whether the user is running the Symphony desktop app. |
|
94
|
+
| [isDev](./foundation-utils.isdev.md) | Determines if the current environment is a development environment. |
|
101
95
|
| [JSONSerializer](./foundation-utils.jsonserializer.md) | A DI token for the JSON serializer. |
|
102
96
|
| [layoutCacheDocument](./foundation-utils.layoutcachedocument.md) | Stored on the layout's internal cache to signify that the document is not part of the DOM |
|
97
|
+
| [LifecycleMixin](./foundation-utils.lifecyclemixin.md) | **_(BETA)_** Mixin class to expose <code>shouldRunConnect</code> and <code>shouldRunDisconnect</code> |
|
98
|
+
| [loadFontFaces](./foundation-utils.loadfontfaces.md) | Loads font faces by inserting a style element with the specified font face rules into the document. |
|
103
99
|
| [logger](./foundation-utils.logger.md) | Logger for the foundation-utils package |
|
100
|
+
| [openPopup](./foundation-utils.openpopup.md) | Opens a new browser window with the specified URL, target, width, and height. |
|
101
|
+
| [PendingState](./foundation-utils.pendingstate.md) | The <code>PendingState</code> mixin. |
|
104
102
|
| [POPUP\_DEFAULT\_HEIGHT](./foundation-utils.popup_default_height.md) | The default height (in pixels) for pop-up windows. |
|
105
103
|
| [POPUP\_DEFAULT\_WIDTH](./foundation-utils.popup_default_width.md) | The default width (in pixels) for pop-up windows. |
|
104
|
+
| [resolveAfter](./foundation-utils.resolveafter.md) | Resolve a promise after a timeout. |
|
106
105
|
| [ResourceType](./foundation-utils.resourcetype.md) | An object that defines two resource types: "local" and "remote". |
|
106
|
+
| [respondToVisibility](./foundation-utils.respondtovisibility.md) | Setup an <code>IntersectionObserver</code> which will activate a callback function when an element becomes visible on screen |
|
107
107
|
| [ServerRowDTOMapper](./foundation-utils.serverrowdtomapper.md) | A DI token used to obtain a <code>ServerRowDTOMapper</code> instance. |
|
108
108
|
| [SOCKET\_EXT](./foundation-utils.socket_ext.md) | The sub-path used for WebSocket connections when API\_HOST is not set |
|
109
109
|
| [TypeRampValues](./foundation-utils.typerampvalues.md) | An object containing type ramp values. |
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [openPopup](./foundation-utils.openpopup.md)
|
4
4
|
|
5
|
-
## openPopup
|
5
|
+
## openPopup variable
|
6
6
|
|
7
7
|
Opens a new browser window with the specified URL, target, width, and height.
|
8
8
|
|
@@ -11,19 +11,3 @@ Opens a new browser window with the specified URL, target, width, and height.
|
|
11
11
|
```typescript
|
12
12
|
openPopup: (urlNavigate: string, target: string, popUpWidth?: number, popUpHeight?: number) => Window
|
13
13
|
```
|
14
|
-
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
| Parameter | Type | Description |
|
18
|
-
| --- | --- | --- |
|
19
|
-
| urlNavigate | string | The URL to navigate to. |
|
20
|
-
| target | string | The name of the new window. |
|
21
|
-
| popUpWidth | number | _(Optional)_ The width of the new window (optional). |
|
22
|
-
| popUpHeight | number | _(Optional)_ The height of the new window (optional). |
|
23
|
-
|
24
|
-
**Returns:**
|
25
|
-
|
26
|
-
Window
|
27
|
-
|
28
|
-
A reference to the new window.
|
29
|
-
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [PendingState](./foundation-utils.pendingstate.md)
|
4
4
|
|
5
|
-
## PendingState
|
5
|
+
## PendingState variable
|
6
6
|
|
7
7
|
The `PendingState` mixin.
|
8
8
|
|
@@ -36,15 +36,11 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
36
36
|
readonly offsetTop: number;
|
37
37
|
readonly offsetWidth: number;
|
38
38
|
outerText: string;
|
39
|
-
popover: string;
|
40
39
|
spellcheck: boolean;
|
41
40
|
title: string;
|
42
41
|
translate: boolean;
|
43
42
|
attachInternals(): ElementInternals;
|
44
43
|
click(): void;
|
45
|
-
hidePopover(): void;
|
46
|
-
showPopover(): void;
|
47
|
-
togglePopover(force?: boolean): boolean;
|
48
44
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
49
45
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
50
46
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
|
@@ -73,12 +69,9 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
73
69
|
slot: string;
|
74
70
|
readonly tagName: string;
|
75
71
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
76
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
77
72
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
|
78
73
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
|
79
|
-
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
|
80
74
|
closest<E extends Element = Element>(selectors: string): E;
|
81
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
82
75
|
getAttribute(qualifiedName: string): string;
|
83
76
|
getAttributeNS(namespace: string, localName: string): string;
|
84
77
|
getAttributeNames(): string[];
|
@@ -87,14 +80,11 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
87
80
|
getBoundingClientRect(): DOMRect;
|
88
81
|
getClientRects(): DOMRectList;
|
89
82
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
90
|
-
getElementsByTagName<
|
91
|
-
getElementsByTagName<
|
92
|
-
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
93
|
-
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
83
|
+
getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
|
84
|
+
getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
|
94
85
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
95
86
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
96
87
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
97
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
98
88
|
getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
|
99
89
|
hasAttribute(qualifiedName: string): boolean;
|
100
90
|
hasAttributeNS(namespace: string, localName: string): boolean;
|
@@ -152,24 +142,24 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
152
142
|
normalize(): void;
|
153
143
|
removeChild<T_2 extends Node>(child: T_2): T_2;
|
154
144
|
replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
|
155
|
-
readonly
|
156
|
-
readonly
|
157
|
-
readonly
|
158
|
-
readonly
|
159
|
-
readonly
|
160
|
-
readonly
|
161
|
-
readonly
|
162
|
-
readonly
|
163
|
-
readonly
|
164
|
-
readonly
|
165
|
-
readonly
|
166
|
-
readonly
|
167
|
-
readonly
|
168
|
-
readonly
|
169
|
-
readonly
|
170
|
-
readonly
|
171
|
-
readonly
|
172
|
-
readonly
|
145
|
+
readonly ATTRIBUTE_NODE: number;
|
146
|
+
readonly CDATA_SECTION_NODE: number;
|
147
|
+
readonly COMMENT_NODE: number;
|
148
|
+
readonly DOCUMENT_FRAGMENT_NODE: number;
|
149
|
+
readonly DOCUMENT_NODE: number;
|
150
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
|
151
|
+
readonly DOCUMENT_POSITION_CONTAINS: number;
|
152
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: number;
|
153
|
+
readonly DOCUMENT_POSITION_FOLLOWING: number;
|
154
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
|
155
|
+
readonly DOCUMENT_POSITION_PRECEDING: number;
|
156
|
+
readonly DOCUMENT_TYPE_NODE: number;
|
157
|
+
readonly ELEMENT_NODE: number;
|
158
|
+
readonly ENTITY_NODE: number;
|
159
|
+
readonly ENTITY_REFERENCE_NODE: number;
|
160
|
+
readonly NOTATION_NODE: number;
|
161
|
+
readonly PROCESSING_INSTRUCTION_NODE: number;
|
162
|
+
readonly TEXT_NODE: number;
|
173
163
|
dispatchEvent(event: Event): boolean;
|
174
164
|
ariaAtomic: string;
|
175
165
|
ariaAutoComplete: string;
|
@@ -177,9 +167,9 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
177
167
|
ariaChecked: string;
|
178
168
|
ariaColCount: string;
|
179
169
|
ariaColIndex: string;
|
170
|
+
ariaColIndexText: string;
|
180
171
|
ariaColSpan: string;
|
181
172
|
ariaCurrent: string;
|
182
|
-
ariaDescription: string;
|
183
173
|
ariaDisabled: string;
|
184
174
|
ariaExpanded: string;
|
185
175
|
ariaHasPopup: string;
|
@@ -201,6 +191,7 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
201
191
|
ariaRoleDescription: string;
|
202
192
|
ariaRowCount: string;
|
203
193
|
ariaRowIndex: string;
|
194
|
+
ariaRowIndexText: string;
|
204
195
|
ariaRowSpan: string;
|
205
196
|
ariaSelected: string;
|
206
197
|
ariaSetSize: string;
|
@@ -225,19 +216,17 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
225
216
|
readonly lastElementChild: Element;
|
226
217
|
append(...nodes: (string | Node)[]): void;
|
227
218
|
prepend(...nodes: (string | Node)[]): void;
|
228
|
-
querySelector<
|
229
|
-
querySelector<
|
230
|
-
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
|
231
|
-
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
|
219
|
+
querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
|
220
|
+
querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
|
232
221
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1;
|
233
|
-
querySelectorAll<
|
234
|
-
querySelectorAll<
|
235
|
-
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
236
|
-
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
222
|
+
querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
|
223
|
+
querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
|
237
224
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
238
225
|
replaceChildren(...nodes: (string | Node)[]): void;
|
239
226
|
readonly assignedSlot: HTMLSlotElement;
|
240
|
-
|
227
|
+
oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
228
|
+
oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
229
|
+
onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
|
241
230
|
readonly style: CSSStyleDeclaration;
|
242
231
|
contentEditable: string;
|
243
232
|
enterKeyHint: string;
|
@@ -250,7 +239,6 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
250
239
|
onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
|
251
240
|
onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
252
241
|
onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
|
253
|
-
onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
|
254
242
|
onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
|
255
243
|
oncancel: (this: GlobalEventHandlers, ev: Event) => any;
|
256
244
|
oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -259,9 +247,7 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
259
247
|
onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
260
248
|
onclose: (this: GlobalEventHandlers, ev: Event) => any;
|
261
249
|
oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
262
|
-
oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
263
250
|
oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
|
264
|
-
oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
265
251
|
ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
266
252
|
ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
267
253
|
ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
|
@@ -294,7 +280,6 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
294
280
|
onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
295
281
|
onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
296
282
|
onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
|
297
|
-
onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
|
298
283
|
onpause: (this: GlobalEventHandlers, ev: Event) => any;
|
299
284
|
onplay: (this: GlobalEventHandlers, ev: Event) => any;
|
300
285
|
onplaying: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -311,7 +296,6 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
311
296
|
onreset: (this: GlobalEventHandlers, ev: Event) => any;
|
312
297
|
onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
|
313
298
|
onscroll: (this: GlobalEventHandlers, ev: Event) => any;
|
314
|
-
onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
|
315
299
|
onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
|
316
300
|
onseeked: (this: GlobalEventHandlers, ev: Event) => any;
|
317
301
|
onseeking: (this: GlobalEventHandlers, ev: Event) => any;
|
@@ -348,14 +332,3 @@ PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
348
332
|
};
|
349
333
|
} & TBase
|
350
334
|
```
|
351
|
-
|
352
|
-
## Parameters
|
353
|
-
|
354
|
-
| Parameter | Type | Description |
|
355
|
-
| --- | --- | --- |
|
356
|
-
| Base | TBase | |
|
357
|
-
|
358
|
-
**Returns:**
|
359
|
-
|
360
|
-
{ new (...args: any\[\]): { pendingCount: number; resolvedCount: number; hasPendingChildren: boolean; readonly progress: number; connectedCallback(): void; disconnectedCallback(): void; onPendingState({ detail }: [PendingStateEvent](./foundation-utils.pendingstateevent.md)<!-- -->): Promise<void>; readonly $fastController: import("@microsoft/fast-element").Controller; $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean \| void; attributeChangedCallback(name: string, oldValue: string, newValue: string): void; 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 extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\]) => any, options?: boolean \| AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean \| AddEventListenerOptions): void; removeEventListener<K\_1 extends keyof HTMLElementEventMap>(type: K\_1, listener: (this: HTMLElement, ev: HTMLElementEventMap\[K\_1\]) => 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\_2 extends keyof HTMLElementTagNameMap>(selector: K\_2): HTMLElementTagNameMap\[K\_2\]; closest<K\_3 extends keyof SVGElementTagNameMap>(selector: K\_3): SVGElementTagNameMap\[K\_3\]; closest<K\_4 extends keyof MathMLElementTagNameMap>(selector: K\_4): MathMLElementTagNameMap\[K\_4\]; 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\_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K\_5): HTMLCollectionOf<HTMLElementTagNameMap\[K\_5\]>; getElementsByTagName<K\_6 extends keyof SVGElementTagNameMap>(qualifiedName: K\_6): HTMLCollectionOf<SVGElementTagNameMap\[K\_6\]>; getElementsByTagName<K\_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K\_7): HTMLCollectionOf<MathMLElementTagNameMap\[K\_7\]>; getElementsByTagName<K\_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K\_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap\[K\_8\]>; 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\_9 extends keyof HTMLElementTagNameMap>(selectors: K\_9): HTMLElementTagNameMap\[K\_9\]; querySelector<K\_10 extends keyof SVGElementTagNameMap>(selectors: K\_10): SVGElementTagNameMap\[K\_10\]; querySelector<K\_11 extends keyof MathMLElementTagNameMap>(selectors: K\_11): MathMLElementTagNameMap\[K\_11\]; querySelector<K\_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_12): HTMLElementDeprecatedTagNameMap\[K\_12\]; querySelector<E\_1 extends Element = Element>(selectors: string): E\_1; querySelectorAll<K\_13 extends keyof HTMLElementTagNameMap>(selectors: K\_13): NodeListOf<HTMLElementTagNameMap\[K\_13\]>; querySelectorAll<K\_14 extends keyof SVGElementTagNameMap>(selectors: K\_14): NodeListOf<SVGElementTagNameMap\[K\_14\]>; querySelectorAll<K\_15 extends keyof MathMLElementTagNameMap>(selectors: K\_15): NodeListOf<MathMLElementTagNameMap\[K\_15\]>; querySelectorAll<K\_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K\_16): NodeListOf<HTMLElementDeprecatedTagNameMap\[K\_16\]>; 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; }; } & TBase
|
361
|
-
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [resolveAfter](./foundation-utils.resolveafter.md)
|
4
4
|
|
5
|
-
## resolveAfter
|
5
|
+
## resolveAfter variable
|
6
6
|
|
7
7
|
Resolve a promise after a timeout.
|
8
8
|
|
@@ -12,17 +12,6 @@ Resolve a promise after a timeout.
|
|
12
12
|
resolveAfter: <T = any>(ms: number, valueCreator: () => T) => Promise<T>
|
13
13
|
```
|
14
14
|
|
15
|
-
## Parameters
|
16
|
-
|
17
|
-
| Parameter | Type | Description |
|
18
|
-
| --- | --- | --- |
|
19
|
-
| ms | number | |
|
20
|
-
| valueCreator | () => T | |
|
21
|
-
|
22
|
-
**Returns:**
|
23
|
-
|
24
|
-
Promise<T>
|
25
|
-
|
26
15
|
## Example
|
27
16
|
|
28
17
|
|