source: trip-planner-front/node_modules/@angular/router/esm2015/src/directives/router_link.js

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

initial commit

  • Property mode set to 100644
File size: 37.1 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 */
8import { LocationStrategy } from '@angular/common';
9import { Attribute, Directive, ElementRef, HostBinding, HostListener, Input, Renderer2 } from '@angular/core';
10import { Subject } from 'rxjs';
11import { NavigationEnd } from '../events';
12import { Router } from '../router';
13import { ActivatedRoute } from '../router_state';
14/**
15 * @description
16 *
17 * When applied to an element in a template, makes that element a link
18 * that initiates navigation to a route. Navigation opens one or more routed components
19 * in one or more `<router-outlet>` locations on the page.
20 *
21 * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
22 * the following creates a static link to the route:
23 * `<a routerLink="/user/bob">link to user component</a>`
24 *
25 * You can use dynamic values to generate the link.
26 * For a dynamic link, pass an array of path segments,
27 * followed by the params for each segment.
28 * For example, `['/team', teamId, 'user', userName, {details: true}]`
29 * generates a link to `/team/11/user/bob;details=true`.
30 *
31 * Multiple static segments can be merged into one term and combined with dynamic segements.
32 * For example, `['/team/11/user', userName, {details: true}]`
33 *
34 * The input that you provide to the link is treated as a delta to the current URL.
35 * For instance, suppose the current URL is `/user/(box//aux:team)`.
36 * The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
37 * `/user/(jim//aux:team)`.
38 * See {@link Router#createUrlTree createUrlTree} for more information.
39 *
40 * @usageNotes
41 *
42 * You can use absolute or relative paths in a link, set query parameters,
43 * control how parameters are handled, and keep a history of navigation states.
44 *
45 * ### Relative link paths
46 *
47 * The first segment name can be prepended with `/`, `./`, or `../`.
48 * * If the first segment begins with `/`, the router looks up the route from the root of the
49 * app.
50 * * If the first segment begins with `./`, or doesn't begin with a slash, the router
51 * looks in the children of the current activated route.
52 * * If the first segment begins with `../`, the router goes up one level in the route tree.
53 *
54 * ### Setting and handling query params and fragments
55 *
56 * The following link adds a query parameter and a fragment to the generated URL:
57 *
58 * ```
59 * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
60 * link to user component
61 * </a>
62 * ```
63 * By default, the directive constructs the new URL using the given query parameters.
64 * The example generates the link: `/user/bob?debug=true#education`.
65 *
66 * You can instruct the directive to handle query parameters differently
67 * by specifying the `queryParamsHandling` option in the link.
68 * Allowed values are:
69 *
70 * - `'merge'`: Merge the given `queryParams` into the current query params.
71 * - `'preserve'`: Preserve the current query params.
72 *
73 * For example:
74 *
75 * ```
76 * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" queryParamsHandling="merge">
77 * link to user component
78 * </a>
79 * ```
80 *
81 * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.
82 *
83 * ### Preserving navigation history
84 *
85 * You can provide a `state` value to be persisted to the browser's
86 * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
87 * For example:
88 *
89 * ```
90 * <a [routerLink]="['/user/bob']" [state]="{tracingId: 123}">
91 * link to user component
92 * </a>
93 * ```
94 *
95 * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved
96 * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`
97 * event:
98 *
99 * ```
100 * // Get NavigationStart events
101 * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {
102 * const navigation = router.getCurrentNavigation();
103 * tracingService.trace({id: navigation.extras.state.tracingId});
104 * });
105 * ```
106 *
107 * @ngModule RouterModule
108 *
109 * @publicApi
110 */
111export class RouterLink {
112 constructor(router, route, tabIndex, renderer, el) {
113 this.router = router;
114 this.route = route;
115 this.commands = [];
116 /** @internal */
117 this.onChanges = new Subject();
118 if (tabIndex == null) {
119 renderer.setAttribute(el.nativeElement, 'tabindex', '0');
120 }
121 }
122 /** @nodoc */
123 ngOnChanges(changes) {
124 // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes
125 // to the RouterLinks it's tracking.
126 this.onChanges.next(this);
127 }
128 /**
129 * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
130 * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
131 * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
132 * - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
133 * @see {@link Router#createUrlTree Router#createUrlTree}
134 */
135 set routerLink(commands) {
136 if (commands != null) {
137 this.commands = Array.isArray(commands) ? commands : [commands];
138 }
139 else {
140 this.commands = [];
141 }
142 }
143 /** @nodoc */
144 onClick() {
145 const extras = {
146 skipLocationChange: attrBoolValue(this.skipLocationChange),
147 replaceUrl: attrBoolValue(this.replaceUrl),
148 state: this.state,
149 };
150 this.router.navigateByUrl(this.urlTree, extras);
151 return true;
152 }
153 get urlTree() {
154 return this.router.createUrlTree(this.commands, {
155 // If the `relativeTo` input is not defined, we want to use `this.route` by default.
156 // Otherwise, we should use the value provided by the user in the input.
157 relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,
158 queryParams: this.queryParams,
159 fragment: this.fragment,
160 queryParamsHandling: this.queryParamsHandling,
161 preserveFragment: attrBoolValue(this.preserveFragment),
162 });
163 }
164}
165RouterLink.decorators = [
166 { type: Directive, args: [{ selector: ':not(a):not(area)[routerLink]' },] }
167];
168RouterLink.ctorParameters = () => [
169 { type: Router },
170 { type: ActivatedRoute },
171 { type: String, decorators: [{ type: Attribute, args: ['tabindex',] }] },
172 { type: Renderer2 },
173 { type: ElementRef }
174];
175RouterLink.propDecorators = {
176 queryParams: [{ type: Input }],
177 fragment: [{ type: Input }],
178 queryParamsHandling: [{ type: Input }],
179 preserveFragment: [{ type: Input }],
180 skipLocationChange: [{ type: Input }],
181 replaceUrl: [{ type: Input }],
182 state: [{ type: Input }],
183 relativeTo: [{ type: Input }],
184 routerLink: [{ type: Input }],
185 onClick: [{ type: HostListener, args: ['click',] }]
186};
187/**
188 * @description
189 *
190 * Lets you link to specific routes in your app.
191 *
192 * See `RouterLink` for more information.
193 *
194 * @ngModule RouterModule
195 *
196 * @publicApi
197 */
198export class RouterLinkWithHref {
199 constructor(router, route, locationStrategy) {
200 this.router = router;
201 this.route = route;
202 this.locationStrategy = locationStrategy;
203 this.commands = [];
204 /** @internal */
205 this.onChanges = new Subject();
206 this.subscription = router.events.subscribe((s) => {
207 if (s instanceof NavigationEnd) {
208 this.updateTargetUrlAndHref();
209 }
210 });
211 }
212 /**
213 * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
214 * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
215 * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
216 * - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
217 * @see {@link Router#createUrlTree Router#createUrlTree}
218 */
219 set routerLink(commands) {
220 if (commands != null) {
221 this.commands = Array.isArray(commands) ? commands : [commands];
222 }
223 else {
224 this.commands = [];
225 }
226 }
227 /** @nodoc */
228 ngOnChanges(changes) {
229 this.updateTargetUrlAndHref();
230 this.onChanges.next(this);
231 }
232 /** @nodoc */
233 ngOnDestroy() {
234 this.subscription.unsubscribe();
235 }
236 /** @nodoc */
237 onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
238 if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {
239 return true;
240 }
241 if (typeof this.target === 'string' && this.target != '_self') {
242 return true;
243 }
244 const extras = {
245 skipLocationChange: attrBoolValue(this.skipLocationChange),
246 replaceUrl: attrBoolValue(this.replaceUrl),
247 state: this.state
248 };
249 this.router.navigateByUrl(this.urlTree, extras);
250 return false;
251 }
252 updateTargetUrlAndHref() {
253 this.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree));
254 }
255 get urlTree() {
256 return this.router.createUrlTree(this.commands, {
257 // If the `relativeTo` input is not defined, we want to use `this.route` by default.
258 // Otherwise, we should use the value provided by the user in the input.
259 relativeTo: this.relativeTo !== undefined ? this.relativeTo : this.route,
260 queryParams: this.queryParams,
261 fragment: this.fragment,
262 queryParamsHandling: this.queryParamsHandling,
263 preserveFragment: attrBoolValue(this.preserveFragment),
264 });
265 }
266}
267RouterLinkWithHref.decorators = [
268 { type: Directive, args: [{ selector: 'a[routerLink],area[routerLink]' },] }
269];
270RouterLinkWithHref.ctorParameters = () => [
271 { type: Router },
272 { type: ActivatedRoute },
273 { type: LocationStrategy }
274];
275RouterLinkWithHref.propDecorators = {
276 target: [{ type: HostBinding, args: ['attr.target',] }, { type: Input }],
277 queryParams: [{ type: Input }],
278 fragment: [{ type: Input }],
279 queryParamsHandling: [{ type: Input }],
280 preserveFragment: [{ type: Input }],
281 skipLocationChange: [{ type: Input }],
282 replaceUrl: [{ type: Input }],
283 state: [{ type: Input }],
284 relativeTo: [{ type: Input }],
285 href: [{ type: HostBinding }],
286 routerLink: [{ type: Input }],
287 onClick: [{ type: HostListener, args: ['click',
288 ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey'],] }]
289};
290function attrBoolValue(s) {
291 return s === '' || !!s;
292}
293//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGVyX2xpbmsuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9yb3V0ZXIvc3JjL2RpcmVjdGl2ZXMvcm91dGVyX2xpbmsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDakQsT0FBTyxFQUFDLFNBQVMsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLFdBQVcsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUF3QixTQUFTLEVBQWdCLE1BQU0sZUFBZSxDQUFDO0FBQ2pKLE9BQU8sRUFBQyxPQUFPLEVB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