a zip code crypto-currency system good for red ONLY

nav-controller-base.d.ts 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. import { ComponentFactoryResolver, ComponentRef, ElementRef, ErrorHandler, EventEmitter, NgZone, Renderer, ViewContainerRef } from '@angular/core';
  2. import { App } from '../components/app/app';
  3. import { Config } from '../config/config';
  4. import { NavOptions, NavResult, TransitionDoneFn, TransitionInstruction } from './nav-util';
  5. import { DeepLinker } from './deep-linker';
  6. import { DomController } from '../platform/dom-controller';
  7. import { GestureController } from '../gestures/gesture-controller';
  8. import { ViewController } from './view-controller';
  9. import { Ion } from '../components/ion';
  10. import { NavigationContainer } from './navigation-container';
  11. import { NavController } from './nav-controller';
  12. import { Platform } from '../platform/platform';
  13. import { SwipeBackGesture } from './swipe-back';
  14. import { Transition } from '../transitions/transition';
  15. import { TransitionController } from '../transitions/transition-controller';
  16. /**
  17. * @hidden
  18. * This class is for internal use only. It is not exported publicly.
  19. */
  20. export declare class NavControllerBase extends Ion implements NavController {
  21. parent: any;
  22. _app: App;
  23. config: Config;
  24. plt: Platform;
  25. _zone: NgZone;
  26. _cfr: ComponentFactoryResolver;
  27. _gestureCtrl: GestureController;
  28. _trnsCtrl: TransitionController;
  29. _linker: DeepLinker;
  30. private _domCtrl;
  31. private _errHandler;
  32. _children: NavigationContainer[];
  33. _ids: number;
  34. _init: boolean;
  35. _isPortal: boolean;
  36. _queue: TransitionInstruction[];
  37. _sbEnabled: boolean;
  38. _sbGesture: SwipeBackGesture;
  39. _sbTrns: Transition;
  40. _trnsId: number;
  41. _trnsTm: boolean;
  42. _viewport: ViewContainerRef;
  43. _views: ViewController[];
  44. _zIndexOffset: number;
  45. _destroyed: boolean;
  46. viewDidLoad: EventEmitter<any>;
  47. viewWillEnter: EventEmitter<any>;
  48. viewDidEnter: EventEmitter<any>;
  49. viewWillLeave: EventEmitter<any>;
  50. viewDidLeave: EventEmitter<any>;
  51. viewWillUnload: EventEmitter<any>;
  52. id: string;
  53. name: string;
  54. swipeBackEnabled: boolean;
  55. constructor(parent: any, _app: App, config: Config, plt: Platform, elementRef: ElementRef, _zone: NgZone, renderer: Renderer, _cfr: ComponentFactoryResolver, _gestureCtrl: GestureController, _trnsCtrl: TransitionController, _linker: DeepLinker, _domCtrl: DomController, _errHandler: ErrorHandler);
  56. push(page: any, params?: any, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  57. insert(insertIndex: number, page: any, params?: any, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  58. insertPages(insertIndex: number, insertPages: any[], opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  59. pop(opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  60. popTo(indexOrViewCtrl: any, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  61. popToRoot(opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  62. popAll(): Promise<any[]>;
  63. remove(startIndex: number, removeCount?: number, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  64. removeView(viewController: ViewController, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  65. setRoot(pageOrViewCtrl: any, params?: any, opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  66. setPages(viewControllers: any[], opts?: NavOptions, done?: TransitionDoneFn): Promise<any>;
  67. _queueTrns(ti: TransitionInstruction, done: TransitionDoneFn): Promise<boolean>;
  68. _success(result: NavResult, ti: TransitionInstruction): void;
  69. _failed(rejectReason: any, ti: TransitionInstruction): void;
  70. _fireError(rejectReason: any, ti: TransitionInstruction): void;
  71. _nextTrns(): boolean;
  72. _startTI(ti: TransitionInstruction): Promise<void>;
  73. _loadLazyLoading(ti: TransitionInstruction): Promise<void>;
  74. _getEnteringView(ti: TransitionInstruction, leavingView: ViewController): ViewController;
  75. _postViewInit(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction): void;
  76. /**
  77. * DOM WRITE
  78. */
  79. _viewInit(enteringView: ViewController): void;
  80. _viewAttachToDOM(view: ViewController, componentRef: ComponentRef<any>, viewport: ViewContainerRef): void;
  81. _viewTest(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction): Promise<void>;
  82. _transition(enteringView: ViewController, leavingView: ViewController, ti: TransitionInstruction): Promise<NavResult>;
  83. _transitionStart(transition: Transition, enteringView: ViewController, leavingView: ViewController, opts: NavOptions): Promise<NavResult>;
  84. _transitionFinish(transition: Transition, opts: NavOptions): NavResult;
  85. _viewsWillLifecycles(enteringView: ViewController, leavingView: ViewController): void;
  86. _insertViewAt(view: ViewController, index: number): void;
  87. _removeView(view: ViewController): void;
  88. _destroyView(view: ViewController): void;
  89. /**
  90. * DOM WRITE
  91. */
  92. _cleanup(activeView: ViewController): void;
  93. _preLoad(view: ViewController): void;
  94. _willLoad(view: ViewController): void;
  95. _didLoad(view: ViewController): void;
  96. _willEnter(view: ViewController): void;
  97. _didEnter(view: ViewController): void;
  98. _willLeave(view: ViewController, willUnload: boolean): void;
  99. _didLeave(view: ViewController): void;
  100. _willUnload(view: ViewController): void;
  101. hasChildren(): boolean;
  102. getActiveChildNavs(): any[];
  103. getAllChildNavs(): any[];
  104. registerChildNav(container: NavigationContainer): void;
  105. unregisterChildNav(nav: any): void;
  106. destroy(): void;
  107. swipeBackStart(): void;
  108. swipeBackProgress(stepValue: number): void;
  109. swipeBackEnd(shouldComplete: boolean, currentStepValue: number, velocity: number): void;
  110. _swipeBackCheck(): void;
  111. canSwipeBack(): boolean;
  112. canGoBack(): boolean;
  113. isTransitioning(): boolean;
  114. setTransitioning(isTransitioning: boolean): void;
  115. getActive(): ViewController;
  116. isActive(view: ViewController): boolean;
  117. getByIndex(index: number): ViewController;
  118. getPrevious(view?: ViewController): ViewController;
  119. first(): ViewController;
  120. last(): ViewController;
  121. indexOf(view: ViewController): number;
  122. length(): number;
  123. getViews(): Array<ViewController>;
  124. /**
  125. * Return a view controller
  126. */
  127. getViewById(id: string): ViewController;
  128. isSwipeBackEnabled(): boolean;
  129. dismissPageChangeViews(): void;
  130. setViewport(val: ViewContainerRef): void;
  131. resize(): void;
  132. goToRoot(_opts: NavOptions): Promise<any>;
  133. getType(): string;
  134. getSecondaryIdentifier(): string;
  135. /**
  136. * Returns the active child navigation.
  137. */
  138. getActiveChildNav(): any;
  139. }