@lwc/synthetic-shadow 2.45.2 → 2.45.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/dist/3rdparty/polymer/inner-html.d.ts +10 -0
  2. package/dist/3rdparty/polymer/outer-html.d.ts +10 -0
  3. package/dist/3rdparty/polymer/path-composer.d.ts +1 -0
  4. package/dist/3rdparty/polymer/retarget.d.ts +10 -0
  5. package/dist/3rdparty/polymer/text-content.d.ts +10 -0
  6. package/dist/env/document.d.ts +24 -0
  7. package/dist/env/dom.d.ts +5 -0
  8. package/dist/env/element.d.ts +45 -0
  9. package/dist/env/event-target.d.ts +3 -0
  10. package/dist/env/mutation-observer.d.ts +6 -0
  11. package/dist/env/node.d.ts +35 -0
  12. package/dist/env/shadow-root.d.ts +2 -0
  13. package/dist/env/slot.d.ts +2 -0
  14. package/dist/env/text.d.ts +1 -0
  15. package/dist/env/window.d.ts +8 -0
  16. package/dist/faux-shadow/element.d.ts +1 -0
  17. package/dist/faux-shadow/events.d.ts +16 -0
  18. package/dist/faux-shadow/focus.d.ts +9 -0
  19. package/dist/faux-shadow/html-element.d.ts +1 -0
  20. package/dist/faux-shadow/no-patch-utils.d.ts +5 -0
  21. package/dist/faux-shadow/node.d.ts +15 -0
  22. package/dist/faux-shadow/portal.d.ts +1 -0
  23. package/dist/faux-shadow/shadow-root.d.ts +22 -0
  24. package/dist/faux-shadow/shadow-token.d.ts +2 -0
  25. package/dist/faux-shadow/slot.d.ts +1 -0
  26. package/dist/faux-shadow/text.d.ts +1 -0
  27. package/dist/faux-shadow/traverse.d.ts +13 -0
  28. package/dist/index.cjs.js +4759 -0
  29. package/dist/index.cjs.js.map +1 -0
  30. package/dist/index.d.ts +30 -0
  31. package/dist/index.js +4757 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/polyfills/HTMLSlotElement/detect.d.ts +1 -0
  34. package/dist/polyfills/HTMLSlotElement/main.d.ts +1 -0
  35. package/dist/polyfills/HTMLSlotElement/polyfill.d.ts +1 -0
  36. package/dist/polyfills/click-event-composed/detect.d.ts +1 -0
  37. package/dist/polyfills/click-event-composed/main.d.ts +1 -0
  38. package/dist/polyfills/click-event-composed/polyfill.d.ts +1 -0
  39. package/dist/polyfills/clipboard-event-composed/main.d.ts +1 -0
  40. package/dist/polyfills/custom-event-composed/main.d.ts +1 -0
  41. package/dist/polyfills/custom-event-composed/polyfill.d.ts +8 -0
  42. package/dist/polyfills/document-shadow/main.d.ts +1 -0
  43. package/dist/polyfills/document-shadow/polyfill.d.ts +1 -0
  44. package/dist/polyfills/event/main.d.ts +1 -0
  45. package/dist/polyfills/event/polyfill.d.ts +1 -0
  46. package/dist/polyfills/event-composed/detect.d.ts +1 -0
  47. package/dist/polyfills/event-composed/main.d.ts +1 -0
  48. package/dist/polyfills/event-composed/polyfill.d.ts +1 -0
  49. package/dist/polyfills/event-target/main.d.ts +1 -0
  50. package/dist/polyfills/event-target/polyfill.d.ts +1 -0
  51. package/dist/polyfills/focus-event/main.d.ts +1 -0
  52. package/dist/polyfills/focus-event/polyfill.d.ts +1 -0
  53. package/dist/polyfills/iframe-content-window/detect.d.ts +1 -0
  54. package/dist/polyfills/iframe-content-window/main.d.ts +1 -0
  55. package/dist/polyfills/iframe-content-window/patch.d.ts +1 -0
  56. package/dist/polyfills/mouse-event/main.d.ts +1 -0
  57. package/dist/polyfills/mouse-event/polyfill.d.ts +1 -0
  58. package/dist/polyfills/mutation-observer/main.d.ts +1 -0
  59. package/dist/polyfills/mutation-observer/polyfill.d.ts +1 -0
  60. package/dist/polyfills/shadow-root/main.d.ts +1 -0
  61. package/dist/polyfills/shadow-root/polyfill.d.ts +1 -0
  62. package/dist/polyfills/window-event-target/detect.d.ts +1 -0
  63. package/dist/polyfills/window-event-target/main.d.ts +1 -0
  64. package/dist/polyfills/window-event-target/polyfill.d.ts +1 -0
  65. package/dist/shared/event-target.d.ts +2 -0
  66. package/dist/shared/faux-element-from-point.d.ts +1 -0
  67. package/dist/shared/faux-elements-from-point.d.ts +1 -0
  68. package/dist/shared/node-ownership.d.ts +11 -0
  69. package/dist/shared/retarget-related-target.d.ts +1 -0
  70. package/dist/shared/static-html-collection.d.ts +1 -0
  71. package/dist/shared/static-node-list.d.ts +1 -0
  72. package/dist/shared/utils.d.ts +9 -0
  73. package/dist/synthetic-shadow.js +74 -12
  74. package/package.json +33 -25
  75. package/dist/synthetic-shadow.js.map +0 -1
  76. package/index.js +0 -8
