@genesislcap/foundation-utils 15.6.2 → 15.7.0-ts7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/custom-elements.json +53 -53
  2. package/dist/dts/data/inMemoryDatabase.d.ts.map +1 -1
  3. package/dist/dts/encoding/base64/decode.d.ts.map +1 -1
  4. package/dist/dts/encoding/base64/encode.d.ts.map +1 -1
  5. package/dist/dts/error/errorMap.d.ts.map +1 -1
  6. package/dist/dts/feature-flags/featureFlags.d.ts.map +1 -1
  7. package/dist/dts/formatters/datetime.d.ts.map +1 -1
  8. package/dist/dts/formatters/localeNumberParser.d.ts.map +1 -1
  9. package/dist/dts/formatters/number.d.ts.map +1 -1
  10. package/dist/dts/inactivity/inactivity-dialog.d.ts.map +1 -1
  11. package/dist/dts/inactivity/inactivity-manager.d.ts.map +1 -1
  12. package/dist/dts/inactivity/inactivity-service.d.ts.map +1 -1
  13. package/dist/dts/mappers/dto/serverRow.d.ts.map +1 -1
  14. package/dist/dts/mappers/genesis-json-schema/types.d.ts +1 -1
  15. package/dist/dts/mappers/genesis-json-schema/types.d.ts.map +1 -1
  16. package/dist/dts/mixins/lifecycle/lifecycle.d.ts +27 -433
  17. package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
  18. package/dist/dts/mixins/pendingState/pendingState.d.ts +164 -159
  19. package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -1
  20. package/dist/dts/observer/observer.d.ts.map +1 -1
  21. package/dist/dts/promise/resolveAfter.d.ts.map +1 -1
  22. package/dist/dts/resource/types.d.ts +2 -2
  23. package/dist/dts/resource/types.d.ts.map +1 -1
  24. package/dist/dts/route/route.d.ts.map +1 -1
  25. package/dist/dts/serializers/json/json.d.ts.map +1 -1
  26. package/dist/dts/serializers/json/types.d.ts.map +1 -1
  27. package/dist/dts/shortcut-manager/shortcut-listener.d.ts.map +1 -1
  28. package/dist/dts/shortcut-manager/shortcut-manager.d.ts.map +1 -1
  29. package/dist/dts/styles/slotted-styles.d.ts.map +1 -1
  30. package/dist/dts/styles/typography.d.ts.map +1 -1
  31. package/dist/dts/utils/deepMerge.d.ts.map +1 -1
  32. package/dist/dts/utils/delay.d.ts.map +1 -1
  33. package/dist/dts/utils/dom.d.ts.map +1 -1
  34. package/dist/dts/utils/noop.d.ts.map +1 -1
  35. package/dist/dts/utils/os-platform.d.ts.map +1 -1
  36. package/dist/dts/window/window.d.ts.map +1 -1
  37. package/dist/esm/mappers/dto/serverRow.js +12 -18
  38. package/dist/esm/mappers/genesis-json-schema/index.js +5 -4
  39. package/dist/esm/mixins/lifecycle/lifecycle.js +4 -1
  40. package/dist/esm/shortcut-manager/shortcut-listener.js +6 -4
  41. package/dist/esm/shortcut-manager/shortcut-manager.js +4 -7
  42. package/dist/foundation-utils.api.json +920 -4086
  43. package/dist/foundation-utils.d.ts +404 -805
  44. package/package.json +11 -11
