1 | import * as i0 from '@angular/core';
|
2 |
|
3 | /** Gets the target of an event while accounting for Shadow DOM. */
|
4 | export declare function _getEventTarget<T extends EventTarget>(event: Event): T | null;
|
5 |
|
6 | /**
|
7 | * Gets the currently-focused element on the page while
|
8 | * also piercing through Shadow DOM boundaries.
|
9 | */
|
10 | export declare function _getFocusedElementPierceShadowDom(): HTMLElement | null;
|
11 |
|
12 | /**
|
13 | * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
|
14 | * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
|
15 | */
|
16 | export declare function getRtlScrollAxisType(): RtlScrollAxisType;
|
17 |
|
18 | /** Gets the shadow root of an element, if supported and the element is inside the Shadow DOM. */
|
19 | export declare function _getShadowRoot(element: HTMLElement): ShadowRoot | null;
|
20 |
|
21 |
|
22 | /** @returns The input types supported by this browser. */
|
23 | export declare function getSupportedInputTypes(): Set<string>;
|
24 |
|
25 |
|
26 | /** Gets whether the code is currently running in a test environment. */
|
27 | export declare function _isTestEnvironment(): boolean;
|
28 |
|
29 | /**
|
30 | * Normalizes an `AddEventListener` object to something that can be passed
|
31 | * to `addEventListener` on any browser, no matter whether it supports the
|
32 | * `options` parameter.
|
33 | * @param options Object to be normalized.
|
34 | */
|
35 | export declare function normalizePassiveListenerOptions(options: AddEventListenerOptions): AddEventListenerOptions | boolean;
|
36 |
|
37 | /**
|
38 | * Service to detect the current platform by comparing the userAgent strings and
|
39 | * checking browser-specific global properties.
|
40 | */
|
41 | export declare class Platform {
|
42 | private _platformId;
|
43 | /** Whether the Angular application is being rendered in the browser. */
|
44 | isBrowser: boolean;
|
45 | /** Whether the current browser is Microsoft Edge. */
|
46 | EDGE: boolean;
|
47 | /** Whether the current rendering engine is Microsoft Trident. */
|
48 | TRIDENT: boolean;
|
49 | /** Whether the current rendering engine is Blink. */
|
50 | BLINK: boolean;
|
51 | /** Whether the current rendering engine is WebKit. */
|
52 | WEBKIT: boolean;
|
53 | /** Whether the current platform is Apple iOS. */
|
54 | IOS: boolean;
|
55 | /** Whether the current browser is Firefox. */
|
56 | FIREFOX: boolean;
|
57 | /** Whether the current platform is Android. */
|
58 | ANDROID: boolean;
|
59 | /** Whether the current browser is Safari. */
|
60 | SAFARI: boolean;
|
61 | constructor(_platformId: Object);
|
62 | static ɵfac: i0.ɵɵFactoryDeclaration<Platform, never>;
|
63 | static ɵprov: i0.ɵɵInjectableDeclaration<Platform>;
|
64 | }
|
65 |
|
66 | export declare class PlatformModule {
|
67 | static ɵfac: i0.ɵɵFactoryDeclaration<PlatformModule, never>;
|
68 | static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformModule, never, never, never>;
|
69 | static ɵinj: i0.ɵɵInjectorDeclaration<PlatformModule>;
|
70 | }
|
71 |
|
72 |
|
73 | /** The possible ways the browser may handle the horizontal scroll axis in RTL languages. */
|
74 | export declare const enum RtlScrollAxisType {
|
75 | /**
|
76 | * scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
|
77 | * all the way right.
|
78 | */
|
79 | NORMAL = 0,
|
80 | /**
|
81 | * scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
|
82 | * all the way right.
|
83 | */
|
84 | NEGATED = 1,
|
85 | /**
|
86 | * scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
|
87 | * all the way right.
|
88 | */
|
89 | INVERTED = 2
|
90 | }
|
91 |
|
92 |
|
93 | /**
|
94 | * Checks whether the user's browser supports passive event listeners.
|
95 | * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
|
96 | */
|
97 | export declare function supportsPassiveEventListeners(): boolean;
|
98 |
|
99 | /** Check whether the browser supports scroll behaviors. */
|
100 | export declare function supportsScrollBehavior(): boolean;
|
101 |
|
102 |
|
103 | /** Checks whether the user's browser support Shadow DOM. */
|
104 | export declare function _supportsShadowDom(): boolean;
|
105 |
|
106 | export { }
|