@@ -0,0 +1,10 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ export declare function getInnerHTML(node: Node): string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ export declare function getOuterHTML(node: Node): string;
@@ -0,0 +1 @@
1
+ export declare function pathComposer(startNode: EventTarget, composed: boolean): EventTarget[];
@@ -0,0 +1,10 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ export declare function retarget(refNode: EventTarget | null, path: EventTarget[]): EventTarget | null;
@@ -0,0 +1,10 @@
1
+ /**
2
+ @license
3
+ Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ */
10
+ export declare function getTextContent(node: Node): string;
@@ -0,0 +1,24 @@
1
+ declare const DocumentPrototypeActiveElement: (this: Document) => Element | null;
2
+ declare const elementFromPoint: (x: number, y: number) => Element | null;
3
+ declare const elementsFromPoint: (x: number, y: number) => Element[];
4
+ declare const defaultViewGetter: (this: Document) => Window | null;
5
+ declare const createComment: (data: string) => Comment, querySelectorAll: {
6
+ <K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
7
+ <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): NodeListOf<SVGElementTagNameMap[K_1]>;
8
+ <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): NodeListOf<MathMLElementTagNameMap[K_2]>;
9
+ <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): NodeListOf<HTMLElementDeprecatedTagNameMap[K_3]>;
10
+ <E extends Element = Element>(selectors: string): NodeListOf<E>;
11
+ }, getElementById: (elementId: string) => HTMLElement | null, getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>, getElementsByTagName: {
12
+ <K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
13
+ <K_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<SVGElementTagNameMap[K_1]>;
14
+ <K_2 extends keyof MathMLElementTagNameMap>(qualifiedName: K_2): HTMLCollectionOf<MathMLElementTagNameMap[K_2]>;
15
+ <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_3): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_3]>;
16
+ (qualifiedName: string): HTMLCollectionOf<Element>;
17
+ }, getElementsByTagNameNS: {
18
+ (namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
19
+ (namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
20
+ (namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
21
+ (namespace: string | null, localName: string): HTMLCollectionOf<Element>;
22
+ };
23
+ declare const getElementsByName: (elementName: string) => NodeListOf<HTMLElement>;
24
+ export { elementFromPoint, elementsFromPoint, createComment, DocumentPrototypeActiveElement, querySelectorAll, getElementById, getElementsByClassName, getElementsByName, getElementsByTagName, getElementsByTagNameNS, defaultViewGetter, };
@@ -0,0 +1,5 @@
1
+ declare const eventTargetGetter: (this: Event) => EventTarget;
2
+ declare const eventCurrentTargetGetter: (this: Event) => EventTarget | null;
3
+ declare const focusEventRelatedTargetGetter: (this: FocusEvent) => EventTarget | null;
4
+ declare const composedPath: () => EventTarget[];
5
+ export { composedPath, eventTargetGetter, eventCurrentTargetGetter, focusEventRelatedTargetGetter };
@@ -0,0 +1,45 @@
1
+ declare const getAttribute: (qualifiedName: string) => string | null, getBoundingClientRect: () => DOMRect, getElementsByTagName: {
2
+ <K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
3
+ <K_1 extends keyof SVGElementTagNameMap>(qualifiedName: K_1): HTMLCollectionOf<SVGElementTagNameMap[K_1]>;
4
+ <K_2 extends keyof MathMLElementTagNameMap>(qualifiedName: K_2): HTMLCollectionOf<MathMLElementTagNameMap[K_2]>;
5
+ <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_3): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_3]>;
6
+ (qualifiedName: string): HTMLCollectionOf<Element>;
7
+ }, getElementsByTagNameNS: {
8
+ (namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
9
+ (namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
10
+ (namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
11
+ (namespace: string | null, localName: string): HTMLCollectionOf<Element>;
12
+ }, hasAttribute: (qualifiedName: string) => boolean, querySelector: {
13
+ <K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
14
+ <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): SVGElementTagNameMap[K_1] | null;
15
+ <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): MathMLElementTagNameMap[K_2] | null;
16
+ <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): HTMLElementDeprecatedTagNameMap[K_3] | null;
17
+ <E extends Element = Element>(selectors: string): E | null;
18
+ }, querySelectorAll: {
19
+ <K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
20
+ <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): NodeListOf<SVGElementTagNameMap[K_1]>;
21
+ <K_2 extends keyof MathMLElementTagNameMap>(selectors: K_2): NodeListOf<MathMLElementTagNameMap[K_2]>;
22
+ <K_3 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_3): NodeListOf<HTMLElementDeprecatedTagNameMap[K_3]>;
23
+ <E extends Element = Element>(selectors: string): NodeListOf<E>;
24
+ }, removeAttribute: (qualifiedName: string) => void, setAttribute: (qualifiedName: string, value: string) => void;
25
+ declare const attachShadow: (init: ShadowRootInit) => ShadowRoot;
26
+ declare const childElementCountGetter: (this: ParentNode) => number;
27
+ declare const firstElementChildGetter: (this: ParentNode) => Element | null;
28
+ declare const lastElementChildGetter: (this: ParentNode) => Element | null;
29
+ declare const innerTextGetter: ((this: Element) => string) | null;
30
+ declare const innerTextSetter: ((this: Element, s: string) => void) | null;
31
+ declare const outerTextGetter: ((this: Element) => string) | null;
32
+ declare const outerTextSetter: ((this: Element, s: string) => void) | null;
33
+ declare const innerHTMLGetter: (this: Element) => string;
34
+ declare const innerHTMLSetter: (this: Element, s: string) => void;
35
+ declare const outerHTMLGetter: (this: Element) => string;
36
+ declare const outerHTMLSetter: (this: Element, s: string) => void;
37
+ declare const tagNameGetter: (this: Element) => string;
38
+ declare const tabIndexGetter: (this: HTMLElement) => number;
39
+ declare const tabIndexSetter: (this: HTMLElement, v: any) => void;
40
+ declare const matches: (this: Element, selector: string) => boolean;
41
+ declare const childrenGetter: (this: ParentNode) => HTMLCollectionOf<Element>;
42
+ declare const getElementsByClassName: (classNames: string) => HTMLCollectionOf<Element>;
43
+ declare const shadowRootGetter: (this: Element) => ShadowRoot | null;
44
+ declare const assignedSlotGetter: (this: Element) => HTMLSlotElement | null;
45
+ export { attachShadow, childrenGetter, childElementCountGetter, firstElementChildGetter, getAttribute, getBoundingClientRect, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, hasAttribute, innerHTMLGetter, innerHTMLSetter, innerTextGetter, innerTextSetter, lastElementChildGetter, matches, outerHTMLGetter, outerHTMLSetter, outerTextGetter, outerTextSetter, querySelector, querySelectorAll, removeAttribute, setAttribute, shadowRootGetter, tagNameGetter, tabIndexGetter, tabIndexSetter, assignedSlotGetter, };
@@ -0,0 +1,3 @@
1
+ export declare const eventTargetPrototype: EventTarget;
2
+ declare const addEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void, dispatchEvent: (event: Event) => boolean, removeEventListener: (type: string, callback: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
3
+ export { addEventListener, dispatchEvent, removeEventListener };
@@ -0,0 +1,6 @@
1
+ declare const MO: {
2
+ new (callback: MutationCallback): MutationObserver;
3
+ prototype: MutationObserver;
4
+ };
5
+ declare const MutationObserverObserve: (target: Node, options?: MutationObserverInit | undefined) => void;
6
+ export { MO as MutationObserver, MutationObserverObserve };
@@ -0,0 +1,35 @@
1
+ declare const _Node: {
2
+ new (): Node;
3
+ prototype: Node;
4
+ readonly ELEMENT_NODE: 1;
5
+ readonly ATTRIBUTE_NODE: 2;
6
+ readonly TEXT_NODE: 3;
7
+ readonly CDATA_SECTION_NODE: 4;
8
+ readonly ENTITY_REFERENCE_NODE: 5;
9
+ readonly ENTITY_NODE: 6;
10
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
11
+ readonly COMMENT_NODE: 8;
12
+ readonly DOCUMENT_NODE: 9;
13
+ readonly DOCUMENT_TYPE_NODE: 10;
14
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
15
+ readonly NOTATION_NODE: 12;
16
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
17
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
18
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
19
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
20
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
21
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
22
+ };
23
+ declare const DOCUMENT_POSITION_CONTAINED_BY: 16, DOCUMENT_POSITION_CONTAINS: 8, DOCUMENT_POSITION_PRECEDING: 2, DOCUMENT_POSITION_FOLLOWING: 4, ELEMENT_NODE: 1, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, PROCESSING_INSTRUCTION_NODE: 7, COMMENT_NODE: 8, DOCUMENT_FRAGMENT_NODE: 11;
24
+ declare const appendChild: <T extends Node>(node: T) => T, cloneNode: (deep?: boolean | undefined) => Node, compareDocumentPosition: (other: Node) => number, insertBefore: <T extends Node>(node: T, child: Node | null) => T, removeChild: <T extends Node>(child: T) => T, replaceChild: <T extends Node>(node: Node, child: T) => T, hasChildNodes: () => boolean;
25
+ declare const contains: (other: Node | null) => boolean;
26
+ declare const firstChildGetter: (this: Node) => ChildNode | null;
27
+ declare const lastChildGetter: (this: Node) => ChildNode | null;
28
+ declare const textContentGetter: (this: Node) => string;
29
+ declare const parentNodeGetter: (this: Node) => (Node & ParentNode) | null;
30
+ declare const ownerDocumentGetter: (this: Node) => Document | null;
31
+ declare const parentElementGetter: (this: Node) => Element | null;
32
+ declare const textContextSetter: (this: Node, s: string) => void;
33
+ declare const childNodesGetter: (this: Node) => NodeListOf<Node & Element>;
34
+ declare const isConnected: () => any;
35
+ export { _Node as Node, appendChild, childNodesGetter, cloneNode, compareDocumentPosition, insertBefore, isConnected, parentElementGetter, parentNodeGetter, removeChild, replaceChild, textContextSetter, ownerDocumentGetter, hasChildNodes, contains, firstChildGetter, lastChildGetter, textContentGetter, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_PRECEDING, DOCUMENT_POSITION_FOLLOWING, ELEMENT_NODE, TEXT_NODE, CDATA_SECTION_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, };
@@ -0,0 +1,2 @@
1
+ export declare const isNativeShadowRootDefined: boolean;
2
+ export declare const isInstanceOfNativeShadowRoot: (node: any) => boolean;
@@ -0,0 +1,2 @@
1
+ declare let assignedNodes: (options?: AssignedNodesOptions) => Node[], assignedElements: (options?: AssignedNodesOptions) => Element[];
2
+ export { assignedNodes, assignedElements };
@@ -0,0 +1 @@
1
+ export declare const assignedSlotGetter: (this: Text) => HTMLSlotElement | null;
@@ -0,0 +1,8 @@
1
+ declare const windowAddEventListener: {
2
+ <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
3
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
4
+ } & typeof addEventListener, windowRemoveEventListener: {
5
+ <K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions | undefined): void;
6
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
7
+ } & typeof removeEventListener, windowGetComputedStyle: ((elt: Element, pseudoElt?: string | null | undefined) => CSSStyleDeclaration) & typeof getComputedStyle, windowGetSelection: (() => Selection | null) & typeof getSelection;
8
+ export { windowAddEventListener, windowGetComputedStyle, windowGetSelection, windowRemoveEventListener, };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ export declare const enum EventListenerContext {
2
+ CUSTOM_ELEMENT_LISTENER = 0,
3
+ SHADOW_ROOT_LISTENER = 1,
4
+ UNKNOWN_LISTENER = 2
5
+ }
6
+ export declare const eventToContextMap: WeakMap<Event, EventListenerContext>;
7
+ /**
8
+ * Events dispatched on shadow roots actually end up being dispatched on their hosts. This means that the event.target
9
+ * property of events dispatched on shadow roots always resolve to their host. This function understands this
10
+ * abstraction and properly returns a reference to the shadow root when appropriate.
11
+ */
12
+ export declare function getActualTarget(event: Event): EventTarget;
13
+ export declare function addCustomElementEventListener(this: Element, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
14
+ export declare function removeCustomElementEventListener(this: Element, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
15
+ export declare function addShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
16
+ export declare function removeShadowRootEventListener(sr: ShadowRoot, type: string, listener: unknown, _options?: boolean | AddEventListenerOptions): void;
@@ -0,0 +1,9 @@
1
+ export declare function hostElementFocus(this: HTMLElement): void;
2
+ export declare function getActiveElement(host: HTMLElement): Element | null;
3
+ export declare function disableKeyboardFocusNavigationRoutines(): void;
4
+ export declare function enableKeyboardFocusNavigationRoutines(): void;
5
+ export declare function isKeyboardFocusNavigationRoutineEnabled(): boolean;
6
+ export declare function handleFocus(elm: HTMLElement): void;
7
+ export declare function ignoreFocus(elm: HTMLElement): void;
8
+ export declare function handleFocusIn(elm: HTMLElement): void;
9
+ export declare function ignoreFocusIn(elm: HTMLElement): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This methods filters out elements that are not in the same shadow root of context.
3
+ * It does not enforce shadow dom semantics if $context is not managed by LWC
4
+ */
5
+ export declare function getNonPatchedFilteredArrayOfNodes<T extends Node>(context: Element, unfilteredNodes: Array<T>): Array<T>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This method checks whether or not the content of the node is computed
3
+ * based on the light-dom slotting mechanism. This applies to synthetic slot elements
4
+ * and elements with shadow dom attached to them. It doesn't apply to native slot elements
5
+ * because we don't want to patch the children getters for those elements.
6
+ */
7
+ export declare function hasMountedChildren(node: Node): boolean;
8
+ /**
9
+ * These 2 methods are providing a machinery to understand who is accessing the
10
+ * .childNodes member property of a node. If it is used from inside the synthetic shadow
11
+ * or from an external invoker. This helps to produce the right output in one very peculiar
12
+ * case, the IE11 debugging comment for shadowRoot representation on the devtool.
13
+ */
14
+ export declare function isExternalChildNodeAccessorFlagOn(): boolean;
15
+ export declare const getInternalChildNodes: (node: Node) => NodeListOf<ChildNode>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ export declare function hasInternalSlot(root: unknown): boolean;
2
+ export type ShadowRootResolver = () => ShadowRoot;
3
+ export declare function getShadowRootResolver(node: Node): undefined | ShadowRootResolver;
4
+ export declare function setShadowRootResolver(node: Node, fn: ShadowRootResolver | undefined): void;
5
+ export declare function isDelegatingFocus(host: HTMLElement): boolean;
6
+ export declare function getHost(root: ShadowRoot): Element;
7
+ export declare function getShadowRoot(elm: Element): ShadowRoot;
8
+ export declare function isSyntheticShadowHost(node: unknown): node is HTMLElement;
9
+ export declare function isSyntheticShadowRoot(node: unknown): node is ShadowRoot;
10
+ export declare function attachShadow(elm: Element, options: ShadowRootInit): ShadowRoot;
11
+ export declare const eventToShadowRootMap: WeakMap<Event, ShadowRoot>;
12
+ export declare function SyntheticShadowRoot(): void;
13
+ export declare namespace SyntheticShadowRoot {
14
+ var prototype: any;
15
+ }
16
+ /**
17
+ * This method is only intended to be used in non-production mode in IE11
18
+ * and its role is to produce a 1-1 mapping between a shadowRoot instance
19
+ * and a comment node that is intended to use to trick the IE11 DevTools
20
+ * to show the content of the shadowRoot in the DOM Explorer.
21
+ */
22
+ export declare function getIE11FakeShadowRootPlaceholder(host: Element): Comment;
@@ -0,0 +1,2 @@
1
+ export declare function getShadowToken(node: Node): string | undefined;
2
+ export declare function setShadowToken(node: Node, shadowToken: string | undefined): void;
@@ -0,0 +1 @@
1
+ export declare function assignedSlotGetterPatched(this: Element | Text): HTMLSlotElement | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ export declare function getNodeOwner(node: Node): HTMLElement | null;
2
+ export declare function isSyntheticSlotElement(node: Node): node is HTMLSlotElement;
3
+ export declare function isSlotElement(node: Node): node is HTMLSlotElement;
4
+ export declare function isNodeOwnedBy(owner: Element, node: Node): boolean;
5
+ export declare function shadowRootChildNodes(root: ShadowRoot): Array<Element & Node>;
6
+ export declare function getAllSlottedMatches<T extends Node>(host: Element, nodeList: NodeList | Node[]): T[];
7
+ export declare function getFirstSlottedMatch(host: Element, nodeList: Element[]): Element | null;
8
+ export declare function getAllMatches<T extends Node>(owner: Element, nodeList: Node[]): T[];
9
+ export declare function getFirstMatch(owner: Element, nodeList: Element[]): Element | null;
10
+ export declare function shadowRootQuerySelector(root: ShadowRoot, selector: string): Element | null;
11
+ export declare function shadowRootQuerySelectorAll(root: ShadowRoot, selector: string): Element[];
12
+ export declare function getFilteredChildNodes(node: Node): Element[];
13
+ export declare function getFilteredSlotAssignedNodes(slot: HTMLElement): Node[];