projecte_ionic/node_modules/@ionic/angular/directives/navigation/ion-router-outlet.d.ts
2022-02-09 18:30:03 +01:00

93 lines
No EOL
4.2 KiB
TypeScript
Executable file

import { Location } from '@angular/common';
import { ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
import { ActivatedRoute, ChildrenOutletContexts, OutletContext, Router } from '@angular/router';
import { AnimationBuilder } from '../../';
import { Config } from '../../providers/config';
import { NavController } from '../../providers/nav-controller';
import { RouteView } from './stack-utils';
import * as ɵngcc0 from '@angular/core';
export declare class IonRouterOutlet implements OnDestroy, OnInit {
private parentContexts;
private location;
private resolver;
private config;
private navCtrl;
readonly parentOutlet?: IonRouterOutlet;
nativeEl: HTMLIonRouterOutletElement;
private activated;
activatedView: RouteView | null;
private _activatedRoute;
private _swipeGesture?;
private name;
private stackCtrl;
private proxyMap;
private currentActivatedRoute$;
tabsPrefix: string | undefined;
stackEvents: EventEmitter<any>;
activateEvents: EventEmitter<any>;
deactivateEvents: EventEmitter<any>;
animation: AnimationBuilder;
animated: boolean;
swipeGesture: boolean;
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);
ngOnDestroy(): void;
getContext(): OutletContext | null;
ngOnInit(): void;
readonly isActivated: boolean;
readonly component: object;
readonly activatedRoute: ActivatedRoute;
readonly activatedRouteData: any;
/**
* Called when the `RouteReuseStrategy` instructs to detach the subtree
*/
detach(): ComponentRef<any>;
/**
* Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
*/
attach(_ref: ComponentRef<any>, _activatedRoute: ActivatedRoute): void;
deactivate(): void;
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
/**
* Returns `true` if there are pages in the stack to go back.
*/
canGoBack(deep?: number, stackId?: string): boolean;
/**
* Resolves to `true` if it the outlet was able to sucessfully pop the last N pages.
*/
pop(deep?: number, stackId?: string): Promise<boolean>;
/**
* Returns the URL of the active page of each stack.
*/
getLastUrl(stackId?: string): string | undefined;
/**
* Returns the RouteView of the active page of each stack.
* @internal
*/
getLastRouteView(stackId?: string): RouteView | undefined;
/**
* Returns the root view in the tab stack.
* @internal
*/
getRootView(stackId?: string): RouteView | undefined;
/**
* Returns the active stack ID. In the context of ion-tabs, it means the active tab.
*/
getActiveStackId(): string | undefined;
/**
* Since the activated route can change over the life time of a component in an ion router outlet, we create
* a proxy so that we can update the values over time as a user navigates back to components already in the stack.
*/
private createActivatedRouteProxy;
/**
* Create a wrapped observable that will switch to the latest activated route matched by the given component
*/
private proxyObservable;
/**
* Updates the activated route proxy for the given component to the new incoming router state
*/
private updateActivatedRouteProxy;
static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<IonRouterOutlet, [null, null, null, { attribute: "name"; }, { attribute: "tabs"; optional: true; }, null, null, null, null, null, null, null, { optional: true; skipSelf: true; }]>;
static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<IonRouterOutlet, "ion-router-outlet", ["outlet"], { "animated": "animated"; "animation": "animation"; "swipeGesture": "swipeGesture"; }, { "stackEvents": "stackEvents"; "activateEvents": "activate"; "deactivateEvents": "deactivate"; }, never>;
}
//# sourceMappingURL=ion-router-outlet.d.ts.map