source: trip-planner-front/node_modules/@angular/cdk/overlay/overlay.d.ts@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 3.4 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Directionality } from '@angular/cdk/bidi';
9import { Location } from '@angular/common';
10import { ComponentFactoryResolver, Injector, NgZone } from '@angular/core';
11import { OverlayKeyboardDispatcher } from './dispatchers/overlay-keyboard-dispatcher';
12import { OverlayOutsideClickDispatcher } from './dispatchers/overlay-outside-click-dispatcher';
13import { OverlayConfig } from './overlay-config';
14import { OverlayContainer } from './overlay-container';
15import { OverlayRef } from './overlay-ref';
16import { OverlayPositionBuilder } from './position/overlay-position-builder';
17import { ScrollStrategyOptions } from './scroll/index';
18/**
19 * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
20 * used as a low-level building block for other components. Dialogs, tooltips, menus,
21 * selects, etc. can all be built using overlays. The service should primarily be used by authors
22 * of re-usable components rather than developers building end-user applications.
23 *
24 * An overlay *is* a PortalOutlet, so any kind of Portal can be loaded into one.
25 */
26import * as ɵngcc0 from '@angular/core';
27export declare class Overlay {
28 /** Scrolling strategies that can be used when creating an overlay. */
29 scrollStrategies: ScrollStrategyOptions;
30 private _overlayContainer;
31 private _componentFactoryResolver;
32 private _positionBuilder;
33 private _keyboardDispatcher;
34 private _injector;
35 private _ngZone;
36 private _document;
37 private _directionality;
38 private _location;
39 private _outsideClickDispatcher;
40 private _appRef;
41 constructor(
42 /** Scrolling strategies that can be used when creating an overlay. */
43 scrollStrategies: ScrollStrategyOptions, _overlayContainer: OverlayContainer, _componentFactoryResolver: ComponentFactoryResolver, _positionBuilder: OverlayPositionBuilder, _keyboardDispatcher: OverlayKeyboardDispatcher, _injector: Injector, _ngZone: NgZone, _document: any, _directionality: Directionality, _location: Location, _outsideClickDispatcher: OverlayOutsideClickDispatcher);
44 /**
45 * Creates an overlay.
46 * @param config Configuration applied to the overlay.
47 * @returns Reference to the created overlay.
48 */
49 create(config?: OverlayConfig): OverlayRef;
50 /**
51 * Gets a position builder that can be used, via fluent API,
52 * to construct and configure a position strategy.
53 * @returns An overlay position builder.
54 */
55 position(): OverlayPositionBuilder;
56 /**
57 * Creates the DOM element for an overlay and appends it to the overlay container.
58 * @returns Newly-created pane element
59 */
60 private _createPaneElement;
61 /**
62 * Creates the host element that wraps around an overlay
63 * and can be used for advanced positioning.
64 * @returns Newly-create host element.
65 */
66 private _createHostElement;
67 /**
68 * Create a DomPortalOutlet into which the overlay content can be loaded.
69 * @param pane The DOM element to turn into a portal outlet.
70 * @returns A portal outlet for the given DOM element.
71 */
72 private _createPortalOutlet;
73 static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<Overlay, never>;
74 static ɵprov: ɵngcc0.ɵɵInjectableDeclaration<Overlay>;
75}
76
77//# sourceMappingURL=overlay.d.ts.map
Note: See TracBrowser for help on using the repository browser.