@angular/router 10.0.3 → 10.0.4
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 +470 -462
- 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/directives/router_link.js +3 -5
- package/esm2015/src/events.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/router.js +5 -7
- 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 +4 -6
- 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.4
|
|
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
|
/**
|
|
@@ -333,7 +406,7 @@
|
|
|
333
406
|
/**
|
|
334
407
|
* An event triggered when a navigation is canceled, directly or indirectly.
|
|
335
408
|
*
|
|
336
|
-
* This can happen when a [route guard](guide/router#milestone-5-route-guards)
|
|
409
|
+
* This can happen when a [route guard](guide/router-tutorial-toh#milestone-5-route-guards)
|
|
337
410
|
* returns `false` or initiates a redirect by returning a `UrlTree`.
|
|
338
411
|
*
|
|
339
412
|
* @publicApi
|
|
@@ -673,11 +746,11 @@
|
|
|
673
746
|
var ɵEmptyOutletComponent = /** @class */ (function () {
|
|
674
747
|
function ɵEmptyOutletComponent() {
|
|
675
748
|
}
|
|
676
|
-
ɵEmptyOutletComponent.decorators = [
|
|
677
|
-
{ type: core.Component, args: [{ template: "<router-outlet></router-outlet>" },] }
|
|
678
|
-
];
|
|
679
749
|
return ɵEmptyOutletComponent;
|
|
680
750
|
}());
|
|
751
|
+
ɵEmptyOutletComponent.decorators = [
|
|
752
|
+
{ type: core.Component, args: [{ template: "<router-outlet></router-outlet>" },] }
|
|
753
|
+
];
|
|
681
754
|
|
|
682
755
|
/**
|
|
683
756
|
* @license
|
|
@@ -861,7 +934,7 @@
|
|
|
861
934
|
*/
|
|
862
935
|
function standardizeConfig(r) {
|
|
863
936
|
var children = r.children && r.children.map(standardizeConfig);
|
|
864
|
-
var c = children ?
|
|
937
|
+
var c = children ? Object.assign(Object.assign({}, r), { children: children }) : Object.assign({}, r);
|
|
865
938
|
if (!c.component && (children || c.loadChildren) && (c.outlet && c.outlet !== PRIMARY_OUTLET)) {
|
|
866
939
|
c.component = ɵEmptyOutletComponent;
|
|
867
940
|
}
|
|
@@ -1671,13 +1744,6 @@
|
|
|
1671
1744
|
return map;
|
|
1672
1745
|
}
|
|
1673
1746
|
|
|
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
1747
|
/**
|
|
1682
1748
|
* Represents the state of the router as a tree of activated routes.
|
|
1683
1749
|
*
|
|
@@ -1875,13 +1941,13 @@
|
|
|
1875
1941
|
inheritingStartingFrom = pathFromRoot.length - 1;
|
|
1876
1942
|
while (inheritingStartingFrom >= 1) {
|
|
1877
1943
|
var current = pathFromRoot[inheritingStartingFrom];
|
|
1878
|
-
var
|
|
1944
|
+
var parent = pathFromRoot[inheritingStartingFrom - 1];
|
|
1879
1945
|
// current route is an empty path => inherits its parent's params and data
|
|
1880
1946
|
if (current.routeConfig && current.routeConfig.path === '') {
|
|
1881
1947
|
inheritingStartingFrom--;
|
|
1882
1948
|
// parent is componentless => current route should inherit its params and data
|
|
1883
1949
|
}
|
|
1884
|
-
else if (!
|
|
1950
|
+
else if (!parent.component) {
|
|
1885
1951
|
inheritingStartingFrom--;
|
|
1886
1952
|
}
|
|
1887
1953
|
else {
|
|
@@ -1894,9 +1960,9 @@
|
|
|
1894
1960
|
/** @internal */
|
|
1895
1961
|
function flattenInherited(pathFromRoot) {
|
|
1896
1962
|
return pathFromRoot.reduce(function (res, curr) {
|
|
1897
|
-
var params =
|
|
1898
|
-
var data =
|
|
1899
|
-
var resolve =
|
|
1963
|
+
var params = Object.assign(Object.assign({}, res.params), curr.params);
|
|
1964
|
+
var data = Object.assign(Object.assign({}, res.data), curr.data);
|
|
1965
|
+
var resolve = Object.assign(Object.assign({}, res.resolve), curr._resolvedData);
|
|
1900
1966
|
return { params: params, data: data, resolve: resolve };
|
|
1901
1967
|
}, { params: {}, data: {}, resolve: {} });
|
|
1902
1968
|
}
|
|
@@ -2106,13 +2172,6 @@
|
|
|
2106
2172
|
(!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));
|
|
2107
2173
|
}
|
|
2108
2174
|
|
|
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
2175
|
function createRouterState(routeReuseStrategy, curr, prevState) {
|
|
2117
2176
|
var root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);
|
|
2118
2177
|
return new RouterState(root, curr);
|
|
@@ -2177,13 +2236,6 @@
|
|
|
2177
2236
|
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
2237
|
}
|
|
2179
2238
|
|
|
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
2239
|
function createUrlTree(route, urlTree, commands, queryParams, fragment) {
|
|
2188
2240
|
if (commands.length === 0) {
|
|
2189
2241
|
return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);
|
|
@@ -2466,13 +2518,11 @@
|
|
|
2466
2518
|
* Use of this source code is governed by an MIT-style license that can be
|
|
2467
2519
|
* found in the LICENSE file at https://angular.io/license
|
|
2468
2520
|
*/
|
|
2469
|
-
var activateRoutes = function (rootContexts, routeReuseStrategy, forwardEvent) {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
});
|
|
2475
|
-
};
|
|
2521
|
+
var activateRoutes = function (rootContexts, routeReuseStrategy, forwardEvent) { return operators.map(function (t) {
|
|
2522
|
+
new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent)
|
|
2523
|
+
.activate(rootContexts);
|
|
2524
|
+
return t;
|
|
2525
|
+
}); };
|
|
2476
2526
|
var ActivateRoutes = /** @class */ (function () {
|
|
2477
2527
|
function ActivateRoutes(routeReuseStrategy, futureState, currState, forwardEvent) {
|
|
2478
2528
|
this.routeReuseStrategy = routeReuseStrategy;
|
|
@@ -2680,13 +2730,6 @@
|
|
|
2680
2730
|
return guard && isFunction(guard.canDeactivate);
|
|
2681
2731
|
}
|
|
2682
2732
|
|
|
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
2733
|
var NoMatch = /** @class */ (function () {
|
|
2691
2734
|
function NoMatch(segmentGroup) {
|
|
2692
2735
|
this.segmentGroup = segmentGroup || null;
|
|
@@ -2748,9 +2791,7 @@
|
|
|
2748
2791
|
ApplyRedirects.prototype.match = function (tree) {
|
|
2749
2792
|
var _this = this;
|
|
2750
2793
|
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
|
-
}));
|
|
2794
|
+
var mapped$ = expanded$.pipe(operators.map(function (rootSegmentGroup) { return _this.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment); }));
|
|
2754
2795
|
return mapped$.pipe(operators.catchError(function (e) {
|
|
2755
2796
|
if (e instanceof NoMatch) {
|
|
2756
2797
|
throw _this.noMatchError(e);
|
|
@@ -2876,9 +2917,7 @@
|
|
|
2876
2917
|
return rxjs.of(new UrlSegmentGroup(consumedSegments, {}));
|
|
2877
2918
|
}
|
|
2878
2919
|
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
|
-
}));
|
|
2920
|
+
return expanded$.pipe(operators.map(function (cs) { return new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children); }));
|
|
2882
2921
|
}));
|
|
2883
2922
|
};
|
|
2884
2923
|
ApplyRedirects.prototype.getChildConfig = function (ngModule, route, segments) {
|
|
@@ -3074,7 +3113,7 @@
|
|
|
3074
3113
|
}
|
|
3075
3114
|
finally { if (e_2) throw e_2.error; }
|
|
3076
3115
|
}
|
|
3077
|
-
return
|
|
3116
|
+
return Object.assign(Object.assign({}, children), res);
|
|
3078
3117
|
}
|
|
3079
3118
|
function createChildrenForEmptySegments(routes, primarySegmentGroup) {
|
|
3080
3119
|
var e_3, _a;
|
|
@@ -3123,7 +3162,7 @@
|
|
|
3123
3162
|
function applyRedirects$1(moduleInjector, configLoader, urlSerializer, config) {
|
|
3124
3163
|
return function (source) {
|
|
3125
3164
|
return source.pipe(operators.switchMap(function (t) { return applyRedirects(moduleInjector, configLoader, urlSerializer, t.extractedUrl, config)
|
|
3126
|
-
.pipe(operators.map(function (urlAfterRedirects) { return (
|
|
3165
|
+
.pipe(operators.map(function (urlAfterRedirects) { return (Object.assign(Object.assign({}, t), { urlAfterRedirects: urlAfterRedirects })); })); }));
|
|
3127
3166
|
};
|
|
3128
3167
|
}
|
|
3129
3168
|
|
|
@@ -3186,9 +3225,7 @@
|
|
|
3186
3225
|
delete prevChildren[c.value.outlet];
|
|
3187
3226
|
});
|
|
3188
3227
|
// 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
|
-
});
|
|
3228
|
+
forEach(prevChildren, function (v, k) { return deactivateRouteAndItsChildren(v, contexts.getContext(k), checks); });
|
|
3192
3229
|
return checks;
|
|
3193
3230
|
}
|
|
3194
3231
|
function getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks) {
|
|
@@ -3284,13 +3321,6 @@
|
|
|
3284
3321
|
}
|
|
3285
3322
|
}
|
|
3286
3323
|
|
|
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
3324
|
var INITIAL_VALUE = Symbol('INITIAL_VALUE');
|
|
3295
3325
|
function prioritizedGuardValue() {
|
|
3296
3326
|
return operators.switchMap(function (obs) {
|
|
@@ -3334,21 +3364,19 @@
|
|
|
3334
3364
|
return source.pipe(operators.mergeMap(function (t) {
|
|
3335
3365
|
var targetSnapshot = t.targetSnapshot, currentSnapshot = t.currentSnapshot, _a = t.guards, canActivateChecks = _a.canActivateChecks, canDeactivateChecks = _a.canDeactivateChecks;
|
|
3336
3366
|
if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {
|
|
3337
|
-
return rxjs.of(
|
|
3367
|
+
return rxjs.of(Object.assign(Object.assign({}, t), { guardsResult: true }));
|
|
3338
3368
|
}
|
|
3339
3369
|
return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, moduleInjector)
|
|
3340
3370
|
.pipe(operators.mergeMap(function (canDeactivate) {
|
|
3341
3371
|
return canDeactivate && isBoolean(canDeactivate) ?
|
|
3342
3372
|
runCanActivateChecks(targetSnapshot, canActivateChecks, moduleInjector, forwardEvent) :
|
|
3343
3373
|
rxjs.of(canDeactivate);
|
|
3344
|
-
}), operators.map(function (guardsResult) { return (
|
|
3374
|
+
}), operators.map(function (guardsResult) { return (Object.assign(Object.assign({}, t), { guardsResult: guardsResult })); }));
|
|
3345
3375
|
}));
|
|
3346
3376
|
};
|
|
3347
3377
|
}
|
|
3348
3378
|
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) {
|
|
3379
|
+
return rxjs.from(checks).pipe(operators.mergeMap(function (check) { return runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector); }), operators.first(function (result) {
|
|
3352
3380
|
return result !== true;
|
|
3353
3381
|
}, true));
|
|
3354
3382
|
}
|
|
@@ -3465,13 +3493,6 @@
|
|
|
3465
3493
|
return rxjs.of(canDeactivateObservables).pipe(prioritizedGuardValue());
|
|
3466
3494
|
}
|
|
3467
3495
|
|
|
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
3496
|
var NoMatch$1 = /** @class */ (function () {
|
|
3476
3497
|
function NoMatch() {
|
|
3477
3498
|
}
|
|
@@ -3496,7 +3517,7 @@
|
|
|
3496
3517
|
try {
|
|
3497
3518
|
var rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config, this.relativeLinkResolution).segmentGroup;
|
|
3498
3519
|
var children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);
|
|
3499
|
-
var root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(
|
|
3520
|
+
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
3521
|
var rootNode = new TreeNode(root, children);
|
|
3501
3522
|
var routeState = new RouterStateSnapshot(this.url, rootNode);
|
|
3502
3523
|
this.inheritParamsAndData(routeState._root);
|
|
@@ -3566,13 +3587,13 @@
|
|
|
3566
3587
|
var rawSlicedSegments = [];
|
|
3567
3588
|
if (route.path === '**') {
|
|
3568
3589
|
var params = segments.length > 0 ? last(segments).parameters : {};
|
|
3569
|
-
snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(
|
|
3590
|
+
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
3591
|
}
|
|
3571
3592
|
else {
|
|
3572
3593
|
var result = match$1(rawSegment, route, segments);
|
|
3573
3594
|
consumedSegments = result.consumedSegments;
|
|
3574
3595
|
rawSlicedSegments = segments.slice(result.lastChild);
|
|
3575
|
-
snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(
|
|
3596
|
+
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
3597
|
}
|
|
3577
3598
|
var childConfig = getChildConfig(route);
|
|
3578
3599
|
var _a = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig, this.relativeLinkResolution), segmentGroup = _a.segmentGroup, slicedSegments = _a.slicedSegments;
|
|
@@ -3621,7 +3642,7 @@
|
|
|
3621
3642
|
forEach(res.posParams, function (v, k) {
|
|
3622
3643
|
posParams[k] = v.path;
|
|
3623
3644
|
});
|
|
3624
|
-
var parameters = res.consumed.length > 0 ?
|
|
3645
|
+
var parameters = res.consumed.length > 0 ? Object.assign(Object.assign({}, posParams), res.consumed[res.consumed.length - 1].parameters) :
|
|
3625
3646
|
posParams;
|
|
3626
3647
|
return { consumedSegments: res.consumed, lastChild: res.consumed.length, parameters: parameters };
|
|
3627
3648
|
}
|
|
@@ -3699,7 +3720,7 @@
|
|
|
3699
3720
|
}
|
|
3700
3721
|
finally { if (e_2) throw e_2.error; }
|
|
3701
3722
|
}
|
|
3702
|
-
return
|
|
3723
|
+
return Object.assign(Object.assign({}, children), res);
|
|
3703
3724
|
}
|
|
3704
3725
|
function createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {
|
|
3705
3726
|
var e_3, _a;
|
|
@@ -3759,7 +3780,7 @@
|
|
|
3759
3780
|
function recognize$1(rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {
|
|
3760
3781
|
return function (source) {
|
|
3761
3782
|
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 (
|
|
3783
|
+
.pipe(operators.map(function (targetSnapshot) { return (Object.assign(Object.assign({}, t), { targetSnapshot: targetSnapshot })); })); }));
|
|
3763
3784
|
};
|
|
3764
3785
|
}
|
|
3765
3786
|
|
|
@@ -3788,7 +3809,7 @@
|
|
|
3788
3809
|
return resolveNode(resolve, futureARS, futureRSS, moduleInjector)
|
|
3789
3810
|
.pipe(operators.map(function (resolvedData) {
|
|
3790
3811
|
futureARS._resolvedData = resolvedData;
|
|
3791
|
-
futureARS.data =
|
|
3812
|
+
futureARS.data = Object.assign(Object.assign({}, futureARS.data), inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve);
|
|
3792
3813
|
return null;
|
|
3793
3814
|
}));
|
|
3794
3815
|
}
|
|
@@ -4201,9 +4222,7 @@
|
|
|
4201
4222
|
var eventsSubject = this.events;
|
|
4202
4223
|
return transitions.pipe(operators.filter(function (t) { return t.id !== 0; }),
|
|
4203
4224
|
// Extract URL
|
|
4204
|
-
operators.map(function (t) {
|
|
4205
|
-
return (__assign(__assign({}, t), { extractedUrl: _this.urlHandlingStrategy.extract(t.rawUrl) }));
|
|
4206
|
-
}),
|
|
4225
|
+
operators.map(function (t) { return (Object.assign(Object.assign({}, t), { extractedUrl: _this.urlHandlingStrategy.extract(t.rawUrl) })); }),
|
|
4207
4226
|
// Using switchMap so we cancel executing navigations when a new one comes in
|
|
4208
4227
|
operators.switchMap(function (t) {
|
|
4209
4228
|
var completed = false;
|
|
@@ -4217,7 +4236,7 @@
|
|
|
4217
4236
|
extractedUrl: t.extractedUrl,
|
|
4218
4237
|
trigger: t.source,
|
|
4219
4238
|
extras: t.extras,
|
|
4220
|
-
previousNavigation: _this.lastSuccessfulNavigation ?
|
|
4239
|
+
previousNavigation: _this.lastSuccessfulNavigation ? Object.assign(Object.assign({}, _this.lastSuccessfulNavigation), { previousNavigation: null }) :
|
|
4221
4240
|
null
|
|
4222
4241
|
};
|
|
4223
4242
|
}), operators.switchMap(function (t) {
|
|
@@ -4243,7 +4262,7 @@
|
|
|
4243
4262
|
applyRedirects$1(_this.ngModule.injector, _this.configLoader, _this.urlSerializer, _this.config),
|
|
4244
4263
|
// Update the currentNavigation
|
|
4245
4264
|
operators.tap(function (t) {
|
|
4246
|
-
_this.currentNavigation =
|
|
4265
|
+
_this.currentNavigation = Object.assign(Object.assign({}, _this.currentNavigation), { finalUrl: t.urlAfterRedirects });
|
|
4247
4266
|
}),
|
|
4248
4267
|
// Recognize
|
|
4249
4268
|
recognize$1(_this.rootComponentType, _this.config, function (url) { return _this.serializeUrl(url); }, _this.paramsInheritanceStrategy, _this.relativeLinkResolution),
|
|
@@ -4273,7 +4292,7 @@
|
|
|
4273
4292
|
var navStart = new NavigationStart(id, _this.serializeUrl(extractedUrl), source, restoredState);
|
|
4274
4293
|
eventsSubject.next(navStart);
|
|
4275
4294
|
var targetSnapshot = createEmptyState(extractedUrl, _this.rootComponentType).snapshot;
|
|
4276
|
-
return rxjs.of(
|
|
4295
|
+
return rxjs.of(Object.assign(Object.assign({}, t), { targetSnapshot: targetSnapshot, urlAfterRedirects: extractedUrl, extras: Object.assign(Object.assign({}, extras), { skipLocationChange: false, replaceUrl: false }) }));
|
|
4277
4296
|
}
|
|
4278
4297
|
else {
|
|
4279
4298
|
/* When neither the current or previous URL can be processed, do nothing
|
|
@@ -4303,7 +4322,7 @@
|
|
|
4303
4322
|
operators.tap(function (t) {
|
|
4304
4323
|
var guardsStart = new GuardsCheckStart(t.id, _this.serializeUrl(t.extractedUrl), _this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
|
|
4305
4324
|
_this.triggerEvent(guardsStart);
|
|
4306
|
-
}), operators.map(function (t) { return (
|
|
4325
|
+
}), 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
4326
|
if (isUrlTree(t.guardsResult)) {
|
|
4308
4327
|
var error = navigationCancelingError("Redirecting to \"" + _this.serializeUrl(t.guardsResult) + "\"");
|
|
4309
4328
|
error.url = t.guardsResult;
|
|
@@ -4359,7 +4378,7 @@
|
|
|
4359
4378
|
});
|
|
4360
4379
|
}), operators.map(function (t) {
|
|
4361
4380
|
var targetRouterState = createRouterState(_this.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
|
|
4362
|
-
return (
|
|
4381
|
+
return (Object.assign(Object.assign({}, t), { targetRouterState: targetRouterState }));
|
|
4363
4382
|
}),
|
|
4364
4383
|
/* Once here, we are about to activate syncronously. The assumption is this
|
|
4365
4384
|
will succeed, and user code may read from the Router service. Therefore
|
|
@@ -4483,7 +4502,7 @@
|
|
|
4483
4502
|
return transition;
|
|
4484
4503
|
};
|
|
4485
4504
|
Router.prototype.setTransition = function (t) {
|
|
4486
|
-
this.transitions.next(
|
|
4505
|
+
this.transitions.next(Object.assign(Object.assign({}, this.getTransition()), t));
|
|
4487
4506
|
};
|
|
4488
4507
|
/**
|
|
4489
4508
|
* Sets up the location change listener and performs the initial navigation.
|
|
@@ -4621,7 +4640,7 @@
|
|
|
4621
4640
|
if (queryParamsHandling) {
|
|
4622
4641
|
switch (queryParamsHandling) {
|
|
4623
4642
|
case 'merge':
|
|
4624
|
-
q =
|
|
4643
|
+
q = Object.assign(Object.assign({}, this.currentUrlTree.queryParams), queryParams);
|
|
4625
4644
|
break;
|
|
4626
4645
|
case 'preserve':
|
|
4627
4646
|
q = this.currentUrlTree.queryParams;
|
|
@@ -4809,10 +4828,10 @@
|
|
|
4809
4828
|
state = state || {};
|
|
4810
4829
|
if (this.location.isCurrentPathEqualTo(path) || replaceUrl) {
|
|
4811
4830
|
// TODO(jasonaden): Remove first `navigationId` and rely on `ng` namespace.
|
|
4812
|
-
this.location.replaceState(path, '',
|
|
4831
|
+
this.location.replaceState(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
|
|
4813
4832
|
}
|
|
4814
4833
|
else {
|
|
4815
|
-
this.location.go(path, '',
|
|
4834
|
+
this.location.go(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
|
|
4816
4835
|
}
|
|
4817
4836
|
};
|
|
4818
4837
|
Router.prototype.resetStateAndUrl = function (storedState, storedUrl, rawUrl) {
|
|
@@ -4824,21 +4843,21 @@
|
|
|
4824
4843
|
Router.prototype.resetUrlToCurrentUrlTree = function () {
|
|
4825
4844
|
this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', { navigationId: this.lastSuccessfulId });
|
|
4826
4845
|
};
|
|
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
4846
|
return Router;
|
|
4841
4847
|
}());
|
|
4848
|
+
Router.decorators = [
|
|
4849
|
+
{ type: core.Injectable }
|
|
4850
|
+
];
|
|
4851
|
+
Router.ctorParameters = function () { return [
|
|
4852
|
+
{ type: core.Type },
|
|
4853
|
+
{ type: UrlSerializer },
|
|
4854
|
+
{ type: ChildrenOutletContexts },
|
|
4855
|
+
{ type: common.Location },
|
|
4856
|
+
{ type: core.Injector },
|
|
4857
|
+
{ type: core.NgModuleFactoryLoader },
|
|
4858
|
+
{ type: core.Compiler },
|
|
4859
|
+
{ type: undefined }
|
|
4860
|
+
]; };
|
|
4842
4861
|
function validateCommands(commands) {
|
|
4843
4862
|
for (var i = 0; i < commands.length; i++) {
|
|
4844
4863
|
var cmd = commands[i];
|
|
@@ -4960,8 +4979,7 @@
|
|
|
4960
4979
|
}
|
|
4961
4980
|
Object.defineProperty(RouterLink.prototype, "routerLink", {
|
|
4962
4981
|
/**
|
|
4963
|
-
*
|
|
4964
|
-
* Router#createUrlTree}.
|
|
4982
|
+
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4965
4983
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
4966
4984
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
4967
4985
|
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
@@ -5014,30 +5032,30 @@
|
|
|
5014
5032
|
enumerable: false,
|
|
5015
5033
|
configurable: true
|
|
5016
5034
|
});
|
|
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
5035
|
return RouterLink;
|
|
5040
5036
|
}());
|
|
5037
|
+
RouterLink.decorators = [
|
|
5038
|
+
{ type: core.Directive, args: [{ selector: ':not(a):not(area)[routerLink]' },] }
|
|
5039
|
+
];
|
|
5040
|
+
RouterLink.ctorParameters = function () { return [
|
|
5041
|
+
{ type: Router },
|
|
5042
|
+
{ type: ActivatedRoute },
|
|
5043
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] },
|
|
5044
|
+
{ type: core.Renderer2 },
|
|
5045
|
+
{ type: core.ElementRef }
|
|
5046
|
+
]; };
|
|
5047
|
+
RouterLink.propDecorators = {
|
|
5048
|
+
queryParams: [{ type: core.Input }],
|
|
5049
|
+
fragment: [{ type: core.Input }],
|
|
5050
|
+
queryParamsHandling: [{ type: core.Input }],
|
|
5051
|
+
preserveFragment: [{ type: core.Input }],
|
|
5052
|
+
skipLocationChange: [{ type: core.Input }],
|
|
5053
|
+
replaceUrl: [{ type: core.Input }],
|
|
5054
|
+
state: [{ type: core.Input }],
|
|
5055
|
+
routerLink: [{ type: core.Input }],
|
|
5056
|
+
preserveQueryParams: [{ type: core.Input }],
|
|
5057
|
+
onClick: [{ type: core.HostListener, args: ['click',] }]
|
|
5058
|
+
};
|
|
5041
5059
|
/**
|
|
5042
5060
|
* @description
|
|
5043
5061
|
*
|
|
@@ -5064,8 +5082,7 @@
|
|
|
5064
5082
|
}
|
|
5065
5083
|
Object.defineProperty(RouterLinkWithHref.prototype, "routerLink", {
|
|
5066
5084
|
/**
|
|
5067
|
-
*
|
|
5068
|
-
* Router#createUrlTree}.
|
|
5085
|
+
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
5069
5086
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
5070
5087
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
5071
5088
|
* - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
|
|
@@ -5133,30 +5150,30 @@
|
|
|
5133
5150
|
enumerable: false,
|
|
5134
5151
|
configurable: true
|
|
5135
5152
|
});
|
|
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
5153
|
return RouterLinkWithHref;
|
|
5159
5154
|
}());
|
|
5155
|
+
RouterLinkWithHref.decorators = [
|
|
5156
|
+
{ type: core.Directive, args: [{ selector: 'a[routerLink],area[routerLink]' },] }
|
|
5157
|
+
];
|
|
5158
|
+
RouterLinkWithHref.ctorParameters = function () { return [
|
|
5159
|
+
{ type: Router },
|
|
5160
|
+
{ type: ActivatedRoute },
|
|
5161
|
+
{ type: common.LocationStrategy }
|
|
5162
|
+
]; };
|
|
5163
|
+
RouterLinkWithHref.propDecorators = {
|
|
5164
|
+
target: [{ type: core.HostBinding, args: ['attr.target',] }, { type: core.Input }],
|
|
5165
|
+
queryParams: [{ type: core.Input }],
|
|
5166
|
+
fragment: [{ type: core.Input }],
|
|
5167
|
+
queryParamsHandling: [{ type: core.Input }],
|
|
5168
|
+
preserveFragment: [{ type: core.Input }],
|
|
5169
|
+
skipLocationChange: [{ type: core.Input }],
|
|
5170
|
+
replaceUrl: [{ type: core.Input }],
|
|
5171
|
+
state: [{ type: core.Input }],
|
|
5172
|
+
href: [{ type: core.HostBinding }],
|
|
5173
|
+
routerLink: [{ type: core.Input }],
|
|
5174
|
+
preserveQueryParams: [{ type: core.Input }],
|
|
5175
|
+
onClick: [{ type: core.HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
|
|
5176
|
+
};
|
|
5160
5177
|
function attrBoolValue(s) {
|
|
5161
5178
|
return s === '' || !!s;
|
|
5162
5179
|
}
|
|
@@ -5285,9 +5302,7 @@
|
|
|
5285
5302
|
};
|
|
5286
5303
|
RouterLinkActive.prototype.isLinkActive = function (router) {
|
|
5287
5304
|
var _this = this;
|
|
5288
|
-
return function (link) {
|
|
5289
|
-
return router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact);
|
|
5290
|
-
};
|
|
5305
|
+
return function (link) { return router.isActive(link.urlTree, _this.routerLinkActiveOptions.exact); };
|
|
5291
5306
|
};
|
|
5292
5307
|
RouterLinkActive.prototype.hasActiveLinks = function () {
|
|
5293
5308
|
var isActiveCheckFn = this.isLinkActive(this.router);
|
|
@@ -5295,28 +5310,28 @@
|
|
|
5295
5310
|
this.linkWithHref && isActiveCheckFn(this.linkWithHref) ||
|
|
5296
5311
|
this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
|
|
5297
5312
|
};
|
|
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
5313
|
return RouterLinkActive;
|
|
5319
5314
|
}());
|
|
5315
|
+
RouterLinkActive.decorators = [
|
|
5316
|
+
{ type: core.Directive, args: [{
|
|
5317
|
+
selector: '[routerLinkActive]',
|
|
5318
|
+
exportAs: 'routerLinkActive',
|
|
5319
|
+
},] }
|
|
5320
|
+
];
|
|
5321
|
+
RouterLinkActive.ctorParameters = function () { return [
|
|
5322
|
+
{ type: Router },
|
|
5323
|
+
{ type: core.ElementRef },
|
|
5324
|
+
{ type: core.Renderer2 },
|
|
5325
|
+
{ type: core.ChangeDetectorRef },
|
|
5326
|
+
{ type: RouterLink, decorators: [{ type: core.Optional }] },
|
|
5327
|
+
{ type: RouterLinkWithHref, decorators: [{ type: core.Optional }] }
|
|
5328
|
+
]; };
|
|
5329
|
+
RouterLinkActive.propDecorators = {
|
|
5330
|
+
links: [{ type: core.ContentChildren, args: [RouterLink, { descendants: true },] }],
|
|
5331
|
+
linksWithHrefs: [{ type: core.ContentChildren, args: [RouterLinkWithHref, { descendants: true },] }],
|
|
5332
|
+
routerLinkActiveOptions: [{ type: core.Input }],
|
|
5333
|
+
routerLinkActive: [{ type: core.Input }]
|
|
5334
|
+
};
|
|
5320
5335
|
|
|
5321
5336
|
/**
|
|
5322
5337
|
* @license
|
|
@@ -5465,22 +5480,22 @@
|
|
|
5465
5480
|
this.changeDetector.markForCheck();
|
|
5466
5481
|
this.activateEvents.emit(this.activated.instance);
|
|
5467
5482
|
};
|
|
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
5483
|
return RouterOutlet;
|
|
5483
5484
|
}());
|
|
5485
|
+
RouterOutlet.decorators = [
|
|
5486
|
+
{ type: core.Directive, args: [{ selector: 'router-outlet', exportAs: 'outlet' },] }
|
|
5487
|
+
];
|
|
5488
|
+
RouterOutlet.ctorParameters = function () { return [
|
|
5489
|
+
{ type: ChildrenOutletContexts },
|
|
5490
|
+
{ type: core.ViewContainerRef },
|
|
5491
|
+
{ type: core.ComponentFactoryResolver },
|
|
5492
|
+
{ type: String, decorators: [{ type: core.Attribute, args: ['name',] }] },
|
|
5493
|
+
{ type: core.ChangeDetectorRef }
|
|
5494
|
+
]; };
|
|
5495
|
+
RouterOutlet.propDecorators = {
|
|
5496
|
+
activateEvents: [{ type: core.Output, args: ['activate',] }],
|
|
5497
|
+
deactivateEvents: [{ type: core.Output, args: ['deactivate',] }]
|
|
5498
|
+
};
|
|
5484
5499
|
var OutletInjector = /** @class */ (function () {
|
|
5485
5500
|
function OutletInjector(route, childContexts, parent) {
|
|
5486
5501
|
this.route = route;
|
|
@@ -5499,13 +5514,6 @@
|
|
|
5499
5514
|
return OutletInjector;
|
|
5500
5515
|
}());
|
|
5501
5516
|
|
|
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
5517
|
/**
|
|
5510
5518
|
* @description
|
|
5511
5519
|
*
|
|
@@ -5632,18 +5640,18 @@
|
|
|
5632
5640
|
}));
|
|
5633
5641
|
});
|
|
5634
5642
|
};
|
|
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
5643
|
return RouterPreloader;
|
|
5646
5644
|
}());
|
|
5645
|
+
RouterPreloader.decorators = [
|
|
5646
|
+
{ type: core.Injectable }
|
|
5647
|
+
];
|
|
5648
|
+
RouterPreloader.ctorParameters = function () { return [
|
|
5649
|
+
{ type: Router },
|
|
5650
|
+
{ type: core.NgModuleFactoryLoader },
|
|
5651
|
+
{ type: core.Compiler },
|
|
5652
|
+
{ type: core.Injector },
|
|
5653
|
+
{ type: PreloadingStrategy }
|
|
5654
|
+
]; };
|
|
5647
5655
|
|
|
5648
5656
|
/**
|
|
5649
5657
|
* @license
|
|
@@ -5728,16 +5736,16 @@
|
|
|
5728
5736
|
this.scrollEventsSubscription.unsubscribe();
|
|
5729
5737
|
}
|
|
5730
5738
|
};
|
|
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
5739
|
return RouterScroller;
|
|
5740
5740
|
}());
|
|
5741
|
+
RouterScroller.decorators = [
|
|
5742
|
+
{ type: core.Injectable }
|
|
5743
|
+
];
|
|
5744
|
+
RouterScroller.ctorParameters = function () { return [
|
|
5745
|
+
{ type: Router },
|
|
5746
|
+
{ type: common.ViewportScroller },
|
|
5747
|
+
{ type: undefined }
|
|
5748
|
+
]; };
|
|
5741
5749
|
|
|
5742
5750
|
/**
|
|
5743
5751
|
* @license
|
|
@@ -5885,19 +5893,19 @@
|
|
|
5885
5893
|
RouterModule.forChild = function (routes) {
|
|
5886
5894
|
return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
|
|
5887
5895
|
};
|
|
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
5896
|
return RouterModule;
|
|
5900
5897
|
}());
|
|
5898
|
+
RouterModule.decorators = [
|
|
5899
|
+
{ type: core.NgModule, args: [{
|
|
5900
|
+
declarations: ROUTER_DIRECTIVES,
|
|
5901
|
+
exports: ROUTER_DIRECTIVES,
|
|
5902
|
+
entryComponents: [ɵEmptyOutletComponent]
|
|
5903
|
+
},] }
|
|
5904
|
+
];
|
|
5905
|
+
RouterModule.ctorParameters = function () { return [
|
|
5906
|
+
{ type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [ROUTER_FORROOT_GUARD,] }] },
|
|
5907
|
+
{ type: Router, decorators: [{ type: core.Optional }] }
|
|
5908
|
+
]; };
|
|
5901
5909
|
function createRouterScroller(router, viewportScroller, config) {
|
|
5902
5910
|
if (config.scrollOffset) {
|
|
5903
5911
|
viewportScroller.setOffset(config.scrollOffset);
|
|
@@ -6059,14 +6067,14 @@
|
|
|
6059
6067
|
RouterInitializer.prototype.isLegacyDisabled = function (opts) {
|
|
6060
6068
|
return opts.initialNavigation === 'legacy_disabled' || opts.initialNavigation === false;
|
|
6061
6069
|
};
|
|
6062
|
-
RouterInitializer.decorators = [
|
|
6063
|
-
{ type: core.Injectable }
|
|
6064
|
-
];
|
|
6065
|
-
RouterInitializer.ctorParameters = function () { return [
|
|
6066
|
-
{ type: core.Injector }
|
|
6067
|
-
]; };
|
|
6068
6070
|
return RouterInitializer;
|
|
6069
6071
|
}());
|
|
6072
|
+
RouterInitializer.decorators = [
|
|
6073
|
+
{ type: core.Injectable }
|
|
6074
|
+
];
|
|
6075
|
+
RouterInitializer.ctorParameters = function () { return [
|
|
6076
|
+
{ type: core.Injector }
|
|
6077
|
+
]; };
|
|
6070
6078
|
function getAppInitializer(r) {
|
|
6071
6079
|
return r.appInitializer.bind(r);
|
|
6072
6080
|
}
|
|
@@ -6104,7 +6112,7 @@
|
|
|
6104
6112
|
/**
|
|
6105
6113
|
* @publicApi
|
|
6106
6114
|
*/
|
|
6107
|
-
var VERSION = new core.Version('10.0.
|
|
6115
|
+
var VERSION = new core.Version('10.0.4');
|
|
6108
6116
|
|
|
6109
6117
|
/**
|
|
6110
6118
|
* @license
|