source: trip-planner-front/node_modules/@angular/cdk/portal/portal-directives.d.ts.__ivy_ngcc_bak@ ceaed42

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

initial commit

  • Property mode set to 100644
File size: 3.5 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 { ComponentFactoryResolver, ComponentRef, EmbeddedViewRef, EventEmitter, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
9import { BasePortalOutlet, ComponentPortal, Portal, TemplatePortal, DomPortal } from './portal';
10/**
11 * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal,
12 * the directive instance itself can be attached to a host, enabling declarative use of portals.
13 */
14export declare class CdkPortal extends TemplatePortal {
15 constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
16}
17/**
18 * @deprecated Use `CdkPortal` instead.
19 * @breaking-change 9.0.0
20 */
21export declare class TemplatePortalDirective extends CdkPortal {
22}
23/**
24 * Possible attached references to the CdkPortalOutlet.
25 */
26export declare type CdkPortalOutletAttachedRef = ComponentRef<any> | EmbeddedViewRef<any> | null;
27/**
28 * Directive version of a PortalOutlet. Because the directive *is* a PortalOutlet, portals can be
29 * directly attached to it, enabling declarative use.
30 *
31 * Usage:
32 * `<ng-template [cdkPortalOutlet]="greeting"></ng-template>`
33 */
34export declare class CdkPortalOutlet extends BasePortalOutlet implements OnInit, OnDestroy {
35 private _componentFactoryResolver;
36 private _viewContainerRef;
37 private _document;
38 /** Whether the portal component is initialized. */
39 private _isInitialized;
40 /** Reference to the currently-attached component/view ref. */
41 private _attachedRef;
42 constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef,
43 /**
44 * @deprecated `_document` parameter to be made required.
45 * @breaking-change 9.0.0
46 */
47 _document?: any);
48 /** Portal associated with the Portal outlet. */
49 get portal(): Portal<any> | null;
50 set portal(portal: Portal<any> | null);
51 /** Emits when a portal is attached to the outlet. */
52 readonly attached: EventEmitter<CdkPortalOutletAttachedRef>;
53 /** Component or view reference that is attached to the portal. */
54 get attachedRef(): CdkPortalOutletAttachedRef;
55 ngOnInit(): void;
56 ngOnDestroy(): void;
57 /**
58 * Attach the given ComponentPortal to this PortalOutlet using the ComponentFactoryResolver.
59 *
60 * @param portal Portal to be attached to the portal outlet.
61 * @returns Reference to the created component.
62 */
63 attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
64 /**
65 * Attach the given TemplatePortal to this PortalHost as an embedded View.
66 * @param portal Portal to be attached.
67 * @returns Reference to the created embedded view.
68 */
69 attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
70 /**
71 * Attaches the given DomPortal to this PortalHost by moving all of the portal content into it.
72 * @param portal Portal to be attached.
73 * @deprecated To be turned into a method.
74 * @breaking-change 10.0.0
75 */
76 attachDomPortal: (portal: DomPortal) => void;
77 /** Gets the root node of the portal outlet. */
78 private _getRootNode;
79 static ngAcceptInputType_portal: Portal<any> | null | undefined | '';
80}
81/**
82 * @deprecated Use `CdkPortalOutlet` instead.
83 * @breaking-change 9.0.0
84 */
85export declare class PortalHostDirective extends CdkPortalOutlet {
86}
87export declare class PortalModule {
88}
Note: See TracBrowser for help on using the repository browser.