1 | import { OverrideContext } from 'aurelia-binding';
|
2 | import { Container } from 'aurelia-dependency-injection';
|
3 | import { NavigationInstruction, RouteConfig, RouteLoader, Router } from 'aurelia-router';
|
4 | import { CompositionEngine, CompositionTransaction, View, ViewLocator, ViewSlot } from 'aurelia-templating';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export declare class TemplatingRouteLoader extends RouteLoader {
|
10 | constructor(compositionEngine: CompositionEngine);
|
11 | /**
|
12 | * Load corresponding component of a route config of a navigation instruction
|
13 | */
|
14 | loadRoute(router: Router, config: RouteConfig, _navInstruction: NavigationInstruction): Promise<any>;
|
15 | }
|
16 | /**
|
17 | * Implementation of Aurelia Router ViewPort. Responsible for loading route, composing and swapping routes views
|
18 | */
|
19 | export declare class RouterView {
|
20 | |
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | swapOrder?: string;
|
30 | |
31 |
|
32 |
|
33 | layoutView?: any;
|
34 | |
35 |
|
36 |
|
37 |
|
38 | layoutViewModel?: any;
|
39 | |
40 |
|
41 |
|
42 | layoutModel?: any;
|
43 | |
44 |
|
45 |
|
46 | readonly element: Element;
|
47 | |
48 |
|
49 |
|
50 | readonly router: Router;
|
51 | |
52 |
|
53 |
|
54 | container: Container;
|
55 | constructor(element: Element, container: Container, viewSlot: ViewSlot, router: Router, viewLocator: ViewLocator, compositionTransaction: CompositionTransaction, compositionEngine: CompositionEngine);
|
56 | created(owningView: View): void;
|
57 | bind(bindingContext: any, overrideContext: OverrideContext): void;
|
58 | /**
|
59 | * Implementation of `aurelia-router` ViewPort interface, responsible for templating related part in routing Pipeline
|
60 | */
|
61 | process($viewPortInstruction: any, waitToSwap?: boolean): Promise<void>;
|
62 | swap($viewPortInstruction: any): void | Promise<void>;
|
63 | }
|
64 | /**
|
65 | * Helper custom attribute to help associate an element with a route by name
|
66 | */
|
67 | export declare class RouteHref {
|
68 | |
69 |
|
70 |
|
71 | readonly router: Router;
|
72 | |
73 |
|
74 |
|
75 | readonly element: Element;
|
76 | |
77 |
|
78 |
|
79 | route: string;
|
80 | |
81 |
|
82 |
|
83 | params: Record<string, any>;
|
84 | |
85 |
|
86 |
|
87 |
|
88 | attribute: string;
|
89 | constructor(router: Router, element: Element);
|
90 | bind(): void;
|
91 | unbind(): void;
|
92 | attributeChanged(value: any, previous: any): Promise<void>;
|
93 | processChange(): Promise<void>;
|
94 | }
|
95 | export interface IFrameworkConfiguration {
|
96 | container: Container;
|
97 | singleton(...args: any[]): this;
|
98 | globalResources(...args: any[]): this;
|
99 | }
|
100 | export declare function configure(config: IFrameworkConfiguration): void; |
\ | No newline at end of file |