@angular/router 10.0.1 → 10.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/router-testing.umd.js +324 -258
- package/bundles/router-testing.umd.js.map +1 -1
- package/bundles/router-testing.umd.min.js +3 -10
- package/bundles/router-testing.umd.min.js.map +1 -1
- package/bundles/router-upgrade.umd.js +1 -1
- package/bundles/router-upgrade.umd.js.map +1 -1
- package/bundles/router-upgrade.umd.min.js +1 -1
- package/bundles/router-upgrade.umd.min.js.map +1 -1
- package/bundles/router.umd.js +578 -536
- package/bundles/router.umd.js.map +1 -1
- package/bundles/router.umd.min.js +28 -47
- package/bundles/router.umd.min.js.map +1 -1
- package/esm2015/src/config.js +1 -1
- package/esm2015/src/directives/router_link.js +3 -5
- package/esm2015/src/events.js +29 -7
- package/esm2015/src/interfaces.js +1 -1
- package/esm2015/src/router.js +32 -23
- package/esm2015/src/router_module.js +38 -45
- package/esm2015/src/router_state.js +14 -4
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +113 -81
- package/fesm2015/router.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm2015/testing.js.map +1 -1
- package/fesm2015/upgrade.js +1 -1
- package/fesm2015/upgrade.js.map +1 -1
- package/package.json +4 -4
- package/router.d.ts +310 -156
- package/router.metadata.json +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/upgrade/upgrade.d.ts +1 -1
- package/upgrade.d.ts +1 -1
package/bundles/router.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v10.0.
|
|
2
|
+
* @license Angular v10.0.5
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,232 +10,305 @@
|
|
|
10
10
|
(global = global || self, factory((global.ng = global.ng || {}, global.ng.router = {}), global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators));
|
|
11
11
|
}(this, (function (exports, common, core, rxjs, operators) { 'use strict';
|
|
12
12
|
|
|
13
|
-
/*! *****************************************************************************
|
|
14
|
-
Copyright (c) Microsoft Corporation.
|
|
15
|
-
|
|
16
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
-
purpose with or without fee is hereby granted.
|
|
18
|
-
|
|
19
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
-
***************************************************************************** */
|
|
27
|
-
/* global Reflect, Promise */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
function __extends(d, b) {
|
|
37
|
-
extendStatics(d, b);
|
|
38
|
-
function __() { this.constructor = d; }
|
|
39
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
function __rest(s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function __decorate(decorators, target, key, desc) {
|
|
66
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
67
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
function
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
13
|
+
/*! *****************************************************************************
|
|
14
|
+
Copyright (c) Microsoft Corporation.
|
|
15
|
+
|
|
16
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
17
|
+
purpose with or without fee is hereby granted.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
20
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
21
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
22
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
23
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
24
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
26
|
+
***************************************************************************** */
|
|
27
|
+
/* global Reflect, Promise */
|
|
28
|
+
var extendStatics = function (d, b) {
|
|
29
|
+
extendStatics = Object.setPrototypeOf ||
|
|
30
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31
|
+
function (d, b) { for (var p in b)
|
|
32
|
+
if (b.hasOwnProperty(p))
|
|
33
|
+
d[p] = b[p]; };
|
|
34
|
+
return extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
function __extends(d, b) {
|
|
37
|
+
extendStatics(d, b);
|
|
38
|
+
function __() { this.constructor = d; }
|
|
39
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
40
|
+
}
|
|
41
|
+
var __assign = function () {
|
|
42
|
+
__assign = Object.assign || function __assign(t) {
|
|
43
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
44
|
+
s = arguments[i];
|
|
45
|
+
for (var p in s)
|
|
46
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
47
|
+
t[p] = s[p];
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
50
|
+
};
|
|
51
|
+
return __assign.apply(this, arguments);
|
|
52
|
+
};
|
|
53
|
+
function __rest(s, e) {
|
|
54
|
+
var t = {};
|
|
55
|
+
for (var p in s)
|
|
56
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
57
|
+
t[p] = s[p];
|
|
58
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
59
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
60
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
61
|
+
t[p[i]] = s[p[i]];
|
|
62
|
+
}
|
|
63
|
+
return t;
|
|
64
|
+
}
|
|
65
|
+
function __decorate(decorators, target, key, desc) {
|
|
66
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
67
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
68
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
69
|
+
else
|
|
70
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
71
|
+
if (d = decorators[i])
|
|
72
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
73
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
74
|
+
}
|
|
75
|
+
function __param(paramIndex, decorator) {
|
|
76
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
77
|
+
}
|
|
78
|
+
function __metadata(metadataKey, metadataValue) {
|
|
79
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
80
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
81
|
+
}
|
|
82
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
83
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
84
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
85
|
+
function fulfilled(value) { try {
|
|
86
|
+
step(generator.next(value));
|
|
87
|
+
}
|
|
88
|
+
catch (e) {
|
|
89
|
+
reject(e);
|
|
90
|
+
} }
|
|
91
|
+
function rejected(value) { try {
|
|
92
|
+
step(generator["throw"](value));
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
reject(e);
|
|
96
|
+
} }
|
|
97
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
98
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function __generator(thisArg, body) {
|
|
102
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
103
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
104
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
105
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
106
|
+
function step(op) {
|
|
107
|
+
if (f)
|
|
108
|
+
throw new TypeError("Generator is already executing.");
|
|
109
|
+
while (_)
|
|
110
|
+
try {
|
|
111
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
112
|
+
return t;
|
|
113
|
+
if (y = 0, t)
|
|
114
|
+
op = [op[0] & 2, t.value];
|
|
115
|
+
switch (op[0]) {
|
|
116
|
+
case 0:
|
|
117
|
+
case 1:
|
|
118
|
+
t = op;
|
|
119
|
+
break;
|
|
120
|
+
case 4:
|
|
121
|
+
_.label++;
|
|
122
|
+
return { value: op[1], done: false };
|
|
123
|
+
case 5:
|
|
124
|
+
_.label++;
|
|
125
|
+
y = op[1];
|
|
126
|
+
op = [0];
|
|
127
|
+
continue;
|
|
128
|
+
case 7:
|
|
129
|
+
op = _.ops.pop();
|
|
130
|
+
_.trys.pop();
|
|
131
|
+
continue;
|
|
132
|
+
default:
|
|
133
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
134
|
+
_ = 0;
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
138
|
+
_.label = op[1];
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
142
|
+
_.label = t[1];
|
|
143
|
+
t = op;
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
if (t && _.label < t[2]) {
|
|
147
|
+
_.label = t[2];
|
|
148
|
+
_.ops.push(op);
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
if (t[2])
|
|
152
|
+
_.ops.pop();
|
|
153
|
+
_.trys.pop();
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
op = body.call(thisArg, _);
|
|
157
|
+
}
|
|
158
|
+
catch (e) {
|
|
159
|
+
op = [6, e];
|
|
160
|
+
y = 0;
|
|
161
|
+
}
|
|
162
|
+
finally {
|
|
163
|
+
f = t = 0;
|
|
164
|
+
}
|
|
165
|
+
if (op[0] & 5)
|
|
166
|
+
throw op[1];
|
|
167
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
171
|
+
if (k2 === undefined)
|
|
172
|
+
k2 = k;
|
|
173
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
174
|
+
}) : (function (o, m, k, k2) {
|
|
175
|
+
if (k2 === undefined)
|
|
176
|
+
k2 = k;
|
|
177
|
+
o[k2] = m[k];
|
|
178
|
+
});
|
|
179
|
+
function __exportStar(m, exports) {
|
|
180
|
+
for (var p in m)
|
|
181
|
+
if (p !== "default" && !exports.hasOwnProperty(p))
|
|
182
|
+
__createBinding(exports, m, p);
|
|
183
|
+
}
|
|
184
|
+
function __values(o) {
|
|
185
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
186
|
+
if (m)
|
|
187
|
+
return m.call(o);
|
|
188
|
+
if (o && typeof o.length === "number")
|
|
189
|
+
return {
|
|
190
|
+
next: function () {
|
|
191
|
+
if (o && i >= o.length)
|
|
192
|
+
o = void 0;
|
|
193
|
+
return { value: o && o[i++], done: !o };
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
197
|
+
}
|
|
198
|
+
function __read(o, n) {
|
|
199
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
200
|
+
if (!m)
|
|
201
|
+
return o;
|
|
202
|
+
var i = m.call(o), r, ar = [], e;
|
|
203
|
+
try {
|
|
204
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
205
|
+
ar.push(r.value);
|
|
206
|
+
}
|
|
207
|
+
catch (error) {
|
|
208
|
+
e = { error: error };
|
|
209
|
+
}
|
|
210
|
+
finally {
|
|
211
|
+
try {
|
|
212
|
+
if (r && !r.done && (m = i["return"]))
|
|
213
|
+
m.call(i);
|
|
214
|
+
}
|
|
215
|
+
finally {
|
|
216
|
+
if (e)
|
|
217
|
+
throw e.error;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
return ar;
|
|
221
|
+
}
|
|
222
|
+
function __spread() {
|
|
223
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
224
|
+
ar = ar.concat(__read(arguments[i]));
|
|
225
|
+
return ar;
|
|
226
|
+
}
|
|
227
|
+
function __spreadArrays() {
|
|
228
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
229
|
+
s += arguments[i].length;
|
|
230
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
231
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
232
|
+
r[k] = a[j];
|
|
233
|
+
return r;
|
|
234
|
+
}
|
|
235
|
+
;
|
|
236
|
+
function __await(v) {
|
|
237
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
238
|
+
}
|
|
239
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
240
|
+
if (!Symbol.asyncIterator)
|
|
241
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
242
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
243
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
244
|
+
function verb(n) { if (g[n])
|
|
245
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
246
|
+
function resume(n, v) { try {
|
|
247
|
+
step(g[n](v));
|
|
248
|
+
}
|
|
249
|
+
catch (e) {
|
|
250
|
+
settle(q[0][3], e);
|
|
251
|
+
} }
|
|
252
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
253
|
+
function fulfill(value) { resume("next", value); }
|
|
254
|
+
function reject(value) { resume("throw", value); }
|
|
255
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
256
|
+
resume(q[0][0], q[0][1]); }
|
|
257
|
+
}
|
|
258
|
+
function __asyncDelegator(o) {
|
|
259
|
+
var i, p;
|
|
260
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
261
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
262
|
+
}
|
|
263
|
+
function __asyncValues(o) {
|
|
264
|
+
if (!Symbol.asyncIterator)
|
|
265
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
266
|
+
var m = o[Symbol.asyncIterator], i;
|
|
267
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
268
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
269
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
270
|
+
}
|
|
271
|
+
function __makeTemplateObject(cooked, raw) {
|
|
272
|
+
if (Object.defineProperty) {
|
|
273
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
274
|
+
}
|
|
275
|
+
else {
|
|
276
|
+
cooked.raw = raw;
|
|
277
|
+
}
|
|
278
|
+
return cooked;
|
|
279
|
+
}
|
|
280
|
+
;
|
|
281
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
282
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
283
|
+
}) : function (o, v) {
|
|
284
|
+
o["default"] = v;
|
|
285
|
+
};
|
|
286
|
+
function __importStar(mod) {
|
|
287
|
+
if (mod && mod.__esModule)
|
|
288
|
+
return mod;
|
|
289
|
+
var result = {};
|
|
290
|
+
if (mod != null)
|
|
291
|
+
for (var k in mod)
|
|
292
|
+
if (Object.hasOwnProperty.call(mod, k))
|
|
293
|
+
__createBinding(result, mod, k);
|
|
294
|
+
__setModuleDefault(result, mod);
|
|
295
|
+
return result;
|
|
296
|
+
}
|
|
297
|
+
function __importDefault(mod) {
|
|
298
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
299
|
+
}
|
|
300
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
301
|
+
if (!privateMap.has(receiver)) {
|
|
302
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
303
|
+
}
|
|
304
|
+
return privateMap.get(receiver);
|
|
305
|
+
}
|
|
306
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
307
|
+
if (!privateMap.has(receiver)) {
|
|
308
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
309
|
+
}
|
|
310
|
+
privateMap.set(receiver, value);
|
|
311
|
+
return value;
|
|
239
312
|
}
|
|
240
313
|
|
|
241
314
|
/**
|
|
@@ -249,7 +322,7 @@
|
|
|
249
322
|
* Base for events the router goes through, as opposed to events tied to a specific
|
|
250
323
|
* route. Fired one time for any given navigation.
|
|
251
324
|
*
|
|
252
|
-
*
|
|
325
|
+
* The following code shows how a class subscribes to router events.
|
|
253
326
|
*
|
|
254
327
|
* ```ts
|
|
255
328
|
* class MyService {
|
|
@@ -264,6 +337,7 @@
|
|
|
264
337
|
* ```
|
|
265
338
|
*
|
|
266
339
|
* @see `Event`
|
|
340
|
+
* @see [Router events summary](guide/router#router-events)
|
|
267
341
|
* @publicApi
|
|
268
342
|
*/
|
|
269
343
|
var RouterEvent = /** @class */ (function () {
|
|
@@ -309,6 +383,10 @@
|
|
|
309
383
|
/**
|
|
310
384
|
* An event triggered when a navigation ends successfully.
|
|
311
385
|
*
|
|
386
|
+
* @see `NavigationStart`
|
|
387
|
+
* @see `NavigationCancel`
|
|
388
|
+
* @see `NavigationError`
|
|
389
|
+
*
|
|
312
390
|
* @publicApi
|
|
313
391
|
*/
|
|
314
392
|
var NavigationEnd = /** @class */ (function (_super) {
|
|
@@ -332,10 +410,13 @@
|
|
|
332
410
|
}(RouterEvent));
|
|
333
411
|
/**
|
|
334
412
|
* An event triggered when a navigation is canceled, directly or indirectly.
|
|
335
|
-
*
|
|
336
|
-
* This can happen when a [route guard](guide/router#milestone-5-route-guards)
|
|
413
|
+
* This can happen when a route guard
|
|
337
414
|
* returns `false` or initiates a redirect by returning a `UrlTree`.
|
|
338
415
|
*
|
|
416
|
+
* @see `NavigationStart`
|
|
417
|
+
* @see `NavigationEnd`
|
|
418
|
+
* @see `NavigationError`
|
|
419
|
+
*
|
|
339
420
|
* @publicApi
|
|
340
421
|
*/
|
|
341
422
|
var NavigationCancel = /** @class */ (function (_super) {
|
|
@@ -360,6 +441,10 @@
|
|
|
360
441
|
/**
|
|
361
442
|
* An event triggered when a navigation fails due to an unexpected error.
|
|
362
443
|
*
|
|
444
|
+
* @see `NavigationStart`
|
|
445
|
+
* @see `NavigationEnd`
|
|
446
|
+
* @see `NavigationCancel`
|
|
447
|
+
*
|
|
363
448
|
* @publicApi
|
|
364
449
|
*/
|
|
365
450
|
var NavigationError = /** @class */ (function (_super) {
|
|
@@ -382,7 +467,7 @@
|
|
|
382
467
|
return NavigationError;
|
|
383
468
|
}(RouterEvent));
|
|
384
469
|
/**
|
|
385
|
-
*An event triggered when routes are recognized.
|
|
470
|
+
* An event triggered when routes are recognized.
|
|
386
471
|
*
|
|
387
472
|
* @publicApi
|
|
388
473
|
*/
|
|
@@ -411,6 +496,8 @@
|
|
|
411
496
|
/**
|
|
412
497
|
* An event triggered at the start of the Guard phase of routing.
|
|
413
498
|
*
|
|
499
|
+
* @see `GuardsCheckEnd`
|
|
500
|
+
*
|
|
414
501
|
* @publicApi
|
|
415
502
|
*/
|
|
416
503
|
var GuardsCheckStart = /** @class */ (function (_super) {
|
|
@@ -437,6 +524,8 @@
|
|
|
437
524
|
/**
|
|
438
525
|
* An event triggered at the end of the Guard phase of routing.
|
|
439
526
|
*
|
|
527
|
+
* @see `GuardsCheckStart`
|
|
528
|
+
*
|
|
440
529
|
* @publicApi
|
|
441
530
|
*/
|
|
442
531
|
var GuardsCheckEnd = /** @class */ (function (_super) {
|
|
@@ -469,6 +558,8 @@
|
|
|
469
558
|
* Runs in the "resolve" phase whether or not there is anything to resolve.
|
|
470
559
|
* In future, may change to only run when there are things to be resolved.
|
|
471
560
|
*
|
|
561
|
+
* @see `ResolveEnd`
|
|
562
|
+
*
|
|
472
563
|
* @publicApi
|
|
473
564
|
*/
|
|
474
565
|
var ResolveStart = /** @class */ (function (_super) {
|
|
@@ -522,6 +613,8 @@
|
|
|
522
613
|
/**
|
|
523
614
|
* An event triggered before lazy loading a route configuration.
|
|
524
615
|
*
|
|
616
|
+
* @see `RouteConfigLoadEnd`
|
|
617
|
+
*
|
|
525
618
|
* @publicApi
|
|
526
619
|
*/
|
|
527
620
|
var RouteConfigLoadStart = /** @class */ (function () {
|
|
@@ -538,6 +631,8 @@
|
|
|
538
631
|
/**
|
|
539
632
|
* An event triggered when a route has been lazy loaded.
|
|
540
633
|
*
|
|
634
|
+
* @see `RouteConfigLoadStart`
|
|
635
|
+
*
|
|
541
636
|
* @publicApi
|
|
542
637
|
*/
|
|
543
638
|
var RouteConfigLoadEnd = /** @class */ (function () {
|
|
@@ -575,7 +670,7 @@
|
|
|
575
670
|
* An event triggered at the end of the child-activation part
|
|
576
671
|
* of the Resolve phase of routing.
|
|
577
672
|
* @see `ChildActivationStart`
|
|
578
|
-
* @see `ResolveStart`
|
|
673
|
+
* @see `ResolveStart`
|
|
579
674
|
* @publicApi
|
|
580
675
|
*/
|
|
581
676
|
var ChildActivationEnd = /** @class */ (function () {
|
|
@@ -593,7 +688,7 @@
|
|
|
593
688
|
/**
|
|
594
689
|
* An event triggered at the start of the activation part
|
|
595
690
|
* of the Resolve phase of routing.
|
|
596
|
-
* @see ActivationEnd`
|
|
691
|
+
* @see `ActivationEnd`
|
|
597
692
|
* @see `ResolveStart`
|
|
598
693
|
*
|
|
599
694
|
* @publicApi
|
|
@@ -673,11 +768,11 @@
|
|
|
673
768
|
var ɵEmptyOutletComponent = /** @class */ (function () {
|
|
674
769
|
function ɵEmptyOutletComponent() {
|
|
675
770
|
}
|
|
676
|
-
ɵEmptyOutletComponent.decorators = [
|
|
677
|
-
{ type: core.Component, args: [{ template: "<router-outlet></router-outlet>" },] }
|
|
678
|
-
];
|
|
679
771
|
return ɵEmptyOutletComponent;
|
|
680
772
|
}());
|
|
773
|
+
ɵEmptyOutletComponent.decorators = [
|
|
774
|
+
{ type: core.Component, args: [{ template: "<router-outlet></router-outlet>" },] }
|
|
775
|
+
];
|
|
681
776
|
|
|
682
777
|
/**
|
|
683
778
|
* @license
|
|
@@ -861,7 +956,7 @@
|
|
|
861
956
|
*/
|
|
862
957
|
function standardizeConfig(r) {
|
|
863
958
|
var children = r.children && r.children.map(standardizeConfig);
|
|
864
|
-
var c = children ?
|
|
959
|
+
var c = children ? Object.assign(Object.assign({}, r), { children: children }) : Object.assign({}, r);
|
|
865
960
|
if (!c.component && (children || c.loadChildren) && (c.outlet && c.outlet !== PRIMARY_OUTLET)) {
|
|
866
961
|
c.component = ɵEmptyOutletComponent;
|
|
867
962
|
}
|
|
@@ -1671,13 +1766,6 @@
|
|
|
1671
1766
|
return map;
|
|
1672
1767
|
}
|
|
1673
1768
|
|
|
1674
|
-
/**
|
|
1675
|
-
* @license
|
|
1676
|
-
* Copyright Google LLC All Rights Reserved.
|
|
1677
|
-
*
|
|
1678
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
1679
|
-
* found in the LICENSE file at https://angular.io/license
|
|
1680
|
-
*/
|
|
1681
1769
|
/**
|
|
1682
1770
|
* Represents the state of the router as a tree of activated routes.
|
|
1683
1771
|
*
|
|
@@ -1688,7 +1776,8 @@
|
|
|
1688
1776
|
* and the resolved data.
|
|
1689
1777
|
* Use the `ActivatedRoute` properties to traverse the tree from any node.
|
|
1690
1778
|
*
|
|
1691
|
-
*
|
|
1779
|
+
* The following fragment shows how a component gets the root node
|
|
1780
|
+
* of the current state to establish its own route tree:
|
|
1692
1781
|
*
|
|
1693
1782
|
* ```
|
|
1694
1783
|
* @Component({templateUrl:'template.html'})
|
|
@@ -1704,6 +1793,7 @@
|
|
|
1704
1793
|
* ```
|
|
1705
1794
|
*
|
|
1706
1795
|
* @see `ActivatedRoute`
|
|
1796
|
+
* @see [Getting route information](guide/router#getting-route-information)
|
|
1707
1797
|
*
|
|
1708
1798
|
* @publicApi
|
|
1709
1799
|
*/
|
|
@@ -1747,9 +1837,14 @@
|
|
|
1747
1837
|
* that is loaded in an outlet.
|
|
1748
1838
|
* Use to traverse the `RouterState` tree and extract information from nodes.
|
|
1749
1839
|
*
|
|
1840
|
+
* The following example shows how to construct a component using information from a
|
|
1841
|
+
* currently activated route.
|
|
1842
|
+
*
|
|
1750
1843
|
* {@example router/activated-route/module.ts region="activated-route"
|
|
1751
1844
|
* header="activated-route.component.ts"}
|
|
1752
1845
|
*
|
|
1846
|
+
* @see [Getting route information](guide/router#getting-route-information)
|
|
1847
|
+
*
|
|
1753
1848
|
* @publicApi
|
|
1754
1849
|
*/
|
|
1755
1850
|
var ActivatedRoute = /** @class */ (function () {
|
|
@@ -1875,13 +1970,13 @@
|
|
|
1875
1970
|
inheritingStartingFrom = pathFromRoot.length - 1;
|
|
1876
1971
|
while (inheritingStartingFrom >= 1) {
|
|
1877
1972
|
var current = pathFromRoot[inheritingStartingFrom];
|
|
1878
|
-
var
|
|
1973
|
+
var parent = pathFromRoot[inheritingStartingFrom - 1];
|
|
1879
1974
|
// current route is an empty path => inherits its parent's params and data
|
|
1880
1975
|
if (current.routeConfig && current.routeConfig.path === '') {
|
|
1881
1976
|
inheritingStartingFrom--;
|
|
1882
1977
|
// parent is componentless => current route should inherit its params and data
|
|
1883
1978
|
}
|
|
1884
|
-
else if (!
|
|
1979
|
+
else if (!parent.component) {
|
|
1885
1980
|
inheritingStartingFrom--;
|
|
1886
1981
|
}
|
|
1887
1982
|
else {
|
|
@@ -1894,9 +1989,9 @@
|
|
|
1894
1989
|
/** @internal */
|
|
1895
1990
|
function flattenInherited(pathFromRoot) {
|
|
1896
1991
|
return pathFromRoot.reduce(function (res, curr) {
|
|
1897
|
-
var params =
|
|
1898
|
-
var data =
|
|
1899
|
-
var resolve =
|
|
1992
|
+
var params = Object.assign(Object.assign({}, res.params), curr.params);
|
|
1993
|
+
var data = Object.assign(Object.assign({}, res.data), curr.data);
|
|
1994
|
+
var resolve = Object.assign(Object.assign({}, res.resolve), curr._resolvedData);
|
|
1900
1995
|
return { params: params, data: data, resolve: resolve };
|
|
1901
1996
|
}, { params: {}, data: {}, resolve: {} });
|
|
1902
1997
|
}
|
|
@@ -1907,6 +2002,9 @@
|
|
|
1907
2002
|
* outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to
|
|
1908
2003
|
* traverse the router state tree.
|
|
1909
2004
|
*
|
|
2005
|
+
* The following example initializes a component with route information extracted
|
|
2006
|
+
* from the snapshot of the root node at the time of creation.
|
|
2007
|
+
*
|
|
1910
2008
|
* ```
|
|
1911
2009
|
* @Component({templateUrl:'./my-component.html'})
|
|
1912
2010
|
* class MyComponent {
|
|
@@ -2024,8 +2122,8 @@
|
|
|
2024
2122
|
* This is a tree of activated route snapshots. Every node in this tree knows about
|
|
2025
2123
|
* the "consumed" URL segments, the extracted parameters, and the resolved data.
|
|
2026
2124
|
*
|
|
2027
|
-
*
|
|
2028
|
-
*
|
|
2125
|
+
* The following example shows how a component is initialized with information
|
|
2126
|
+
* from the snapshot of the root node's state at the time of creation.
|
|
2029
2127
|
*
|
|
2030
2128
|
* ```
|
|
2031
2129
|
* @Component({templateUrl:'template.html'})
|
|
@@ -2106,13 +2204,6 @@
|
|
|
2106
2204
|
(!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));
|
|
2107
2205
|
}
|
|
2108
2206
|
|
|
2109
|
-
/**
|
|
2110
|
-
* @license
|
|
2111
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2112
|
-
*
|
|
2113
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2114
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2115
|
-
*/
|
|
2116
2207
|
function createRouterState(routeReuseStrategy, curr, prevState) {
|
|
2117
2208
|
var root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);
|
|
2118
2209
|
return new RouterState(root, curr);
|
|
@@ -2177,13 +2268,6 @@
|
|
|
2177
2268
|
return new ActivatedRoute(new rxjs.BehaviorSubject(c.url), new rxjs.BehaviorSubject(c.params), new rxjs.BehaviorSubject(c.queryParams), new rxjs.BehaviorSubject(c.fragment), new rxjs.BehaviorSubject(c.data), c.outlet, c.component, c);
|
|
2178
2269
|
}
|
|
2179
2270
|
|
|
2180
|
-
/**
|
|
2181
|
-
* @license
|
|
2182
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2183
|
-
*
|
|
2184
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2185
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2186
|
-
*/
|
|
2187
2271
|
function createUrlTree(route, urlTree, commands, queryParams, fragment) {
|
|
2188
2272
|
if (commands.length === 0) {
|
|
2189
2273
|
return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);
|
|
@@ -2466,13 +2550,11 @@
|
|
|
2466
2550
|
* Use of this source code is governed by an MIT-style license that can be
|
|
2467
2551
|
* found in the LICENSE file at https://angular.io/license
|
|
2468
2552
|
*/
|
|
2469
|
-
var activateRoutes = function (rootContexts, routeReuseStrategy, forwardEvent) {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
});
|
|
2475
|
-
};
|
|
2553
|
+
var activateRoutes = function (rootContexts, routeReuseStrategy, forwardEvent) { return operators.map(function (t) {
|
|
2554
|
+
new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent)
|
|
2555
|
+
.activate(rootContexts);
|
|
2556
|
+
return t;
|
|
2557
|
+
}); };
|
|
2476
2558
|
var ActivateRoutes = /** @class */ (function () {
|
|
2477
2559
|
function ActivateRoutes(routeReuseStrategy, futureState, currState, forwardEvent) {
|
|
2478
2560
|
this.routeReuseStrategy = routeReuseStrategy;
|
|
@@ -2680,13 +2762,6 @@
|
|
|
2680
2762
|
return guard && isFunction(guard.canDeactivate);
|
|
2681
2763
|
}
|
|
2682
2764
|
|
|
2683
|
-
/**
|
|
2684
|
-
* @license
|
|
2685
|
-
* Copyright Google LLC All Rights Reserved.
|
|
2686
|
-
*
|
|
2687
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
2688
|
-
* found in the LICENSE file at https://angular.io/license
|
|
2689
|
-
*/
|
|
2690
2765
|
var NoMatch = /** @class */ (function () {
|
|
2691
2766
|
function NoMatch(segmentGroup) {
|
|
2692
2767
|
this.segmentGroup = segmentGroup || null;
|
|
@@ -2748,9 +2823,7 @@
|
|
|
2748
2823
|
ApplyRedirects.prototype.match = function (tree) {
|
|
2749
2824
|
var _this = this;
|
|
2750
2825
|
var expanded$ = this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET);
|
|
2751
|
-
var mapped$ = expanded$.pipe(operators.map(function (rootSegmentGroup) {
|
|
2752
|
-
return _this.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment);
|
|
2753
|
-
}));
|
|
2826
|
+
var mapped$ = expanded$.pipe(operators.map(function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment); }));
|
|
2754
2827
|
return mapped$.pipe(operators.catchError(function (e) {
|
|
2755
2828
|
if (e instanceof NoMatch) {
|
|
2756
2829
|
throw _this.noMatchError(e);
|
|
@@ -2876,9 +2949,7 @@
|
|
|
2876
2949
|
return rxjs.of(new UrlSegmentGroup(consumedSegments, {}));
|
|
2877
2950
|
}
|
|
2878
2951
|
var expanded$ = _this.expandSegment(childModule, segmentGroup, childConfig, slicedSegments, PRIMARY_OUTLET, true);
|
|
2879
|
-
return expanded$.pipe(operators.map(function (cs) {
|
|
2880
|
-
return new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children);
|
|
2881
|
-
}));
|
|
2952
|
+
return expanded$.pipe(operators.map(function (cs) { return new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children); }));
|
|
2882
2953
|
}));
|
|
2883
2954
|
};
|
|
2884
2955
|
ApplyRedirects.prototype.getChildConfig = function (ngModule, route, segments) {
|
|
@@ -3074,7 +3145,7 @@
|
|
|
3074
3145
|
}
|
|
3075
3146
|
finally { if (e_2) throw e_2.error; }
|
|
3076
3147
|
}
|
|
3077
|
-
return
|
|
3148
|
+
return Object.assign(Object.assign({}, children), res);
|
|
3078
3149
|
}
|
|
3079
3150
|
function createChildrenForEmptySegments(routes, primarySegmentGroup) {
|
|
3080
3151
|
var e_3, _a;
|
|
@@ -3123,7 +3194,7 @@
|
|
|
3123
3194
|
function applyRedirects$1(moduleInjector, configLoader, urlSerializer, config) {
|
|
3124
3195
|
return function (source) {
|
|
3125
3196
|
return source.pipe(operators.switchMap(function (t) { return applyRedirects(moduleInjector, configLoader, urlSerializer, t.extractedUrl, config)
|
|
3126
|
-
.pipe(operators.map(function (urlAfterRedirects) { return (
|
|
3197
|
+
.pipe(operators.map(function (urlAfterRedirects) { return (Object.assign(Object.assign({}, t), { urlAfterRedirects: urlAfterRedirects })); })); }));
|
|
3127
3198
|
};
|
|
3128
3199
|
}
|
|
3129
3200
|
|
|
@@ -3186,9 +3257,7 @@
|
|
|
3186
3257
|
delete prevChildren[c.value.outlet];
|
|
3187
3258
|
});
|
|
3188
3259
|
// Process any children left from the current route (not active for the future route)
|
|
3189
|
-
forEach(prevChildren, function (v, k) {
|
|
3190
|
-
return deactivateRouteAndItsChildren(v, contexts.getContext(k), checks);
|
|
3191
|
-
});
|
|
3260
|
+
forEach(prevChildren, function (v, k) { return deactivateRouteAndItsChildren(v, contexts.getContext(k), checks); });
|
|
3192
3261
|
return checks;
|
|
3193
3262
|
}
|
|
3194
3263
|
function getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks) {
|
|
@@ -3284,13 +3353,6 @@
|
|
|
3284
3353
|
}
|
|
3285
3354
|
}
|
|
3286
3355
|
|
|
3287
|
-
/**
|
|
3288
|
-
* @license
|
|
3289
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3290
|
-
*
|
|
3291
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3292
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3293
|
-
*/
|
|
3294
3356
|
var INITIAL_VALUE = Symbol('INITIAL_VALUE');
|
|
3295
3357
|
function prioritizedGuardValue() {
|
|
3296
3358
|
return operators.switchMap(function (obs) {
|
|
@@ -3334,21 +3396,19 @@
|
|
|
3334
3396
|
return source.pipe(operators.mergeMap(function (t) {
|
|
3335
3397
|
var targetSnapshot = t.targetSnapshot, currentSnapshot = t.currentSnapshot, _a = t.guards, canActivateChecks = _a.canActivateChecks, canDeactivateChecks = _a.canDeactivateChecks;
|
|
3336
3398
|
if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {
|
|
3337
|
-
return rxjs.of(
|
|
3399
|
+
return rxjs.of(Object.assign(Object.assign({}, t), { guardsResult: true }));
|
|
3338
3400
|
}
|
|
3339
3401
|
return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, moduleInjector)
|
|
3340
3402
|
.pipe(operators.mergeMap(function (canDeactivate) {
|
|
3341
3403
|
return canDeactivate && isBoolean(canDeactivate) ?
|
|
3342
3404
|
runCanActivateChecks(targetSnapshot, canActivateChecks, moduleInjector, forwardEvent) :
|
|
3343
3405
|
rxjs.of(canDeactivate);
|
|
3344
|
-
}), operators.map(function (guardsResult) { return (
|
|
3406
|
+
}), operators.map(function (guardsResult) { return (Object.assign(Object.assign({}, t), { guardsResult: guardsResult })); }));
|
|
3345
3407
|
}));
|
|
3346
3408
|
};
|
|
3347
3409
|
}
|
|
3348
3410
|
function runCanDeactivateChecks(checks, futureRSS, currRSS, moduleInjector) {
|
|
3349
|
-
return rxjs.from(checks).pipe(operators.mergeMap(function (check) {
|
|
3350
|
-
return runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector);
|
|
3351
|
-
}), operators.first(function (result) {
|
|
3411
|
+
return rxjs.from(checks).pipe(operators.mergeMap(function (check) { return runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector); }), operators.first(function (result) {
|
|
3352
3412
|
return result !== true;
|
|
3353
3413
|
}, true));
|
|
3354
3414
|
}
|
|
@@ -3465,13 +3525,6 @@
|
|
|
3465
3525
|
return rxjs.of(canDeactivateObservables).pipe(prioritizedGuardValue());
|
|
3466
3526
|
}
|
|
3467
3527
|
|
|
3468
|
-
/**
|
|
3469
|
-
* @license
|
|
3470
|
-
* Copyright Google LLC All Rights Reserved.
|
|
3471
|
-
*
|
|
3472
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
3473
|
-
* found in the LICENSE file at https://angular.io/license
|
|
3474
|
-
*/
|
|
3475
3528
|
var NoMatch$1 = /** @class */ (function () {
|
|
3476
3529
|
function NoMatch() {
|
|
3477
3530
|
}
|
|
@@ -3496,7 +3549,7 @@
|
|
|
3496
3549
|
try {
|
|
3497
3550
|
var rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config, this.relativeLinkResolution).segmentGroup;
|
|
3498
3551
|
var children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);
|
|
3499
|
-
var root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(
|
|
3552
|
+
var root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});
|
|
3500
3553
|
var rootNode = new TreeNode(root, children);
|
|
3501
3554
|
var routeState = new RouterStateSnapshot(this.url, rootNode);
|
|
3502
3555
|
this.inheritParamsAndData(routeState._root);
|
|
@@ -3566,13 +3619,13 @@
|
|
|
3566
3619
|
var rawSlicedSegments = [];
|
|
3567
3620
|
if (route.path === '**') {
|
|
3568
3621
|
var params = segments.length > 0 ? last(segments).parameters : {};
|
|
3569
|
-
snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(
|
|
3622
|
+
snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));
|
|
3570
3623
|
}
|
|
3571
3624
|
else {
|
|
3572
3625
|
var result = match$1(rawSegment, route, segments);
|
|
3573
3626
|
consumedSegments = result.consumedSegments;
|
|
3574
3627
|
rawSlicedSegments = segments.slice(result.lastChild);
|
|
3575
|
-
snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(
|
|
3628
|
+
snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));
|
|
3576
3629
|
}
|
|
3577
3630
|
var childConfig = getChildConfig(route);
|
|
3578
3631
|
var _a = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig, this.relativeLinkResolution), segmentGroup = _a.segmentGroup, slicedSegments = _a.slicedSegments;
|
|
@@ -3621,7 +3674,7 @@
|
|
|
3621
3674
|
forEach(res.posParams, function (v, k) {
|
|
3622
3675
|
posParams[k] = v.path;
|
|
3623
3676
|
});
|
|
3624
|
-
var parameters = res.consumed.length > 0 ?
|
|
3677
|
+
var parameters = res.consumed.length > 0 ? Object.assign(Object.assign({}, posParams), res.consumed[res.consumed.length - 1].parameters) :
|
|
3625
3678
|
posParams;
|
|
3626
3679
|
return { consumedSegments: res.consumed, lastChild: res.consumed.length, parameters: parameters };
|
|
3627
3680
|
}
|
|
@@ -3699,7 +3752,7 @@
|
|
|
3699
3752
|
}
|
|
3700
3753
|
finally { if (e_2) throw e_2.error; }
|
|
3701
3754
|
}
|
|
3702
|
-
return
|
|
3755
|
+
return Object.assign(Object.assign({}, children), res);
|
|
3703
3756
|
}
|
|
3704
3757
|
function createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {
|
|
3705
3758
|
var e_3, _a;
|
|
@@ -3759,7 +3812,7 @@
|
|
|
3759
3812
|
function recognize$1(rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {
|
|
3760
3813
|
return function (source) {
|
|
3761
3814
|
return source.pipe(operators.mergeMap(function (t) { return recognize(rootComponentType, config, t.urlAfterRedirects, serializer(t.urlAfterRedirects), paramsInheritanceStrategy, relativeLinkResolution)
|
|
3762
|
-
.pipe(operators.map(function (targetSnapshot) { return (
|
|
3815
|
+
.pipe(operators.map(function (targetSnapshot) { return (Object.assign(Object.assign({}, t), { targetSnapshot: targetSnapshot })); })); }));
|
|
3763
3816
|
};
|
|
3764
3817
|
}
|
|
3765
3818
|
|
|
@@ -3788,7 +3841,7 @@
|
|
|
3788
3841
|
return resolveNode(resolve, futureARS, futureRSS, moduleInjector)
|
|
3789
3842
|
.pipe(operators.map(function (resolvedData) {
|
|
3790
3843
|
futureARS._resolvedData = resolvedData;
|
|
3791
|
-
futureARS.data =
|
|
3844
|
+
futureARS.data = Object.assign(Object.assign({}, futureARS.data), inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve);
|
|
3792
3845
|
return null;
|
|
3793
3846
|
}));
|
|
3794
3847
|
}
|
|
@@ -4069,7 +4122,7 @@
|
|
|
4069
4122
|
/**
|
|
4070
4123
|
* @description
|
|
4071
4124
|
*
|
|
4072
|
-
* A service that provides navigation and URL manipulation capabilities.
|
|
4125
|
+
* A service that provides navigation among views and URL manipulation capabilities.
|
|
4073
4126
|
*
|
|
4074
4127
|
* @see `Route`.
|
|
4075
4128
|
* @see [Routing and Navigation Guide](guide/router).
|
|
@@ -4201,9 +4254,7 @@
|
|
|
4201
4254
|
var eventsSubject = this.events;
|
|
4202
4255
|
return transitions.pipe(operators.filter(function (t) { return t.id !== 0; }),
|
|
4203
4256
|
// Extract URL
|
|
4204
|
-
operators.map(function (t) {
|
|
4205
|
-
return (__assign(__assign({}, t), { extractedUrl: _this.urlHandlingStrategy.extract(t.rawUrl) }));
|
|
4206
|
-
}),
|
|
4257
|
+
operators.map(function (t) { return (Object.assign(Object.assign({}, t), { extractedUrl: _this.urlHandlingStrategy.extract(t.rawUrl) })); }),
|
|
4207
4258
|
// Using switchMap so we cancel executing navigations when a new one comes in
|
|
4208
4259
|
operators.switchMap(function (t) {
|
|
4209
4260
|
var completed = false;
|
|
@@ -4217,7 +4268,7 @@
|
|
|
4217
4268
|
extractedUrl: t.extractedUrl,
|
|
4218
4269
|
trigger: t.source,
|
|
4219
4270
|
extras: t.extras,
|
|
4220
|
-
previousNavigation: _this.lastSuccessfulNavigation ?
|
|
4271
|
+
previousNavigation: _this.lastSuccessfulNavigation ? Object.assign(Object.assign({}, _this.lastSuccessfulNavigation), { previousNavigation: null }) :
|
|
4221
4272
|
null
|
|
4222
4273
|
};
|
|
4223
4274
|
}), operators.switchMap(function (t) {
|
|
@@ -4243,7 +4294,7 @@
|
|
|
4243
4294
|
applyRedirects$1(_this.ngModule.injector, _this.configLoader, _this.urlSerializer, _this.config),
|
|
4244
4295
|
// Update the currentNavigation
|
|
4245
4296
|
operators.tap(function (t) {
|
|
4246
|
-
_this.currentNavigation =
|
|
4297
|
+
_this.currentNavigation = Object.assign(Object.assign({}, _this.currentNavigation), { finalUrl: t.urlAfterRedirects });
|
|
4247
4298
|
}),
|
|
4248
4299
|
// Recognize
|
|
4249
4300
|
recognize$1(_this.rootComponentType, _this.config, function (url) { return _this.serializeUrl(url); }, _this.paramsInheritanceStrategy, _this.relativeLinkResolution),
|
|
@@ -4273,7 +4324,7 @@
|
|
|
4273
4324
|
var navStart = new NavigationStart(id, _this.serializeUrl(extractedUrl), source, restoredState);
|
|
4274
4325
|
eventsSubject.next(navStart);
|
|
4275
4326
|
var targetSnapshot = createEmptyState(extractedUrl, _this.rootComponentType).snapshot;
|
|
4276
|
-
return rxjs.of(
|
|
4327
|
+
return rxjs.of(Object.assign(Object.assign({}, t), { targetSnapshot: targetSnapshot, urlAfterRedirects: extractedUrl, extras: Object.assign(Object.assign({}, extras), { skipLocationChange: false, replaceUrl: false }) }));
|
|
4277
4328
|
}
|
|
4278
4329
|
else {
|
|
4279
4330
|
/* When neither the current or previous URL can be processed, do nothing
|
|
@@ -4303,7 +4354,7 @@
|
|
|
4303
4354
|
operators.tap(function (t) {
|
|
4304
4355
|
var guardsStart = new GuardsCheckStart(t.id, _this.serializeUrl(t.extractedUrl), _this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
|
|
4305
4356
|
_this.triggerEvent(guardsStart);
|
|
4306
|
-
}), operators.map(function (t) { return (
|
|
4357
|
+
}), operators.map(function (t) { return (Object.assign(Object.assign({}, t), { guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, _this.rootContexts) })); }), checkGuards(_this.ngModule.injector, function (evt) { return _this.triggerEvent(evt); }), operators.tap(function (t) {
|
|
4307
4358
|
if (isUrlTree(t.guardsResult)) {
|
|
4308
4359
|
var error = navigationCancelingError("Redirecting to \"" + _this.serializeUrl(t.guardsResult) + "\"");
|
|
4309
4360
|
error.url = t.guardsResult;
|
|
@@ -4359,7 +4410,7 @@
|
|
|
4359
4410
|
});
|
|
4360
4411
|
}), operators.map(function (t) {
|
|
4361
4412
|
var targetRouterState = createRouterState(_this.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
|
|
4362
|
-
return (
|
|
4413
|
+
return (Object.assign(Object.assign({}, t), { targetRouterState: targetRouterState }));
|
|
4363
4414
|
}),
|
|
4364
4415
|
/* Once here, we are about to activate syncronously. The assumption is this
|
|
4365
4416
|
will succeed, and user code may read from the Router service. Therefore
|
|
@@ -4483,7 +4534,7 @@
|
|
|
4483
4534
|
return transition;
|
|
4484
4535
|
};
|
|
4485
4536
|
Router.prototype.setTransition = function (t) {
|
|
4486
|
-
this.transitions.next(
|
|
4537
|
+
this.transitions.next(Object.assign(Object.assign({}, this.getTransition()), t));
|
|
4487
4538
|
};
|
|
4488
4539
|
/**
|
|
4489
4540
|
* Sets up the location change listener and performs the initial navigation.
|
|
@@ -4532,7 +4583,7 @@
|
|
|
4532
4583
|
this.events.next(event);
|
|
4533
4584
|
};
|
|
4534
4585
|
/**
|
|
4535
|
-
* Resets the configuration used for navigation and generating links.
|
|
4586
|
+
* Resets the route configuration used for navigation and generating links.
|
|
4536
4587
|
*
|
|
4537
4588
|
* @param config The route array for the new configuration.
|
|
4538
4589
|
*
|
|
@@ -4565,14 +4616,15 @@
|
|
|
4565
4616
|
}
|
|
4566
4617
|
};
|
|
4567
4618
|
/**
|
|
4568
|
-
*
|
|
4619
|
+
* Appends URL segments to the current URL tree to create a new URL tree.
|
|
4569
4620
|
*
|
|
4570
|
-
*
|
|
4571
|
-
*
|
|
4572
|
-
*
|
|
4573
|
-
*
|
|
4621
|
+
* @param commands An array of URL fragments with which to construct the new URL tree.
|
|
4622
|
+
* If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
|
|
4623
|
+
* segments, followed by the parameters for each segment.
|
|
4624
|
+
* The fragments are applied to the current URL tree or the one provided in the `relativeTo`
|
|
4625
|
+
* property of the options object, if supplied.
|
|
4574
4626
|
* @param navigationExtras Options that control the navigation strategy. This function
|
|
4575
|
-
* only
|
|
4627
|
+
* only uses properties in `NavigationExtras` that would change the provided URL.
|
|
4576
4628
|
* @returns The new URL tree.
|
|
4577
4629
|
*
|
|
4578
4630
|
* @usageNotes
|
|
@@ -4621,7 +4673,7 @@
|
|
|
4621
4673
|
if (queryParamsHandling) {
|
|
4622
4674
|
switch (queryParamsHandling) {
|
|
4623
4675
|
case 'merge':
|
|
4624
|
-
q =
|
|
4676
|
+
q = Object.assign(Object.assign({}, this.currentUrlTree.queryParams), queryParams);
|
|
4625
4677
|
break;
|
|
4626
4678
|
case 'preserve':
|
|
4627
4679
|
q = this.currentUrlTree.queryParams;
|
|
@@ -4639,9 +4691,10 @@
|
|
|
4639
4691
|
return createUrlTree(a, this.currentUrlTree, commands, q, f);
|
|
4640
4692
|
};
|
|
4641
4693
|
/**
|
|
4642
|
-
*
|
|
4694
|
+
* Navigates to a view using an absolute route path.
|
|
4643
4695
|
*
|
|
4644
|
-
* @param url An absolute
|
|
4696
|
+
* @param url An absolute path for a defined route. The function does not apply any delta to the
|
|
4697
|
+
* current URL.
|
|
4645
4698
|
* @param extras An object containing properties that modify the navigation strategy.
|
|
4646
4699
|
* The function ignores any properties in the `NavigationExtras` that would change the
|
|
4647
4700
|
* provided URL.
|
|
@@ -4651,6 +4704,8 @@
|
|
|
4651
4704
|
*
|
|
4652
4705
|
* @usageNotes
|
|
4653
4706
|
*
|
|
4707
|
+
* The following calls request navigation to an absolute path.
|
|
4708
|
+
*
|
|
4654
4709
|
* ```
|
|
4655
4710
|
* router.navigateByUrl("/team/33/user/11");
|
|
4656
4711
|
*
|
|
@@ -4658,6 +4713,8 @@
|
|
|
4658
4713
|
* router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
|
|
4659
4714
|
* ```
|
|
4660
4715
|
*
|
|
4716
|
+
* @see [Routing and Navigation guide](guide/router)
|
|
4717
|
+
*
|
|
4661
4718
|
*/
|
|
4662
4719
|
Router.prototype.navigateByUrl = function (url, extras) {
|
|
4663
4720
|
if (extras === void 0) { extras = { skipLocationChange: false }; }
|
|
@@ -4672,28 +4729,31 @@
|
|
|
4672
4729
|
* Navigate based on the provided array of commands and a starting point.
|
|
4673
4730
|
* If no starting route is provided, the navigation is absolute.
|
|
4674
4731
|
*
|
|
4675
|
-
*
|
|
4676
|
-
*
|
|
4677
|
-
*
|
|
4678
|
-
*
|
|
4732
|
+
* @param commands An array of URL fragments with which to construct the target URL.
|
|
4733
|
+
* If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
|
|
4734
|
+
* segments, followed by the parameters for each segment.
|
|
4735
|
+
* The fragments are applied to the current URL or the one provided in the `relativeTo` property
|
|
4736
|
+
* of the options object, if supplied.
|
|
4737
|
+
* @param extras An options object that determines how the URL should be constructed or
|
|
4738
|
+
* interpreted.
|
|
4739
|
+
*
|
|
4740
|
+
* @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation
|
|
4741
|
+
* fails,
|
|
4742
|
+
* or is rejected on error.
|
|
4679
4743
|
*
|
|
4680
4744
|
* @usageNotes
|
|
4681
4745
|
*
|
|
4746
|
+
* The following calls request navigation to a dynamic route path relative to the current URL.
|
|
4747
|
+
*
|
|
4682
4748
|
* ```
|
|
4683
4749
|
* router.navigate(['team', 33, 'user', 11], {relativeTo: route});
|
|
4684
4750
|
*
|
|
4685
|
-
* // Navigate without updating the URL
|
|
4751
|
+
* // Navigate without updating the URL, overriding the default behavior
|
|
4686
4752
|
* router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
|
|
4687
4753
|
* ```
|
|
4688
4754
|
*
|
|
4689
|
-
*
|
|
4690
|
-
* or the one provided in the `relativeTo` property of the second parameter (the
|
|
4691
|
-
* `NavigationExtras`).
|
|
4755
|
+
* @see [Routing and Navigation guide](guide/router)
|
|
4692
4756
|
*
|
|
4693
|
-
* In order to affect this browser's `history.state` entry, the `state`
|
|
4694
|
-
* parameter can be passed. This must be an object because the router
|
|
4695
|
-
* will add the `navigationId` property to this object before creating
|
|
4696
|
-
* the new history item.
|
|
4697
4757
|
*/
|
|
4698
4758
|
Router.prototype.navigate = function (commands, extras) {
|
|
4699
4759
|
if (extras === void 0) { extras = { skipLocationChange: false }; }
|
|
@@ -4809,10 +4869,10 @@
|
|
|
4809
4869
|
state = state || {};
|
|
4810
4870
|
if (this.location.isCurrentPathEqualTo(path) || replaceUrl) {
|
|
4811
4871
|
// TODO(jasonaden): Remove first `navigationId` and rely on `ng` namespace.
|
|
4812
|
-
this.location.replaceState(path, '',
|
|
4872
|
+
this.location.replaceState(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
|
|
4813
4873
|
}
|
|
4814
4874
|
else {
|
|
4815
|
-
this.location.go(path, '',
|
|
4875
|
+
this.location.go(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
|
|
4816
4876
|
}
|
|
4817
4877
|
};
|
|
4818
4878
|
Router.prototype.resetStateAndUrl = function (storedState, storedUrl, rawUrl) {
|
|
@@ -4824,21 +4884,21 @@
|
|
|
4824
4884
|
Router.prototype.resetUrlToCurrentUrlTree = function () {
|
|
4825
4885
|
this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', { navigationId: this.lastSuccessfulId });
|
|
4826
4886
|
};
|
|
4827
|
-
Router.decorators = [
|
|
4828
|
-
{ type: core.Injectable }
|
|
4829
|
-
];
|
|
4830
|
-
Router.ctorParameters = function () { return [
|
|
4831
|
-
{ type: core.Type },
|
|
4832
|
-
{ type: UrlSerializer },
|
|
4833
|
-
{ type: ChildrenOutletContexts },
|
|
4834
|
-
{ type: common.Location },
|
|
4835
|
-
{ type: core.Injector },
|
|
4836
|
-
{ type: core.NgModuleFactoryLoader },
|
|
4837
|
-
{ type: core.Compiler },
|
|
4838
|
-
{ type: undefined }
|
|
4839
|
-
]; };
|
|
4840
4887
|
return Router;
|
|
4841
4888
|
}());
|
|
4889
|
+
Router.decorators = [
|
|
4890
|
+
{ type: core.Injectable }
|
|
4891
|
+
];
|
|
4892
|
+
Router.ctorParameters = function () { return [
|
|
4893
|
+
{ type: core.Type },
|
|
4894
|
+
{ type: UrlSerializer },
|
|
4895
|
+
{ type: ChildrenOutletContexts },
|
|
4896
|
+
{ type: common.Location },
|
|
4897
|
+
{ type: core.Injector },
|
|
4898
|
+
{ type: core.NgModuleFactoryLoader },
|
|
4899
|
+
{ type: core.Compiler },
|
|
4900
|
+
{ type: undefined }
|
|
4901
|
+
]; };
|
|
4842
4902
|
function validateCommands(commands) {
|
|
4843
4903
|
for (var i = 0; i < commands.length; i++) {
|
|
4844
4904
|
var cmd = commands[i];
|
|
@@ -4960,8 +5020,7 @@
|
|
|
4960
5020
|
}
|
|
4961
5021
|
Object.defineProperty(RouterLink.prototype, "routerLink", {
|
|
4962
5022
|
/**
|
|
4963
|
-
*
|
|
4964
|
-
* Router#createUrlTree}.
|
|
5023
|
+
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4965
5024
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4966
5025
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
4967
5026
|
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
@@ -5014,30 +5073,30 @@
|
|
|
5014
5073
|
enumerable: false,
|
|
5015
5074
|
configurable: true
|
|
5016
5075
|
});
|
|
5017
|
-
RouterLink.decorators = [
|
|
5018
|
-
{ type: core.Directive, args: [{ selector: ':not(a):not(area)[routerLink]' },] }
|
|
5019
|
-
];
|
|
5020
|
-
RouterLink.ctorParameters = function () { return [
|
|
5021
|
-
{ type: Router },
|
|
5022
|
-
{ type: ActivatedRoute },
|
|
5023
|
-
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
5024
|
-
{ type: core.Renderer2 },
|
|
5025
|
-
{ type: core.ElementRef }
|
|
5026
|
-
]; };
|
|
5027
|
-
RouterLink.propDecorators = {
|
|
5028
|
-
queryParams: [{ type: core.Input }],
|
|
5029
|
-
fragment: [{ type: core.Input }],
|
|
5030
|
-
queryParamsHandling: [{ type: core.Input }],
|
|
5031
|
-
preserveFragment: [{ type: core.Input }],
|
|
5032
|
-
skipLocationChange: [{ type: core.Input }],
|
|
5033
|
-
replaceUrl: [{ type: core.Input }],
|
|
5034
|
-
state: [{ type: core.Input }],
|
|
5035
|
-
routerLink: [{ type: core.Input }],
|
|
5036
|
-
preserveQueryParams: [{ type: core.Input }],
|
|
5037
|
-
onClick: [{ type: core.HostListener, args: ['click',] }]
|
|
5038
|
-
};
|
|
5039
5076
|
return RouterLink;
|
|
5040
5077
|
}());
|
|
5078
|
+
RouterLink.decorators = [
|
|
5079
|
+
{ type: core.Directive, args: [{ selector: ':not(a):not(area)[routerLink]' },] }
|
|
5080
|
+
];
|
|
5081
|
+
RouterLink.ctorParameters = function () { return [
|
|
5082
|
+
{ type: Router },
|
|
5083
|
+
{ type: ActivatedRoute },
|
|
5084
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
5085
|
+
{ type: core.Renderer2 },
|
|
5086
|
+
{ type: core.ElementRef }
|
|
5087
|
+
]; };
|
|
5088
|
+
RouterLink.propDecorators = {
|
|
5089
|
+
queryParams: [{ type: core.Input }],
|
|
5090
|
+
fragment: [{ type: core.Input }],
|
|
5091
|
+
queryParamsHandling: [{ type: core.Input }],
|
|
5092
|
+
preserveFragment: [{ type: core.Input }],
|
|
5093
|
+
skipLocationChange: [{ type: core.Input }],
|
|
5094
|
+
replaceUrl: [{ type: core.Input }],
|
|
5095
|
+
state: [{ type: core.Input }],
|
|
5096
|
+
routerLink: [{ type: core.Input }],
|
|
5097
|
+
preserveQueryParams: [{ type: core.Input }],
|
|
5098
|
+
onClick: [{ type: core.HostListener, args: ['click',] }]
|
|
5099
|
+
};
|
|
5041
5100
|
/**
|
|
5042
5101
|
* @description
|
|
5043
5102
|
*
|
|
@@ -5064,8 +5123,7 @@
|
|
|
5064
5123
|
}
|
|
5065
5124
|
Object.defineProperty(RouterLinkWithHref.prototype, "routerLink", {
|
|
5066
5125
|
/**
|
|
5067
|
-
*
|
|
5068
|
-
* Router#createUrlTree}.
|
|
5126
|
+
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
5069
5127
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
5070
5128
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
5071
5129
|
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
@@ -5133,30 +5191,30 @@
|
|
|
5133
5191
|
enumerable: false,
|
|
5134
5192
|
configurable: true
|
|
5135
5193
|
});
|
|
5136
|
-
RouterLinkWithHref.decorators = [
|
|
5137
|
-
{ type: core.Directive, args: [{ selector: 'a[routerLink],area[routerLink]' },] }
|
|
5138
|
-
];
|
|
5139
|
-
RouterLinkWithHref.ctorParameters = function () { return [
|
|
5140
|
-
{ type: Router },
|
|
5141
|
-
{ type: ActivatedRoute },
|
|
5142
|
-
{ type: common.LocationStrategy }
|
|
5143
|
-
]; };
|
|
5144
|
-
RouterLinkWithHref.propDecorators = {
|
|
5145
|
-
target: [{ type: core.HostBinding, args: ['attr.target',] }, { type: core.Input }],
|
|
5146
|
-
queryParams: [{ type: core.Input }],
|
|
5147
|
-
fragment: [{ type: core.Input }],
|
|
5148
|
-
queryParamsHandling: [{ type: core.Input }],
|
|
5149
|
-
preserveFragment: [{ type: core.Input }],
|
|
5150
|
-
skipLocationChange: [{ type: core.Input }],
|
|
5151
|
-
replaceUrl: [{ type: core.Input }],
|
|
5152
|
-
state: [{ type: core.Input }],
|
|
5153
|
-
href: [{ type: core.HostBinding }],
|
|
5154
|
-
routerLink: [{ type: core.Input }],
|
|
5155
|
-
preserveQueryParams: [{ type: core.Input }],
|
|
5156
|
-
onClick: [{ type: core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
|
|
5157
|
-
};
|
|
5158
5194
|
return RouterLinkWithHref;
|
|
5159
5195
|
}());
|
|
5196
|
+
RouterLinkWithHref.decorators = [
|
|
5197
|
+
{ type: core.Directive, args: [{ selector: 'a[routerLink],area[routerLink]' },] }
|
|
5198
|
+
];
|
|
5199
|
+
RouterLinkWithHref.ctorParameters = function () { return [
|
|
5200
|
+
{ type: Router },
|
|
5201
|
+
{ type: ActivatedRoute },
|
|
5202
|
+
{ type: common.LocationStrategy }
|
|
5203
|
+
]; };
|
|
5204
|
+
RouterLinkWithHref.propDecorators = {
|
|
5205
|
+
target: [{ type: core.HostBinding, args: ['attr.target',] }, { type: core.Input }],
|
|
5206
|
+
queryParams: [{ type: core.Input }],
|
|
5207
|
+
fragment: [{ type: core.Input }],
|
|
5208
|
+
queryParamsHandling: [{ type: core.Input }],
|
|
5209
|
+
preserveFragment: [{ type: core.Input }],
|
|
5210
|
+
skipLocationChange: [{ type: core.Input }],
|
|
5211
|
+
replaceUrl: [{ type: core.Input }],
|
|
5212
|
+
state: [{ type: core.Input }],
|
|
5213
|
+
href: [{ type: core.HostBinding }],
|
|
5214
|
+
routerLink: [{ type: core.Input }],
|
|
5215
|
+
preserveQueryParams: [{ type: core.Input }],
|
|
5216
|
+
onClick: [{ type: core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
|
|
5217
|
+
};
|
|
5160
5218
|
function attrBoolValue(s) {
|
|
5161
5219
|
return s === '' || !!s;
|
|
5162
5220
|
}
|
|
@@ -5285,9 +5343,7 @@
|
|
|
5285
5343
|
};
|
|
5286
5344
|
RouterLinkActive.prototype.isLinkActive = function (router) {
|
|
5287
5345
|
var _this = this;
|
|
5288
|
-
return function (link) {
|
|
5289
|
-
return router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact);
|
|
5290
|
-
};
|
|
5346
|
+
return function (link) { return router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact); };
|
|
5291
5347
|
};
|
|
5292
5348
|
RouterLinkActive.prototype.hasActiveLinks = function () {
|
|
5293
5349
|
var isActiveCheckFn = this.isLinkActive(this.router);
|
|
@@ -5295,28 +5351,28 @@
|
|
|
5295
5351
|
this.linkWithHref && isActiveCheckFn(this.linkWithHref) ||
|
|
5296
5352
|
this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
|
|
5297
5353
|
};
|
|
5298
|
-
RouterLinkActive.decorators = [
|
|
5299
|
-
{ type: core.Directive, args: [{
|
|
5300
|
-
selector: '[routerLinkActive]',
|
|
5301
|
-
exportAs: 'routerLinkActive',
|
|
5302
|
-
},] }
|
|
5303
|
-
];
|
|
5304
|
-
RouterLinkActive.ctorParameters = function () { return [
|
|
5305
|
-
{ type: Router },
|
|
5306
|
-
{ type: core.ElementRef },
|
|
5307
|
-
{ type: core.Renderer2 },
|
|
5308
|
-
{ type: core.ChangeDetectorRef },
|
|
5309
|
-
{ type: RouterLink, decorators: [{ type: core.Optional }] },
|
|
5310
|
-
{ type: RouterLinkWithHref, decorators: [{ type: core.Optional }] }
|
|
5311
|
-
]; };
|
|
5312
|
-
RouterLinkActive.propDecorators = {
|
|
5313
|
-
links: [{ type: core.ContentChildren, args: [RouterLink, { descendants: true },] }],
|
|
5314
|
-
linksWithHrefs: [{ type: core.ContentChildren, args: [RouterLinkWithHref, { descendants: true },] }],
|
|
5315
|
-
routerLinkActiveOptions: [{ type: core.Input }],
|
|
5316
|
-
routerLinkActive: [{ type: core.Input }]
|
|
5317
|
-
};
|
|
5318
5354
|
return RouterLinkActive;
|
|
5319
5355
|
}());
|
|
5356
|
+
RouterLinkActive.decorators = [
|
|
5357
|
+
{ type: core.Directive, args: [{
|
|
5358
|
+
selector: '[routerLinkActive]',
|
|
5359
|
+
exportAs: 'routerLinkActive',
|
|
5360
|
+
},] }
|
|
5361
|
+
];
|
|
5362
|
+
RouterLinkActive.ctorParameters = function () { return [
|
|
5363
|
+
{ type: Router },
|
|
5364
|
+
{ type: core.ElementRef },
|
|
5365
|
+
{ type: core.Renderer2 },
|
|
5366
|
+
{ type: core.ChangeDetectorRef },
|
|
5367
|
+
{ type: RouterLink, decorators: [{ type: core.Optional }] },
|
|
5368
|
+
{ type: RouterLinkWithHref, decorators: [{ type: core.Optional }] }
|
|
5369
|
+
]; };
|
|
5370
|
+
RouterLinkActive.propDecorators = {
|
|
5371
|
+
links: [{ type: core.ContentChildren, args: [RouterLink, { descendants: true },] }],
|
|
5372
|
+
linksWithHrefs: [{ type: core.ContentChildren, args: [RouterLinkWithHref, { descendants: true },] }],
|
|
5373
|
+
routerLinkActiveOptions: [{ type: core.Input }],
|
|
5374
|
+
routerLinkActive: [{ type: core.Input }]
|
|
5375
|
+
};
|
|
5320
5376
|
|
|
5321
5377
|
/**
|
|
5322
5378
|
* @license
|
|
@@ -5465,22 +5521,22 @@
|
|
|
5465
5521
|
this.changeDetector.markForCheck();
|
|
5466
5522
|
this.activateEvents.emit(this.activated.instance);
|
|
5467
5523
|
};
|
|
5468
|
-
RouterOutlet.decorators = [
|
|
5469
|
-
{ type: core.Directive, args: [{ selector: 'router-outlet', exportAs: 'outlet' },] }
|
|
5470
|
-
];
|
|
5471
|
-
RouterOutlet.ctorParameters = function () { return [
|
|
5472
|
-
{ type: ChildrenOutletContexts },
|
|
5473
|
-
{ type: core.ViewContainerRef },
|
|
5474
|
-
{ type: core.ComponentFactoryResolver },
|
|
5475
|
-
{ type: String, decorators: [{ type: core.Attribute, args: ['name',] }] },
|
|
5476
|
-
{ type: core.ChangeDetectorRef }
|
|
5477
|
-
]; };
|
|
5478
|
-
RouterOutlet.propDecorators = {
|
|
5479
|
-
activateEvents: [{ type: core.Output, args: ['activate',] }],
|
|
5480
|
-
deactivateEvents: [{ type: core.Output, args: ['deactivate',] }]
|
|
5481
|
-
};
|
|
5482
5524
|
return RouterOutlet;
|
|
5483
5525
|
}());
|
|
5526
|
+
RouterOutlet.decorators = [
|
|
5527
|
+
{ type: core.Directive, args: [{ selector: 'router-outlet', exportAs: 'outlet' },] }
|
|
5528
|
+
];
|
|
5529
|
+
RouterOutlet.ctorParameters = function () { return [
|
|
5530
|
+
{ type: ChildrenOutletContexts },
|
|
5531
|
+
{ type: core.ViewContainerRef },
|
|
5532
|
+
{ type: core.ComponentFactoryResolver },
|
|
5533
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['name',] }] },
|
|
5534
|
+
{ type: core.ChangeDetectorRef }
|
|
5535
|
+
]; };
|
|
5536
|
+
RouterOutlet.propDecorators = {
|
|
5537
|
+
activateEvents: [{ type: core.Output, args: ['activate',] }],
|
|
5538
|
+
deactivateEvents: [{ type: core.Output, args: ['deactivate',] }]
|
|
5539
|
+
};
|
|
5484
5540
|
var OutletInjector = /** @class */ (function () {
|
|
5485
5541
|
function OutletInjector(route, childContexts, parent) {
|
|
5486
5542
|
this.route = route;
|
|
@@ -5499,13 +5555,6 @@
|
|
|
5499
5555
|
return OutletInjector;
|
|
5500
5556
|
}());
|
|
5501
5557
|
|
|
5502
|
-
/**
|
|
5503
|
-
* @license
|
|
5504
|
-
* Copyright Google LLC All Rights Reserved.
|
|
5505
|
-
*
|
|
5506
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
5507
|
-
* found in the LICENSE file at https://angular.io/license
|
|
5508
|
-
*/
|
|
5509
5558
|
/**
|
|
5510
5559
|
* @description
|
|
5511
5560
|
*
|
|
@@ -5632,18 +5681,18 @@
|
|
|
5632
5681
|
}));
|
|
5633
5682
|
});
|
|
5634
5683
|
};
|
|
5635
|
-
RouterPreloader.decorators = [
|
|
5636
|
-
{ type: core.Injectable }
|
|
5637
|
-
];
|
|
5638
|
-
RouterPreloader.ctorParameters = function () { return [
|
|
5639
|
-
{ type: Router },
|
|
5640
|
-
{ type: core.NgModuleFactoryLoader },
|
|
5641
|
-
{ type: core.Compiler },
|
|
5642
|
-
{ type: core.Injector },
|
|
5643
|
-
{ type: PreloadingStrategy }
|
|
5644
|
-
]; };
|
|
5645
5684
|
return RouterPreloader;
|
|
5646
5685
|
}());
|
|
5686
|
+
RouterPreloader.decorators = [
|
|
5687
|
+
{ type: core.Injectable }
|
|
5688
|
+
];
|
|
5689
|
+
RouterPreloader.ctorParameters = function () { return [
|
|
5690
|
+
{ type: Router },
|
|
5691
|
+
{ type: core.NgModuleFactoryLoader },
|
|
5692
|
+
{ type: core.Compiler },
|
|
5693
|
+
{ type: core.Injector },
|
|
5694
|
+
{ type: PreloadingStrategy }
|
|
5695
|
+
]; };
|
|
5647
5696
|
|
|
5648
5697
|
/**
|
|
5649
5698
|
* @license
|
|
@@ -5728,16 +5777,16 @@
|
|
|
5728
5777
|
this.scrollEventsSubscription.unsubscribe();
|
|
5729
5778
|
}
|
|
5730
5779
|
};
|
|
5731
|
-
RouterScroller.decorators = [
|
|
5732
|
-
{ type: core.Injectable }
|
|
5733
|
-
];
|
|
5734
|
-
RouterScroller.ctorParameters = function () { return [
|
|
5735
|
-
{ type: Router },
|
|
5736
|
-
{ type: common.ViewportScroller },
|
|
5737
|
-
{ type: undefined }
|
|
5738
|
-
]; };
|
|
5739
5780
|
return RouterScroller;
|
|
5740
5781
|
}());
|
|
5782
|
+
RouterScroller.decorators = [
|
|
5783
|
+
{ type: core.Injectable }
|
|
5784
|
+
];
|
|
5785
|
+
RouterScroller.ctorParameters = function () { return [
|
|
5786
|
+
{ type: Router },
|
|
5787
|
+
{ type: common.ViewportScroller },
|
|
5788
|
+
{ type: undefined }
|
|
5789
|
+
]; };
|
|
5741
5790
|
|
|
5742
5791
|
/**
|
|
5743
5792
|
* @license
|
|
@@ -5785,53 +5834,23 @@
|
|
|
5785
5834
|
return new core.NgProbeToken('Router', Router);
|
|
5786
5835
|
}
|
|
5787
5836
|
/**
|
|
5788
|
-
* @usageNotes
|
|
5789
|
-
*
|
|
5790
|
-
* RouterModule can be imported multiple times: once per lazily-loaded bundle.
|
|
5791
|
-
* Since the router deals with a global shared resource--location, we cannot have
|
|
5792
|
-
* more than one router service active.
|
|
5793
|
-
*
|
|
5794
|
-
* That is why there are two ways to create the module: `RouterModule.forRoot` and
|
|
5795
|
-
* `RouterModule.forChild`.
|
|
5796
|
-
*
|
|
5797
|
-
* * `forRoot` creates a module that contains all the directives, the given routes, and the router
|
|
5798
|
-
* service itself.
|
|
5799
|
-
* * `forChild` creates a module that contains all the directives and the given routes, but does not
|
|
5800
|
-
* include the router service.
|
|
5801
|
-
*
|
|
5802
|
-
* When registered at the root, the module should be used as follows
|
|
5803
|
-
*
|
|
5804
|
-
* ```
|
|
5805
|
-
* @NgModule({
|
|
5806
|
-
* imports: [RouterModule.forRoot(ROUTES)]
|
|
5807
|
-
* })
|
|
5808
|
-
* class MyNgModule {}
|
|
5809
|
-
* ```
|
|
5810
|
-
*
|
|
5811
|
-
* For submodules and lazy loaded submodules the module should be used as follows:
|
|
5812
|
-
*
|
|
5813
|
-
* ```
|
|
5814
|
-
* @NgModule({
|
|
5815
|
-
* imports: [RouterModule.forChild(ROUTES)]
|
|
5816
|
-
* })
|
|
5817
|
-
* class MyNgModule {}
|
|
5818
|
-
* ```
|
|
5819
|
-
*
|
|
5820
5837
|
* @description
|
|
5821
5838
|
*
|
|
5822
|
-
* Adds
|
|
5839
|
+
* Adds directives and providers for in-app navigation among views defined in an application.
|
|
5840
|
+
* Use the Angular `Router` service to declaratively specify application states and manage state
|
|
5841
|
+
* transitions.
|
|
5823
5842
|
*
|
|
5824
|
-
*
|
|
5825
|
-
*
|
|
5826
|
-
*
|
|
5827
|
-
* Doing this transparently is not trivial.
|
|
5843
|
+
* You can import this NgModule multiple times, once for each lazy-loaded bundle.
|
|
5844
|
+
* However, only one `Router` service can be active.
|
|
5845
|
+
* To ensure this, there are two ways to register routes when importing this module:
|
|
5828
5846
|
*
|
|
5829
|
-
* The
|
|
5830
|
-
*
|
|
5831
|
-
*
|
|
5847
|
+
* * The `forRoot()` method creates an `NgModule` that contains all the directives, the given
|
|
5848
|
+
* routes, and the `Router` service itself.
|
|
5849
|
+
* * The `forChild()` method creates an `NgModule` that contains all the directives and the given
|
|
5850
|
+
* routes, but does not include the `Router` service.
|
|
5832
5851
|
*
|
|
5833
|
-
* @see [Routing and Navigation](guide/router
|
|
5834
|
-
* overview of how the
|
|
5852
|
+
* @see [Routing and Navigation guide](guide/router) for an
|
|
5853
|
+
* overview of how the `Router` service should be used.
|
|
5835
5854
|
*
|
|
5836
5855
|
* @publicApi
|
|
5837
5856
|
*/
|
|
@@ -5843,9 +5862,19 @@
|
|
|
5843
5862
|
* Creates and configures a module with all the router providers and directives.
|
|
5844
5863
|
* Optionally sets up an application listener to perform an initial navigation.
|
|
5845
5864
|
*
|
|
5865
|
+
* When registering the NgModule at the root, import as follows:
|
|
5866
|
+
*
|
|
5867
|
+
* ```
|
|
5868
|
+
* @NgModule({
|
|
5869
|
+
* imports: [RouterModule.forRoot(ROUTES)]
|
|
5870
|
+
* })
|
|
5871
|
+
* class MyNgModule {}
|
|
5872
|
+
* ```
|
|
5873
|
+
*
|
|
5846
5874
|
* @param routes An array of `Route` objects that define the navigation paths for the application.
|
|
5847
5875
|
* @param config An `ExtraOptions` configuration object that controls how navigation is performed.
|
|
5848
|
-
* @return The new
|
|
5876
|
+
* @return The new `NgModule`.
|
|
5877
|
+
*
|
|
5849
5878
|
*/
|
|
5850
5879
|
RouterModule.forRoot = function (routes, config) {
|
|
5851
5880
|
return {
|
|
@@ -5880,24 +5909,37 @@
|
|
|
5880
5909
|
};
|
|
5881
5910
|
};
|
|
5882
5911
|
/**
|
|
5883
|
-
* Creates a module with all the router directives and a provider registering routes
|
|
5912
|
+
* Creates a module with all the router directives and a provider registering routes,
|
|
5913
|
+
* without creating a new Router service.
|
|
5914
|
+
* When registering for submodules and lazy-loaded submodules, create the NgModule as follows:
|
|
5915
|
+
*
|
|
5916
|
+
* ```
|
|
5917
|
+
* @NgModule({
|
|
5918
|
+
* imports: [RouterModule.forChild(ROUTES)]
|
|
5919
|
+
* })
|
|
5920
|
+
* class MyNgModule {}
|
|
5921
|
+
* ```
|
|
5922
|
+
*
|
|
5923
|
+
* @param routes An array of `Route` objects that define the navigation paths for the submodule.
|
|
5924
|
+
* @return The new NgModule.
|
|
5925
|
+
*
|
|
5884
5926
|
*/
|
|
5885
5927
|
RouterModule.forChild = function (routes) {
|
|
5886
5928
|
return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
|
|
5887
5929
|
};
|
|
5888
|
-
RouterModule.decorators = [
|
|
5889
|
-
{ type: core.NgModule, args: [{
|
|
5890
|
-
declarations: ROUTER_DIRECTIVES,
|
|
5891
|
-
exports: ROUTER_DIRECTIVES,
|
|
5892
|
-
entryComponents: [ɵEmptyOutletComponent]
|
|
5893
|
-
},] }
|
|
5894
|
-
];
|
|
5895
|
-
RouterModule.ctorParameters = function () { return [
|
|
5896
|
-
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [ROUTER_FORROOT_GUARD,] }] },
|
|
5897
|
-
{ type: Router, decorators: [{ type: core.Optional }] }
|
|
5898
|
-
]; };
|
|
5899
5930
|
return RouterModule;
|
|
5900
5931
|
}());
|
|
5932
|
+
RouterModule.decorators = [
|
|
5933
|
+
{ type: core.NgModule, args: [{
|
|
5934
|
+
declarations: ROUTER_DIRECTIVES,
|
|
5935
|
+
exports: ROUTER_DIRECTIVES,
|
|
5936
|
+
entryComponents: [ɵEmptyOutletComponent]
|
|
5937
|
+
},] }
|
|
5938
|
+
];
|
|
5939
|
+
RouterModule.ctorParameters = function () { return [
|
|
5940
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [ROUTER_FORROOT_GUARD,] }] },
|
|
5941
|
+
{ type: Router, decorators: [{ type: core.Optional }] }
|
|
5942
|
+
]; };
|
|
5901
5943
|
function createRouterScroller(router, viewportScroller, config) {
|
|
5902
5944
|
if (config.scrollOffset) {
|
|
5903
5945
|
viewportScroller.setOffset(config.scrollOffset);
|
|
@@ -6059,14 +6101,14 @@
|
|
|
6059
6101
|
RouterInitializer.prototype.isLegacyDisabled = function (opts) {
|
|
6060
6102
|
return opts.initialNavigation === 'legacy_disabled' || opts.initialNavigation === false;
|
|
6061
6103
|
};
|
|
6062
|
-
RouterInitializer.decorators = [
|
|
6063
|
-
{ type: core.Injectable }
|
|
6064
|
-
];
|
|
6065
|
-
RouterInitializer.ctorParameters = function () { return [
|
|
6066
|
-
{ type: core.Injector }
|
|
6067
|
-
]; };
|
|
6068
6104
|
return RouterInitializer;
|
|
6069
6105
|
}());
|
|
6106
|
+
RouterInitializer.decorators = [
|
|
6107
|
+
{ type: core.Injectable }
|
|
6108
|
+
];
|
|
6109
|
+
RouterInitializer.ctorParameters = function () { return [
|
|
6110
|
+
{ type: core.Injector }
|
|
6111
|
+
]; };
|
|
6070
6112
|
function getAppInitializer(r) {
|
|
6071
6113
|
return r.appInitializer.bind(r);
|
|
6072
6114
|
}
|
|
@@ -6104,7 +6146,7 @@
|
|
|
6104
6146
|
/**
|
|
6105
6147
|
* @publicApi
|
|
6106
6148
|
*/
|
|
6107
|
-
var VERSION = new core.Version('10.0.
|
|
6149
|
+
var VERSION = new core.Version('10.0.5');
|
|
6108
6150
|
|
|
6109
6151
|
/**
|
|
6110
6152
|
* @license
|