@@ -29,8 +29,28 @@ export type LayoutCacheContainer = {
29
29
  export type DOMContainer = {
30
30
  _key: 'dom';
31
31
  };
32
- type Container = FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
33
- type Lifecycletype = 'connect' | 'disconnect' | 'reconnect';
32
+ /**
33
+ * @beta
34
+ * Instance members added by {@link LifecycleMixin}.
35
+ */
36
+ export interface LifecycleElement {
37
+ /**
38
+ * @beta
39
+ * boolean controlling whether to run all connectedCallback lifecycle functionality
40
+ */
41
+ readonly shouldRunConnect: boolean;
42
+ /**
43
+ * @beta
44
+ * boolean controlling whether to run all disconnectedCallback lifecycle functionality
45
+ */
46
+ readonly shouldRunDisconnect: boolean;
47
+ /**
48
+ * @beta
49
+ * Copy-constructor style clone used by `cloneNode`. Non-trivial elements may
50
+ * override this, call `super.deepClone()`, and copy extra state over.
51
+ */
52
+ deepClone(): Node;
53
+ }
34
54
  /**
35
55
  * @beta
36
56
  * Mixin class to expose `shouldRunConnect` and `shouldRunDisconnect`
@@ -39,441 +59,15 @@ type Lifecycletype = 'connect' | 'disconnect' | 'reconnect';
39
59
  * are part of a custom layout. The class itself handles all events
40
60
  * @privateRemarks
41
61
  * #_ syntax is used for a javascript private method/variable
42
- * we can't use private/protected from typescript in an anonymous class like this
62
+ * we can't use private/protected from typescript in an anonymous class like this.
63
+ * The return type is annotated explicitly ({@link LifecycleElement}) because
64
+ * declaration emit cannot serialize anonymous class types containing ES #private
65
+ * members (TS4094 under TypeScript 7).
43
66
  */
44
- export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => {
45
- new (...args: any[]): {
46
- /** @internal **/
47
- #_container: Container;
48
- /**
49
- * If the token changes we suggest blocking the lifecycle methods
50
- * @internal
51
- **/
52
- #_latestTokenCode: string;
53
- /**
54
- * Track first loaded to allow us to always run the connect lifecycle on the first load
55
- * @internal
56
- **/
57
- #_hasFirstLoaded: boolean;
58
- /**
59
- * When you request to delete an item from the layout it will be removed from the DOM,
60
- * but the lifecycle might be blocked due to the same mechanism that we block the other
61
- * items.
62
- * This would block cleanup of the item, so we need to force a disconnection after a timeout
63
- * if this item hasn't reconnected within `CLEANUP_TIMEOUT_MS`.
64
- * @internal
65
- **/
66
- #_cleanupTimeout: NodeJS.Timeout;
67
- /**
68
- * Used to force lifecycle to run even if the token has changed, such as in instances where
69
- * we are forcing a disconnection due to this item being remove from the layout.
70
- * @internal
71
- **/
72
- #_shouldForceLifecycle: boolean;
73
- /**
74
- * Set once a short grace period (`setTimeout`) has elapsed since a blocked ('reflow')
75
- * disconnect. Some consumers run defensive cleanup after the block via schedulers that can
76
- * outlast a microtask (e.g. FAST's `DOM.queueUpdate`), so a macrotask-scale grace period is
77
- * needed - once it has passed, the paired reconnect must not stay blocked, or the consumer
78
- * never re-initializes.
79
- * @internal
80
- **/
81
- #_blockedDisconnectSurvivedGracePeriod: boolean;
82
- /**
83
- * @privateRemarks
84
- * Rather than using the basic implementation of cloning we run a copy constructor (deepClone)
85
- * and then manually clone the children too so they can intercept with an overriden cloneNode
86
- * if they want to
87
- */
88
- cloneNode(deep?: boolean): Node;
89
- /**
90
- * @privateRemarks
91
- * Basic implementation of a copy constructor which creates a new element of the same class
92
- * and copies all attributes over.
93
- * None-trivial elements will likely want to override this function, call it using super.deepClone(),
94
- * and then perform extra setup such as copying properties, setting up event listeners
95
- */
96
- deepClone(): Node;
97
- /**
98
- * @beta
99
- * @returns - boolean controlling whether to run all disconnectedCallback lifecycle functionality
100
- */
101
- get shouldRunDisconnect(): boolean;
102
- /**
103
- * @beta
104
- * @returns - boolean controlling whether to run all connectedCallback lifecycle functionality
105
- * @privateRemarks
106
- * For now its just the same logic as shouldRunDisconnect
107
- */
108
- get shouldRunConnect(): boolean;
109
- #_blockLifecycleDueToTokenChange(lifecycleType: Lifecycletype): boolean;
110
- /**
111
- * @internal
112
- * Recursive function to try and find containing layout object
113
- *
114
- * @returns the layout object casted to the {@link @genesislcap/foundation-utils#FoundationLayoutContainer} interface if we are in a
115
- * layout object, {@link @genesislcap/foundation-utils#LayoutCacheContainer} if the element is in the layout cache, else {@link @genesislcap/foundation-utils#DOMContainer}.
116
- */
117
- #_tryFindContainingLayout(e: Element): Container;
118
- connectedCallback(): void;
119
- readonly $fastController: import("@microsoft/fast-element").Controller;
120
- $emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
121
- disconnectedCallback(): void;
122
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
123
- accessKey: string;
124
- readonly accessKeyLabel: string;
125
- autocapitalize: string;
126
- autocorrect: boolean;
127
- dir: string;
128
- draggable: boolean;
129
- hidden: boolean;
130
- inert: boolean;
131
- innerText: string;
132
- lang: string;
133
- readonly offsetHeight: number;
134
- readonly offsetLeft: number;
135
- readonly offsetParent: Element | null;
136
- readonly offsetTop: number;
137
- readonly offsetWidth: number;
138
- outerText: string;
139
- popover: string | null;
140
- spellcheck: boolean;
141
- title: string;
142
- translate: boolean;
143
- writingSuggestions: string;
144
- attachInternals(): ElementInternals;
145
- click(): void;
146
- hidePopover(): void;
147
- showPopover(): void;
148
- togglePopover(options?: boolean): boolean;
149
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
150
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
151
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
152
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
153
- readonly attributes: NamedNodeMap;
154
- get classList(): DOMTokenList;
155
- set classList(value: string);
156
- className: string;
157
- readonly clientHeight: number;
158
- readonly clientLeft: number;
159
- readonly clientTop: number;
160
- readonly clientWidth: number;
161
- readonly currentCSSZoom: number;
162
- id: string;
163
- innerHTML: string;
164
- readonly localName: string;
165
- readonly namespaceURI: string | null;
166
- onfullscreenchange: (this: Element, ev: Event) => any;
167
- onfullscreenerror: (this: Element, ev: Event) => any;
168
- outerHTML: string;
169
- readonly ownerDocument: Document;
170
- get part(): DOMTokenList;
171
- set part(value: string);
172
- readonly prefix: string | null;
173
- readonly scrollHeight: number;
174
- scrollLeft: number;
175
- scrollTop: number;
176
- readonly scrollWidth: number;
177
- readonly shadowRoot: ShadowRoot | null;
178
- slot: string;
179
- readonly tagName: string;
180
- attachShadow(init: ShadowRootInit): ShadowRoot;
181
- checkVisibility(options?: CheckVisibilityOptions): boolean;
182
- closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
183
- closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
184
- closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
185
- closest<E extends Element = Element>(selectors: string): E;
186
- computedStyleMap(): StylePropertyMapReadOnly;
187
- getAttribute(qualifiedName: string): string | null;
188
- getAttributeNS(namespace: string | null, localName: string): string | null;
189
- getAttributeNames(): string[];
190
- getAttributeNode(qualifiedName: string): Attr | null;
191
- getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
192
- getBoundingClientRect(): DOMRect;
193
- getClientRects(): DOMRectList;
194
- getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
195
- getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
196
- getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
197
- getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
198
- getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
199
- getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
200
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
201
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
202
- getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
203
- getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
204
- getHTML(options?: GetHTMLOptions): string;
205
- hasAttribute(qualifiedName: string): boolean;
206
- hasAttributeNS(namespace: string | null, localName: string): boolean;
207
- hasAttributes(): boolean;
208
- hasPointerCapture(pointerId: number): boolean;
209
- insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
210
- insertAdjacentHTML(position: InsertPosition, string: string): void;
211
- insertAdjacentText(where: InsertPosition, data: string): void;
212
- matches(selectors: string): boolean;
213
- releasePointerCapture(pointerId: number): void;
214
- removeAttribute(qualifiedName: string): void;
215
- removeAttributeNS(namespace: string | null, localName: string): void;
216
- removeAttributeNode(attr: Attr): Attr;
217
- requestFullscreen(options?: FullscreenOptions): Promise<void>;
218
- requestPointerLock(options?: PointerLockOptions): Promise<void>;
219
- scroll(options?: ScrollToOptions): void;
220
- scroll(x: number, y: number): void;
221
- scrollBy(options?: ScrollToOptions): void;
222
- scrollBy(x: number, y: number): void;
223
- scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
224
- scrollTo(options?: ScrollToOptions): void;
225
- scrollTo(x: number, y: number): void;
226
- setAttribute(qualifiedName: string, value: string): void;
227
- setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
228
- setAttributeNode(attr: Attr): Attr | null;
229
- setAttributeNodeNS(attr: Attr): Attr | null;
230
- setHTMLUnsafe(html: string): void;
231
- setPointerCapture(pointerId: number): void;
232
- toggleAttribute(qualifiedName: string, force?: boolean): boolean;
233
- webkitMatchesSelector(selectors: string): boolean;
234
- textContent: string;
235
- readonly baseURI: string;
236
- readonly childNodes: NodeListOf<ChildNode>;
237
- readonly firstChild: ChildNode | null;
238
- readonly isConnected: boolean;
239
- readonly lastChild: ChildNode | null;
240
- readonly nextSibling: ChildNode | null;
241
- readonly nodeName: string;
242
- readonly nodeType: number;
243
- nodeValue: string | null;
244
- readonly parentElement: HTMLElement | null;
245
- readonly parentNode: ParentNode | null;
246
- readonly previousSibling: ChildNode | null;
247
- appendChild<T_1 extends Node>(node: T_1): T_1;
248
- compareDocumentPosition(other: Node): number;
249
- contains(other: Node | null): boolean;
250
- getRootNode(options?: GetRootNodeOptions): Node;
251
- hasChildNodes(): boolean;
252
- insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
253
- isDefaultNamespace(namespace: string | null): boolean;
254
- isEqualNode(otherNode: Node | null): boolean;
255
- isSameNode(otherNode: Node | null): boolean;
256
- lookupNamespaceURI(prefix: string | null): string | null;
257
- lookupPrefix(namespace: string | null): string | null;
258
- normalize(): void;
259
- removeChild<T_1 extends Node>(child: T_1): T_1;
260
- replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
261
- readonly ELEMENT_NODE: 1;
262
- readonly ATTRIBUTE_NODE: 2;
263
- readonly TEXT_NODE: 3;
264
- readonly CDATA_SECTION_NODE: 4;
265
- readonly ENTITY_REFERENCE_NODE: 5;
266
- readonly ENTITY_NODE: 6;
267
- readonly PROCESSING_INSTRUCTION_NODE: 7;
268
- readonly COMMENT_NODE: 8;
269
- readonly DOCUMENT_NODE: 9;
270
- readonly DOCUMENT_TYPE_NODE: 10;
271
- readonly DOCUMENT_FRAGMENT_NODE: 11;
272
- readonly NOTATION_NODE: 12;
273
- readonly DOCUMENT_POSITION_DISCONNECTED: 1;
274
- readonly DOCUMENT_POSITION_PRECEDING: 2;
275
- readonly DOCUMENT_POSITION_FOLLOWING: 4;
276
- readonly DOCUMENT_POSITION_CONTAINS: 8;
277
- readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
278
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
279
- dispatchEvent(event: Event): boolean;
280
- ariaActiveDescendantElement: Element | null;
281
- ariaAtomic: string | null;
282
- ariaAutoComplete: string | null;
283
- ariaBrailleLabel: string | null;
284
- ariaBrailleRoleDescription: string | null;
285
- ariaBusy: string | null;
286
- ariaChecked: string | null;
287
- ariaColCount: string | null;
288
- ariaColIndex: string | null;
289
- ariaColIndexText: string | null;
290
- ariaColSpan: string | null;
291
- ariaControlsElements: ReadonlyArray<Element> | null;
292
- ariaCurrent: string | null;
293
- ariaDescribedByElements: ReadonlyArray<Element> | null;
294
- ariaDescription: string | null;
295
- ariaDetailsElements: ReadonlyArray<Element> | null;
296
- ariaDisabled: string | null;
297
- ariaErrorMessageElements: ReadonlyArray<Element> | null;
298
- ariaExpanded: string | null;
299
- ariaFlowToElements: ReadonlyArray<Element> | null;
300
- ariaHasPopup: string | null;
301
- ariaHidden: string | null;
302
- ariaInvalid: string | null;
303
- ariaKeyShortcuts: string | null;
304
- ariaLabel: string | null;
305
- ariaLabelledByElements: ReadonlyArray<Element> | null;
306
- ariaLevel: string | null;
307
- ariaLive: string | null;
308
- ariaModal: string | null;
309
- ariaMultiLine: string | null;
310
- ariaMultiSelectable: string | null;
311
- ariaOrientation: string | null;
312
- ariaOwnsElements: ReadonlyArray<Element> | null;
313
- ariaPlaceholder: string | null;
314
- ariaPosInSet: string | null;
315
- ariaPressed: string | null;
316
- ariaReadOnly: string | null;
317
- ariaRelevant: string | null;
318
- ariaRequired: string | null;
319
- ariaRoleDescription: string | null;
320
- ariaRowCount: string | null;
321
- ariaRowIndex: string | null;
322
- ariaRowIndexText: string | null;
323
- ariaRowSpan: string | null;
324
- ariaSelected: string | null;
325
- ariaSetSize: string | null;
326
- ariaSort: string | null;
327
- ariaValueMax: string | null;
328
- ariaValueMin: string | null;
329
- ariaValueNow: string | null;
330
- ariaValueText: string | null;
331
- role: string | null;
332
- animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
333
- getAnimations(options?: GetAnimationsOptions): Animation[];
334
- after(...nodes: (Node | string)[]): void;
335
- before(...nodes: (Node | string)[]): void;
336
- remove(): void;
337
- replaceWith(...nodes: (Node | string)[]): void;
338
- readonly nextElementSibling: Element | null;
339
- readonly previousElementSibling: Element | null;
340
- readonly childElementCount: number;
341
- readonly children: HTMLCollection;
342
- readonly firstElementChild: Element | null;
343
- readonly lastElementChild: Element | null;
344
- append(...nodes: (Node | string)[]): void;
345
- prepend(...nodes: (Node | string)[]): void;
346
- querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
347
- querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
348
- querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
349
- querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
350
- querySelector<E extends Element = Element>(selectors: string): E | null;
351
- querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
352
- querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
353
- querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
354
- querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
355
- querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
356
- replaceChildren(...nodes: (Node | string)[]): void;
357
- readonly assignedSlot: HTMLSlotElement | null;
358
- readonly attributeStyleMap: StylePropertyMap;
359
- get style(): CSSStyleDeclaration;
360
- set style(cssText: string);
361
- contentEditable: string;
362
- enterKeyHint: string;
363
- inputMode: string;
364
- readonly isContentEditable: boolean;
365
- onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
366
- onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
367
- onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
368
- onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
369
- onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
370
- onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
371
- onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
372
- onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
373
- onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
374
- onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
375
- oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
376
- oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
377
- oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
378
- onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
379
- onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
380
- onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
381
- oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
382
- oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
383
- oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
384
- oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
385
- oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
386
- oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
387
- ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
388
- ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
389
- ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
390
- ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
391
- ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
392
- ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
393
- ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
394
- ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
395
- ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
396
- onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
397
- onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
398
- onerror: OnErrorEventHandler;
399
- onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
400
- onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
401
- ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
402
- oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
403
- oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
404
- onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
405
- onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
406
- onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
407
- onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
408
- onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
409
- onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
410
- onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
411
- onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
412
- onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
413
- onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
414
- onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
415
- onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
416
- onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
417
- onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
418
- onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
419
- onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
420
- onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
421
- onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
422
- onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
423
- onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
424
- onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
425
- onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
426
- onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
427
- onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
428
- onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
429
- onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
430
- onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
431
- onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
432
- onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
433
- onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
434
- onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
435
- onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
436
- onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
437
- onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
438
- onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
439
- onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
440
- onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
441
- onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
442
- onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
443
- onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
444
- onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
445
- onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
446
- onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
447
- onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
448
- ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
449
- ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
450
- ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
451
- ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
452
- ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
453
- ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
454
- ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
455
- ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
456
- ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
457
- ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
458
- onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
459
- onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
460
- onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
461
- onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
462
- onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
463
- onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
464
- onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
465
- autofocus: boolean;
466
- readonly dataset: DOMStringMap;
467
- nonce?: string;
468
- tabIndex: number;
469
- blur(): void;
470
- focus(options?: FocusOptions): void;
471
- };
472
- } & T;
67
+ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => T & Constructable<LifecycleElement>;
473
68
  /**
474
69
  * Stored on the layout's internal cache to signify that the document is not part of the DOM
475
70
  * @public
476
71
  */
477
72
  export declare const layoutCacheDocument: unique symbol;
478
- export {};
479
73
  //# sourceMappingURL=lifecycle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/mixins/lifecycle/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AAErF;;;;GAIG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAC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