1 | import { Location } from '@angular/common';
|
2 | import { ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
3 | import { ActivatedRoute, ChildrenOutletContexts, OutletContext, Router } from '@angular/router';
|
4 | import { AnimationBuilder } from '../../';
|
5 | import { Config } from '../../providers/config';
|
6 | import { NavController } from '../../providers/nav-controller';
|
7 | import { RouteView } from './stack-utils';
|
8 | export declare class IonRouterOutlet implements OnDestroy, OnInit {
|
9 | private parentContexts;
|
10 | private location;
|
11 | private resolver;
|
12 | private config;
|
13 | private navCtrl;
|
14 | readonly parentOutlet?: IonRouterOutlet;
|
15 | nativeEl: HTMLIonRouterOutletElement;
|
16 | private activated;
|
17 | activatedView: RouteView | null;
|
18 | private _activatedRoute;
|
19 | private _swipeGesture?;
|
20 | private name;
|
21 | private stackCtrl;
|
22 | private proxyMap;
|
23 | private currentActivatedRoute$;
|
24 | tabsPrefix: string | undefined;
|
25 | stackEvents: EventEmitter<any>;
|
26 | activateEvents: EventEmitter<any>;
|
27 | deactivateEvents: EventEmitter<any>;
|
28 | animation: AnimationBuilder;
|
29 | animated: boolean;
|
30 | swipeGesture: boolean;
|
31 | constructor(parentContexts: ChildrenOutletContexts, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string, tabs: string, config: Config, navCtrl: NavController, commonLocation: Location, elementRef: ElementRef, router: Router, zone: NgZone, activatedRoute: ActivatedRoute, parentOutlet?: IonRouterOutlet);
|
32 | ngOnDestroy(): void;
|
33 | getContext(): OutletContext | null;
|
34 | ngOnInit(): void;
|
35 | readonly isActivated: boolean;
|
36 | readonly component: object;
|
37 | readonly activatedRoute: ActivatedRoute;
|
38 | readonly activatedRouteData: any;
|
39 | /**
|
40 | * Called when the `RouteReuseStrategy` instructs to detach the subtree
|
41 | */
|
42 | detach(): ComponentRef<any>;
|
43 | /**
|
44 | * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
|
45 | */
|
46 | attach(_ref: ComponentRef<any>, _activatedRoute: ActivatedRoute): void;
|
47 | deactivate(): void;
|
48 | activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
|
49 | /**
|
50 | * Returns `true` if there are pages in the stack to go back.
|
51 | */
|
52 | canGoBack(deep?: number, stackId?: string): boolean;
|
53 | /**
|
54 | * Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.
|
55 | */
|
56 | pop(deep?: number, stackId?: string): Promise<boolean>;
|
57 | /**
|
58 | * Returns the URL of the active page of each stack.
|
59 | */
|
60 | getLastUrl(stackId?: string): string | undefined;
|
61 | /**
|
62 | * Returns the RouteView of the active page of each stack.
|
63 | * @internal
|
64 | */
|
65 | getLastRouteView(stackId?: string): RouteView | undefined;
|
66 | /**
|
67 | * Returns the root view in the tab stack.
|
68 | * @internal
|
69 | */
|
70 | getRootView(stackId?: string): RouteView | undefined;
|
71 | /**
|
72 | * Returns the active stack ID. In the context of ion-tabs, it means the active tab.
|
73 | */
|
74 | getActiveStackId(): string | undefined;
|
75 | /**
|
76 | * Since the activated route can change over the life time of a component in an ion router outlet, we create
|
77 | * a proxy so that we can update the values over time as a user navigates back to components already in the stack.
|
78 | */
|
79 | private createActivatedRouteProxy;
|
80 | /**
|
81 | * Create a wrapped observable that will switch to the latest activated route matched by the given component
|
82 | */
|
83 | private proxyObservable;
|
84 | /**
|
85 | * Updates the activated route proxy for the given component to the new incoming router state
|
86 | */
|
87 | private updateActivatedRouteProxy;
|
88 | }
|