source: trip-planner-front/node_modules/@angular/router/esm2015/src/events.js@ 188ee53

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

initial commit

  • Property mode set to 100644
File size: 35.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 */
8/**
9 * Base for events the router goes through, as opposed to events tied to a specific
10 * route. Fired one time for any given navigation.
11 *
12 * The following code shows how a class subscribes to router events.
13 *
14 * ```ts
15 * import {Event, RouterEvent, Router} from '@angular/router';
16 *
17 * class MyService {
18 * constructor(public router: Router) {
19 * router.events.pipe(
20 * filter((e: Event): e is RouterEvent => e instanceof RouterEvent)
21 * ).subscribe((e: RouterEvent) => {
22 * // Do something
23 * });
24 * }
25 * }
26 * ```
27 *
28 * @see `Event`
29 * @see [Router events summary](guide/router-reference#router-events)
30 * @publicApi
31 */
32export class RouterEvent {
33 constructor(
34 /** A unique ID that the router assigns to every router navigation. */
35 id,
36 /** The URL that is the destination for this navigation. */
37 url) {
38 this.id = id;
39 this.url = url;
40 }
41}
42/**
43 * An event triggered when a navigation starts.
44 *
45 * @publicApi
46 */
47export class NavigationStart extends RouterEvent {
48 constructor(
49 /** @docsNotRequired */
50 id,
51 /** @docsNotRequired */
52 url,
53 /** @docsNotRequired */
54 navigationTrigger = 'imperative',
55 /** @docsNotRequired */
56 restoredState = null) {
57 super(id, url);
58 this.navigationTrigger = navigationTrigger;
59 this.restoredState = restoredState;
60 }
61 /** @docsNotRequired */
62 toString() {
63 return `NavigationStart(id: ${this.id}, url: '${this.url}')`;
64 }
65}
66/**
67 * An event triggered when a navigation ends successfully.
68 *
69 * @see `NavigationStart`
70 * @see `NavigationCancel`
71 * @see `NavigationError`
72 *
73 * @publicApi
74 */
75export class NavigationEnd extends RouterEvent {
76 constructor(
77 /** @docsNotRequired */
78 id,
79 /** @docsNotRequired */
80 url,
81 /** @docsNotRequired */
82 urlAfterRedirects) {
83 super(id, url);
84 this.urlAfterRedirects = urlAfterRedirects;
85 }
86 /** @docsNotRequired */
87 toString() {
88 return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;
89 }
90}
91/**
92 * An event triggered when a navigation is canceled, directly or indirectly.
93 * This can happen for several reasons including when a route guard
94 * returns `false` or initiates a redirect by returning a `UrlTree`.
95 *
96 * @see `NavigationStart`
97 * @see `NavigationEnd`
98 * @see `NavigationError`
99 *
100 * @publicApi
101 */
102export class NavigationCancel extends RouterEvent {
103 constructor(
104 /** @docsNotRequired */
105 id,
106 /** @docsNotRequired */
107 url,
108 /** @docsNotRequired */
109 reason) {
110 super(id, url);
111 this.reason = reason;
112 }
113 /** @docsNotRequired */
114 toString() {
115 return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;
116 }
117}
118/**
119 * An event triggered when a navigation fails due to an unexpected error.
120 *
121 * @see `NavigationStart`
122 * @see `NavigationEnd`
123 * @see `NavigationCancel`
124 *
125 * @publicApi
126 */
127export class NavigationError extends RouterEvent {
128 constructor(
129 /** @docsNotRequired */
130 id,
131 /** @docsNotRequired */
132 url,
133 /** @docsNotRequired */
134 error) {
135 super(id, url);
136 this.error = error;
137 }
138 /** @docsNotRequired */
139 toString() {
140 return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;
141 }
142}
143/**
144 * An event triggered when routes are recognized.
145 *
146 * @publicApi
147 */
148export class RoutesRecognized extends RouterEvent {
149 constructor(
150 /** @docsNotRequired */
151 id,
152 /** @docsNotRequired */
153 url,
154 /** @docsNotRequired */
155 urlAfterRedirects,
156 /** @docsNotRequired */
157 state) {
158 super(id, url);
159 this.urlAfterRedirects = urlAfterRedirects;
160 this.state = state;
161 }
162 /** @docsNotRequired */
163 toString() {
164 return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
165 }
166}
167/**
168 * An event triggered at the start of the Guard phase of routing.
169 *
170 * @see `GuardsCheckEnd`
171 *
172 * @publicApi
173 */
174export class GuardsCheckStart extends RouterEvent {
175 constructor(
176 /** @docsNotRequired */
177 id,
178 /** @docsNotRequired */
179 url,
180 /** @docsNotRequired */
181 urlAfterRedirects,
182 /** @docsNotRequired */
183 state) {
184 super(id, url);
185 this.urlAfterRedirects = urlAfterRedirects;
186 this.state = state;
187 }
188 toString() {
189 return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
190 }
191}
192/**
193 * An event triggered at the end of the Guard phase of routing.
194 *
195 * @see `GuardsCheckStart`
196 *
197 * @publicApi
198 */
199export class GuardsCheckEnd extends RouterEvent {
200 constructor(
201 /** @docsNotRequired */
202 id,
203 /** @docsNotRequired */
204 url,
205 /** @docsNotRequired */
206 urlAfterRedirects,
207 /** @docsNotRequired */
208 state,
209 /** @docsNotRequired */
210 shouldActivate) {
211 super(id, url);
212 this.urlAfterRedirects = urlAfterRedirects;
213 this.state = state;
214 this.shouldActivate = shouldActivate;
215 }
216 toString() {
217 return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;
218 }
219}
220/**
221 * An event triggered at the start of the Resolve phase of routing.
222 *
223 * Runs in the "resolve" phase whether or not there is anything to resolve.
224 * In future, may change to only run when there are things to be resolved.
225 *
226 * @see `ResolveEnd`
227 *
228 * @publicApi
229 */
230export class ResolveStart extends RouterEvent {
231 constructor(
232 /** @docsNotRequired */
233 id,
234 /** @docsNotRequired */
235 url,
236 /** @docsNotRequired */
237 urlAfterRedirects,
238 /** @docsNotRequired */
239 state) {
240 super(id, url);
241 this.urlAfterRedirects = urlAfterRedirects;
242 this.state = state;
243 }
244 toString() {
245 return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
246 }
247}
248/**
249 * An event triggered at the end of the Resolve phase of routing.
250 * @see `ResolveStart`.
251 *
252 * @publicApi
253 */
254export class ResolveEnd extends RouterEvent {
255 constructor(
256 /** @docsNotRequired */
257 id,
258 /** @docsNotRequired */
259 url,
260 /** @docsNotRequired */
261 urlAfterRedirects,
262 /** @docsNotRequired */
263 state) {
264 super(id, url);
265 this.urlAfterRedirects = urlAfterRedirects;
266 this.state = state;
267 }
268 toString() {
269 return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
270 }
271}
272/**
273 * An event triggered before lazy loading a route configuration.
274 *
275 * @see `RouteConfigLoadEnd`
276 *
277 * @publicApi
278 */
279export class RouteConfigLoadStart {
280 constructor(
281 /** @docsNotRequired */
282 route) {
283 this.route = route;
284 }
285 toString() {
286 return `RouteConfigLoadStart(path: ${this.route.path})`;
287 }
288}
289/**
290 * An event triggered when a route has been lazy loaded.
291 *
292 * @see `RouteConfigLoadStart`
293 *
294 * @publicApi
295 */
296export class RouteConfigLoadEnd {
297 constructor(
298 /** @docsNotRequired */
299 route) {
300 this.route = route;
301 }
302 toString() {
303 return `RouteConfigLoadEnd(path: ${this.route.path})`;
304 }
305}
306/**
307 * An event triggered at the start of the child-activation
308 * part of the Resolve phase of routing.
309 * @see `ChildActivationEnd`
310 * @see `ResolveStart`
311 *
312 * @publicApi
313 */
314export class ChildActivationStart {
315 constructor(
316 /** @docsNotRequired */
317 snapshot) {
318 this.snapshot = snapshot;
319 }
320 toString() {
321 const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
322 return `ChildActivationStart(path: '${path}')`;
323 }
324}
325/**
326 * An event triggered at the end of the child-activation part
327 * of the Resolve phase of routing.
328 * @see `ChildActivationStart`
329 * @see `ResolveStart`
330 * @publicApi
331 */
332export class ChildActivationEnd {
333 constructor(
334 /** @docsNotRequired */
335 snapshot) {
336 this.snapshot = snapshot;
337 }
338 toString() {
339 const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
340 return `ChildActivationEnd(path: '${path}')`;
341 }
342}
343/**
344 * An event triggered at the start of the activation part
345 * of the Resolve phase of routing.
346 * @see `ActivationEnd`
347 * @see `ResolveStart`
348 *
349 * @publicApi
350 */
351export class ActivationStart {
352 constructor(
353 /** @docsNotRequired */
354 snapshot) {
355 this.snapshot = snapshot;
356 }
357 toString() {
358 const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
359 return `ActivationStart(path: '${path}')`;
360 }
361}
362/**
363 * An event triggered at the end of the activation part
364 * of the Resolve phase of routing.
365 * @see `ActivationStart`
366 * @see `ResolveStart`
367 *
368 * @publicApi
369 */
370export class ActivationEnd {
371 constructor(
372 /** @docsNotRequired */
373 snapshot) {
374 this.snapshot = snapshot;
375 }
376 toString() {
377 const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
378 return `ActivationEnd(path: '${path}')`;
379 }
380}
381/**
382 * An event triggered by scrolling.
383 *
384 * @publicApi
385 */
386export class Scroll {
387 constructor(
388 /** @docsNotRequired */
389 routerEvent,
390 /** @docsNotRequired */
391 position,
392 /** @docsNotRequired */
393 anchor) {
394 this.routerEvent = routerEvent;
395 this.position = position;
396 this.anchor = anchor;
397 }
398 toString() {
399 const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;
400 return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;
401 }
402}
403//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvcm91dGVyL3NyYy9ldmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBZ0JIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXVCRztBQUNILE1BQU0sT0FBTyxXQUFXO0lBQ3RCO0lBQ0ksc0VBQXNFO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