@ngxs/router-plugin 3.8.1 → 3.8.2
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/ngxs-router-plugin.umd.js +882 -794
- package/bundles/ngxs-router-plugin.umd.js.map +1 -1
- package/esm2015/src/router.actions.js +8 -29
- package/fesm2015/ngxs-router-plugin.js +7 -28
- package/fesm2015/ngxs-router-plugin.js.map +1 -1
- package/package.json +4 -4
- package/src/router.actions.d.ts +7 -7
|
@@ -1,815 +1,903 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngxs/store'), require('@angular/router'), require('rxjs')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@ngxs/router-plugin', ['exports', '@angular/core', '@ngxs/store', '@angular/router', 'rxjs'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ngxs = global.ngxs || {}, global.ngxs["router-plugin"] = {}), global.ng.core, global["ngxs-store"], global.ng.router, global.rxjs));
|
|
5
5
|
})(this, (function (exports, i0, i1, i2, rxjs) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
});
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
return Object.freeze(n);
|
|
19
|
+
});
|
|
23
20
|
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/******************************************************************************
|
|
30
|
+
Copyright (c) Microsoft Corporation.
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
33
|
+
purpose with or without fee is hereby granted.
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
35
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
36
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
38
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
39
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
40
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
41
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
42
|
+
***************************************************************************** */
|
|
43
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
44
|
+
var extendStatics = function (d, b) {
|
|
45
|
+
extendStatics = Object.setPrototypeOf ||
|
|
46
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
47
|
+
function (d, b) { for (var p in b)
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
49
|
+
d[p] = b[p]; };
|
|
50
|
+
return extendStatics(d, b);
|
|
51
|
+
};
|
|
52
|
+
function __extends(d, b) {
|
|
53
|
+
if (typeof b !== "function" && b !== null)
|
|
54
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
55
|
+
extendStatics(d, b);
|
|
56
|
+
function __() { this.constructor = d; }
|
|
57
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
58
|
+
}
|
|
59
|
+
var __assign = function () {
|
|
60
|
+
__assign = Object.assign || function __assign(t) {
|
|
61
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
62
|
+
s = arguments[i];
|
|
63
|
+
for (var p in s)
|
|
64
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
65
|
+
t[p] = s[p];
|
|
66
|
+
}
|
|
67
|
+
return t;
|
|
68
|
+
};
|
|
69
|
+
return __assign.apply(this, arguments);
|
|
70
|
+
};
|
|
71
|
+
function __rest(s, e) {
|
|
72
|
+
var t = {};
|
|
73
|
+
for (var p in s)
|
|
74
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
75
|
+
t[p] = s[p];
|
|
76
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
77
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
78
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
79
|
+
t[p[i]] = s[p[i]];
|
|
80
|
+
}
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
function __decorate(decorators, target, key, desc) {
|
|
84
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
85
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
86
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
87
|
+
else
|
|
88
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
89
|
+
if (d = decorators[i])
|
|
90
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
91
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
92
|
+
}
|
|
93
|
+
function __param(paramIndex, decorator) {
|
|
94
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
95
|
+
}
|
|
96
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
97
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function")
|
|
98
|
+
throw new TypeError("Function expected"); return f; }
|
|
99
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
100
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
101
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
102
|
+
var _, done = false;
|
|
103
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
104
|
+
var context = {};
|
|
105
|
+
for (var p in contextIn)
|
|
106
|
+
context[p] = p === "access" ? {} : contextIn[p];
|
|
107
|
+
for (var p in contextIn.access)
|
|
108
|
+
context.access[p] = contextIn.access[p];
|
|
109
|
+
context.addInitializer = function (f) { if (done)
|
|
110
|
+
throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
111
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
112
|
+
if (kind === "accessor") {
|
|
113
|
+
if (result === void 0)
|
|
114
|
+
continue;
|
|
115
|
+
if (result === null || typeof result !== "object")
|
|
116
|
+
throw new TypeError("Object expected");
|
|
117
|
+
if (_ = accept(result.get))
|
|
118
|
+
descriptor.get = _;
|
|
119
|
+
if (_ = accept(result.set))
|
|
120
|
+
descriptor.set = _;
|
|
121
|
+
if (_ = accept(result.init))
|
|
122
|
+
initializers.unshift(_);
|
|
123
|
+
}
|
|
124
|
+
else if (_ = accept(result)) {
|
|
125
|
+
if (kind === "field")
|
|
126
|
+
initializers.unshift(_);
|
|
127
|
+
else
|
|
128
|
+
descriptor[key] = _;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (target)
|
|
132
|
+
Object.defineProperty(target, contextIn.name, descriptor);
|
|
133
|
+
done = true;
|
|
134
|
+
}
|
|
135
|
+
;
|
|
136
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
137
|
+
var useValue = arguments.length > 2;
|
|
138
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
139
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
140
|
+
}
|
|
141
|
+
return useValue ? value : void 0;
|
|
142
|
+
}
|
|
143
|
+
;
|
|
144
|
+
function __propKey(x) {
|
|
145
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
146
|
+
}
|
|
147
|
+
;
|
|
148
|
+
function __setFunctionName(f, name, prefix) {
|
|
149
|
+
if (typeof name === "symbol")
|
|
150
|
+
name = name.description ? "[".concat(name.description, "]") : "";
|
|
151
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
152
|
+
}
|
|
153
|
+
;
|
|
154
|
+
function __metadata(metadataKey, metadataValue) {
|
|
155
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
156
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
157
|
+
}
|
|
158
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
159
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
160
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
161
|
+
function fulfilled(value) { try {
|
|
162
|
+
step(generator.next(value));
|
|
163
|
+
}
|
|
164
|
+
catch (e) {
|
|
165
|
+
reject(e);
|
|
166
|
+
} }
|
|
167
|
+
function rejected(value) { try {
|
|
168
|
+
step(generator["throw"](value));
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
reject(e);
|
|
172
|
+
} }
|
|
173
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
174
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
function __generator(thisArg, body) {
|
|
178
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
179
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
180
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
181
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
182
|
+
function step(op) {
|
|
183
|
+
if (f)
|
|
184
|
+
throw new TypeError("Generator is already executing.");
|
|
185
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
|
186
|
+
try {
|
|
187
|
+
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)
|
|
188
|
+
return t;
|
|
189
|
+
if (y = 0, t)
|
|
190
|
+
op = [op[0] & 2, t.value];
|
|
191
|
+
switch (op[0]) {
|
|
192
|
+
case 0:
|
|
193
|
+
case 1:
|
|
194
|
+
t = op;
|
|
195
|
+
break;
|
|
196
|
+
case 4:
|
|
197
|
+
_.label++;
|
|
198
|
+
return { value: op[1], done: false };
|
|
199
|
+
case 5:
|
|
200
|
+
_.label++;
|
|
201
|
+
y = op[1];
|
|
202
|
+
op = [0];
|
|
203
|
+
continue;
|
|
204
|
+
case 7:
|
|
205
|
+
op = _.ops.pop();
|
|
206
|
+
_.trys.pop();
|
|
207
|
+
continue;
|
|
208
|
+
default:
|
|
209
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
210
|
+
_ = 0;
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
214
|
+
_.label = op[1];
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
218
|
+
_.label = t[1];
|
|
219
|
+
t = op;
|
|
220
|
+
break;
|
|
221
|
+
}
|
|
222
|
+
if (t && _.label < t[2]) {
|
|
223
|
+
_.label = t[2];
|
|
224
|
+
_.ops.push(op);
|
|
225
|
+
break;
|
|
226
|
+
}
|
|
227
|
+
if (t[2])
|
|
228
|
+
_.ops.pop();
|
|
229
|
+
_.trys.pop();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
op = body.call(thisArg, _);
|
|
233
|
+
}
|
|
234
|
+
catch (e) {
|
|
235
|
+
op = [6, e];
|
|
236
|
+
y = 0;
|
|
237
|
+
}
|
|
238
|
+
finally {
|
|
239
|
+
f = t = 0;
|
|
240
|
+
}
|
|
241
|
+
if (op[0] & 5)
|
|
242
|
+
throw op[1];
|
|
243
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
247
|
+
if (k2 === undefined)
|
|
248
|
+
k2 = k;
|
|
249
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
250
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
251
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
252
|
+
}
|
|
253
|
+
Object.defineProperty(o, k2, desc);
|
|
254
|
+
}) : (function (o, m, k, k2) {
|
|
255
|
+
if (k2 === undefined)
|
|
256
|
+
k2 = k;
|
|
257
|
+
o[k2] = m[k];
|
|
258
|
+
});
|
|
259
|
+
function __exportStar(m, o) {
|
|
260
|
+
for (var p in m)
|
|
261
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
262
|
+
__createBinding(o, m, p);
|
|
263
|
+
}
|
|
264
|
+
function __values(o) {
|
|
265
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
266
|
+
if (m)
|
|
267
|
+
return m.call(o);
|
|
268
|
+
if (o && typeof o.length === "number")
|
|
269
|
+
return {
|
|
270
|
+
next: function () {
|
|
271
|
+
if (o && i >= o.length)
|
|
272
|
+
o = void 0;
|
|
273
|
+
return { value: o && o[i++], done: !o };
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
277
|
+
}
|
|
278
|
+
function __read(o, n) {
|
|
279
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
280
|
+
if (!m)
|
|
281
|
+
return o;
|
|
282
|
+
var i = m.call(o), r, ar = [], e;
|
|
283
|
+
try {
|
|
284
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
285
|
+
ar.push(r.value);
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
e = { error: error };
|
|
289
|
+
}
|
|
290
|
+
finally {
|
|
291
|
+
try {
|
|
292
|
+
if (r && !r.done && (m = i["return"]))
|
|
293
|
+
m.call(i);
|
|
294
|
+
}
|
|
295
|
+
finally {
|
|
296
|
+
if (e)
|
|
297
|
+
throw e.error;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return ar;
|
|
301
|
+
}
|
|
302
|
+
/** @deprecated */
|
|
303
|
+
function __spread() {
|
|
304
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
305
|
+
ar = ar.concat(__read(arguments[i]));
|
|
306
|
+
return ar;
|
|
307
|
+
}
|
|
308
|
+
/** @deprecated */
|
|
309
|
+
function __spreadArrays() {
|
|
310
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
311
|
+
s += arguments[i].length;
|
|
312
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
313
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
314
|
+
r[k] = a[j];
|
|
315
|
+
return r;
|
|
316
|
+
}
|
|
317
|
+
function __spreadArray(to, from, pack) {
|
|
318
|
+
if (pack || arguments.length === 2)
|
|
319
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
320
|
+
if (ar || !(i in from)) {
|
|
321
|
+
if (!ar)
|
|
322
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
323
|
+
ar[i] = from[i];
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
327
|
+
}
|
|
328
|
+
function __await(v) {
|
|
329
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
330
|
+
}
|
|
331
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
332
|
+
if (!Symbol.asyncIterator)
|
|
333
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
334
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
335
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
336
|
+
function verb(n) { if (g[n])
|
|
337
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
338
|
+
function resume(n, v) { try {
|
|
339
|
+
step(g[n](v));
|
|
340
|
+
}
|
|
341
|
+
catch (e) {
|
|
342
|
+
settle(q[0][3], e);
|
|
343
|
+
} }
|
|
344
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
345
|
+
function fulfill(value) { resume("next", value); }
|
|
346
|
+
function reject(value) { resume("throw", value); }
|
|
347
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
348
|
+
resume(q[0][0], q[0][1]); }
|
|
349
|
+
}
|
|
350
|
+
function __asyncDelegator(o) {
|
|
351
|
+
var i, p;
|
|
352
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
353
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
354
|
+
}
|
|
355
|
+
function __asyncValues(o) {
|
|
356
|
+
if (!Symbol.asyncIterator)
|
|
357
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
358
|
+
var m = o[Symbol.asyncIterator], i;
|
|
359
|
+
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);
|
|
360
|
+
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); }); }; }
|
|
361
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
362
|
+
}
|
|
363
|
+
function __makeTemplateObject(cooked, raw) {
|
|
364
|
+
if (Object.defineProperty) {
|
|
365
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
cooked.raw = raw;
|
|
369
|
+
}
|
|
370
|
+
return cooked;
|
|
371
|
+
}
|
|
372
|
+
;
|
|
373
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
374
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
375
|
+
}) : function (o, v) {
|
|
376
|
+
o["default"] = v;
|
|
377
|
+
};
|
|
378
|
+
function __importStar(mod) {
|
|
379
|
+
if (mod && mod.__esModule)
|
|
380
|
+
return mod;
|
|
381
|
+
var result = {};
|
|
382
|
+
if (mod != null)
|
|
383
|
+
for (var k in mod)
|
|
384
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
385
|
+
__createBinding(result, mod, k);
|
|
386
|
+
__setModuleDefault(result, mod);
|
|
387
|
+
return result;
|
|
388
|
+
}
|
|
389
|
+
function __importDefault(mod) {
|
|
390
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
391
|
+
}
|
|
392
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
393
|
+
if (kind === "a" && !f)
|
|
394
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
395
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
396
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
397
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
398
|
+
}
|
|
399
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
400
|
+
if (kind === "m")
|
|
401
|
+
throw new TypeError("Private method is not writable");
|
|
402
|
+
if (kind === "a" && !f)
|
|
403
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
404
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
405
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
406
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
407
|
+
}
|
|
408
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
409
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
410
|
+
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
411
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
412
|
+
}
|
|
413
|
+
function __addDisposableResource(env, value, async) {
|
|
414
|
+
if (value !== null && value !== void 0) {
|
|
415
|
+
if (typeof value !== "object" && typeof value !== "function")
|
|
416
|
+
throw new TypeError("Object expected.");
|
|
417
|
+
var dispose;
|
|
418
|
+
if (async) {
|
|
419
|
+
if (!Symbol.asyncDispose)
|
|
420
|
+
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
421
|
+
dispose = value[Symbol.asyncDispose];
|
|
422
|
+
}
|
|
423
|
+
if (dispose === void 0) {
|
|
424
|
+
if (!Symbol.dispose)
|
|
425
|
+
throw new TypeError("Symbol.dispose is not defined.");
|
|
426
|
+
dispose = value[Symbol.dispose];
|
|
427
|
+
}
|
|
428
|
+
if (typeof dispose !== "function")
|
|
429
|
+
throw new TypeError("Object not disposable.");
|
|
430
|
+
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
431
|
+
}
|
|
432
|
+
else if (async) {
|
|
433
|
+
env.stack.push({ async: true });
|
|
434
|
+
}
|
|
435
|
+
return value;
|
|
436
|
+
}
|
|
437
|
+
var _SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
438
|
+
var e = new Error(message);
|
|
439
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
440
|
+
};
|
|
441
|
+
function __disposeResources(env) {
|
|
442
|
+
function fail(e) {
|
|
443
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
444
|
+
env.hasError = true;
|
|
445
|
+
}
|
|
446
|
+
function next() {
|
|
447
|
+
while (env.stack.length) {
|
|
448
|
+
var rec = env.stack.pop();
|
|
449
|
+
try {
|
|
450
|
+
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
451
|
+
if (rec.async)
|
|
452
|
+
return Promise.resolve(result).then(next, function (e) { fail(e); return next(); });
|
|
453
|
+
}
|
|
454
|
+
catch (e) {
|
|
455
|
+
fail(e);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
if (env.hasError)
|
|
459
|
+
throw env.error;
|
|
460
|
+
}
|
|
461
|
+
return next();
|
|
462
|
+
}
|
|
463
|
+
var tslib_es6 = {
|
|
464
|
+
__extends: __extends,
|
|
465
|
+
__assign: __assign,
|
|
466
|
+
__rest: __rest,
|
|
467
|
+
__decorate: __decorate,
|
|
468
|
+
__param: __param,
|
|
469
|
+
__metadata: __metadata,
|
|
470
|
+
__awaiter: __awaiter,
|
|
471
|
+
__generator: __generator,
|
|
472
|
+
__createBinding: __createBinding,
|
|
473
|
+
__exportStar: __exportStar,
|
|
474
|
+
__values: __values,
|
|
475
|
+
__read: __read,
|
|
476
|
+
__spread: __spread,
|
|
477
|
+
__spreadArrays: __spreadArrays,
|
|
478
|
+
__spreadArray: __spreadArray,
|
|
479
|
+
__await: __await,
|
|
480
|
+
__asyncGenerator: __asyncGenerator,
|
|
481
|
+
__asyncDelegator: __asyncDelegator,
|
|
482
|
+
__asyncValues: __asyncValues,
|
|
483
|
+
__makeTemplateObject: __makeTemplateObject,
|
|
484
|
+
__importStar: __importStar,
|
|
485
|
+
__importDefault: __importDefault,
|
|
486
|
+
__classPrivateFieldGet: __classPrivateFieldGet,
|
|
487
|
+
__classPrivateFieldSet: __classPrivateFieldSet,
|
|
488
|
+
__classPrivateFieldIn: __classPrivateFieldIn,
|
|
489
|
+
__addDisposableResource: __addDisposableResource,
|
|
490
|
+
__disposeResources: __disposeResources,
|
|
491
|
+
};
|
|
355
492
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
get: function () {
|
|
454
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
455
|
-
return '[Router] RouterError';
|
|
456
|
-
},
|
|
457
|
-
enumerable: false,
|
|
458
|
-
configurable: true
|
|
459
|
-
});
|
|
460
|
-
return RouterError;
|
|
461
|
-
}());
|
|
462
|
-
/**
|
|
463
|
-
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
464
|
-
*/
|
|
465
|
-
var RouterDataResolved = /** @class */ (function () {
|
|
466
|
-
function RouterDataResolved(routerState, event, trigger) {
|
|
467
|
-
if (trigger === void 0) { trigger = 'none'; }
|
|
468
|
-
this.routerState = routerState;
|
|
469
|
-
this.event = event;
|
|
470
|
-
this.trigger = trigger;
|
|
471
|
-
}
|
|
472
|
-
Object.defineProperty(RouterDataResolved, "type", {
|
|
473
|
-
get: function () {
|
|
474
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
475
|
-
return '[Router] RouterDataResolved';
|
|
476
|
-
},
|
|
477
|
-
enumerable: false,
|
|
478
|
-
configurable: true
|
|
479
|
-
});
|
|
480
|
-
return RouterDataResolved;
|
|
481
|
-
}());
|
|
482
|
-
/**
|
|
483
|
-
* An action dispatched when the router navigation has been finished successfully.
|
|
484
|
-
*/
|
|
485
|
-
var RouterNavigated = /** @class */ (function () {
|
|
486
|
-
function RouterNavigated(routerState, event, trigger) {
|
|
487
|
-
if (trigger === void 0) { trigger = 'none'; }
|
|
488
|
-
this.routerState = routerState;
|
|
489
|
-
this.event = event;
|
|
490
|
-
this.trigger = trigger;
|
|
491
|
-
}
|
|
492
|
-
Object.defineProperty(RouterNavigated, "type", {
|
|
493
|
-
get: function () {
|
|
494
|
-
// NOTE: Not necessary to declare the type in this way in your code. See https://github.com/ngxs/store/pull/644#issuecomment-436003138
|
|
495
|
-
return '[Router] RouterNavigated';
|
|
496
|
-
},
|
|
497
|
-
enumerable: false,
|
|
498
|
-
configurable: true
|
|
499
|
-
});
|
|
500
|
-
return RouterNavigated;
|
|
501
|
-
}());
|
|
493
|
+
/**
|
|
494
|
+
* Public event api of the router
|
|
495
|
+
*/
|
|
496
|
+
var Navigate = /** @class */ (function () {
|
|
497
|
+
function Navigate(path, queryParams, extras) {
|
|
498
|
+
this.path = path;
|
|
499
|
+
this.queryParams = queryParams;
|
|
500
|
+
this.extras = extras;
|
|
501
|
+
}
|
|
502
|
+
return Navigate;
|
|
503
|
+
}());
|
|
504
|
+
Navigate.type = '[Router] Navigate';
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* Angular Routers internal state events
|
|
508
|
+
*
|
|
509
|
+
*/
|
|
510
|
+
/**
|
|
511
|
+
* An action dispatched when the router starts the navigation.
|
|
512
|
+
*/
|
|
513
|
+
var RouterRequest = /** @class */ (function () {
|
|
514
|
+
function RouterRequest(routerState, event, trigger) {
|
|
515
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
516
|
+
this.routerState = routerState;
|
|
517
|
+
this.event = event;
|
|
518
|
+
this.trigger = trigger;
|
|
519
|
+
}
|
|
520
|
+
return RouterRequest;
|
|
521
|
+
}());
|
|
522
|
+
RouterRequest.type = '[Router] RouterRequest';
|
|
523
|
+
/**
|
|
524
|
+
* An action dispatched when the router navigates.
|
|
525
|
+
*/
|
|
526
|
+
var RouterNavigation = /** @class */ (function () {
|
|
527
|
+
function RouterNavigation(routerState, event, trigger) {
|
|
528
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
529
|
+
this.routerState = routerState;
|
|
530
|
+
this.event = event;
|
|
531
|
+
this.trigger = trigger;
|
|
532
|
+
}
|
|
533
|
+
return RouterNavigation;
|
|
534
|
+
}());
|
|
535
|
+
RouterNavigation.type = '[Router] RouterNavigation';
|
|
536
|
+
/**
|
|
537
|
+
* An action dispatched when the router cancel navigation.
|
|
538
|
+
*/
|
|
539
|
+
var RouterCancel = /** @class */ (function () {
|
|
540
|
+
function RouterCancel(routerState, storeState, event, trigger) {
|
|
541
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
542
|
+
this.routerState = routerState;
|
|
543
|
+
this.storeState = storeState;
|
|
544
|
+
this.event = event;
|
|
545
|
+
this.trigger = trigger;
|
|
546
|
+
}
|
|
547
|
+
return RouterCancel;
|
|
548
|
+
}());
|
|
549
|
+
RouterCancel.type = '[Router] RouterCancel';
|
|
550
|
+
/**
|
|
551
|
+
* An action dispatched when the router errors.
|
|
552
|
+
*/
|
|
553
|
+
var RouterError = /** @class */ (function () {
|
|
554
|
+
function RouterError(routerState, storeState, event, trigger) {
|
|
555
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
556
|
+
this.routerState = routerState;
|
|
557
|
+
this.storeState = storeState;
|
|
558
|
+
this.event = event;
|
|
559
|
+
this.trigger = trigger;
|
|
560
|
+
}
|
|
561
|
+
return RouterError;
|
|
562
|
+
}());
|
|
563
|
+
RouterError.type = '[Router] RouterError';
|
|
564
|
+
/**
|
|
565
|
+
* An action dispatched when the `ResolveEnd` event is triggered.
|
|
566
|
+
*/
|
|
567
|
+
var RouterDataResolved = /** @class */ (function () {
|
|
568
|
+
function RouterDataResolved(routerState, event, trigger) {
|
|
569
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
570
|
+
this.routerState = routerState;
|
|
571
|
+
this.event = event;
|
|
572
|
+
this.trigger = trigger;
|
|
573
|
+
}
|
|
574
|
+
return RouterDataResolved;
|
|
575
|
+
}());
|
|
576
|
+
RouterDataResolved.type = '[Router] RouterDataResolved';
|
|
577
|
+
/**
|
|
578
|
+
* An action dispatched when the router navigation has been finished successfully.
|
|
579
|
+
*/
|
|
580
|
+
var RouterNavigated = /** @class */ (function () {
|
|
581
|
+
function RouterNavigated(routerState, event, trigger) {
|
|
582
|
+
if (trigger === void 0) { trigger = 'none'; }
|
|
583
|
+
this.routerState = routerState;
|
|
584
|
+
this.event = event;
|
|
585
|
+
this.trigger = trigger;
|
|
586
|
+
}
|
|
587
|
+
return RouterNavigated;
|
|
588
|
+
}());
|
|
589
|
+
RouterNavigated.type = '[Router] RouterNavigated';
|
|
502
590
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
591
|
+
var RouterStateSerializer = /** @class */ (function () {
|
|
592
|
+
function RouterStateSerializer() {
|
|
593
|
+
}
|
|
594
|
+
return RouterStateSerializer;
|
|
595
|
+
}());
|
|
596
|
+
var DefaultRouterStateSerializer = /** @class */ (function () {
|
|
597
|
+
function DefaultRouterStateSerializer() {
|
|
598
|
+
}
|
|
599
|
+
DefaultRouterStateSerializer.prototype.serialize = function (routerState) {
|
|
600
|
+
return {
|
|
601
|
+
root: this.serializeRoute(routerState.root),
|
|
602
|
+
url: routerState.url
|
|
603
|
+
};
|
|
604
|
+
};
|
|
605
|
+
DefaultRouterStateSerializer.prototype.serializeRoute = function (route) {
|
|
606
|
+
var _this = this;
|
|
607
|
+
var children = route.children.map(function (c) { return _this.serializeRoute(c); });
|
|
608
|
+
return {
|
|
609
|
+
url: route.url,
|
|
610
|
+
params: route.params,
|
|
611
|
+
queryParams: route.queryParams,
|
|
612
|
+
fragment: route.fragment,
|
|
613
|
+
data: route.data,
|
|
614
|
+
outlet: route.outlet,
|
|
615
|
+
component: null,
|
|
616
|
+
routeConfig: null,
|
|
617
|
+
root: null,
|
|
618
|
+
parent: null,
|
|
619
|
+
firstChild: children[0],
|
|
620
|
+
children: children,
|
|
621
|
+
pathFromRoot: null,
|
|
622
|
+
paramMap: route.paramMap,
|
|
623
|
+
queryParamMap: route.queryParamMap,
|
|
624
|
+
toString: route.toString
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
return DefaultRouterStateSerializer;
|
|
628
|
+
}());
|
|
541
629
|
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
630
|
+
var USER_OPTIONS = new i0.InjectionToken('USER_OPTIONS', { providedIn: 'root', factory: function () { return undefined; } });
|
|
631
|
+
var NGXS_ROUTER_PLUGIN_OPTIONS = new i0.InjectionToken('NGXS_ROUTER_PLUGIN_OPTIONS', { providedIn: 'root', factory: function () { return ({}); } });
|
|
632
|
+
function createRouterPluginOptions(options) {
|
|
633
|
+
return {
|
|
634
|
+
navigationActionTiming: (options && options.navigationActionTiming) || 1 /* PreActivation */
|
|
635
|
+
};
|
|
636
|
+
}
|
|
549
637
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
638
|
+
var RouterState_1;
|
|
639
|
+
exports.RouterState = RouterState_1 = /** @class */ (function () {
|
|
640
|
+
function RouterState(_store, _router, _serializer, _ngZone, injector) {
|
|
641
|
+
this._store = _store;
|
|
642
|
+
this._router = _router;
|
|
643
|
+
this._serializer = _serializer;
|
|
644
|
+
this._ngZone = _ngZone;
|
|
645
|
+
/**
|
|
646
|
+
* Determines how navigation was performed by the `RouterState` itself
|
|
647
|
+
* or outside via `new Navigate(...)`
|
|
648
|
+
*/
|
|
649
|
+
this._trigger = 'none';
|
|
650
|
+
/**
|
|
651
|
+
* That's the serialized state from the `Router` class
|
|
652
|
+
*/
|
|
653
|
+
this._routerState = null;
|
|
654
|
+
/**
|
|
655
|
+
* That's the value of the `RouterState` state
|
|
656
|
+
*/
|
|
657
|
+
this._storeState = null;
|
|
658
|
+
this._lastEvent = null;
|
|
659
|
+
this._subscription = new rxjs.Subscription();
|
|
660
|
+
this._options = null;
|
|
661
|
+
// Note: do not use `@Inject` since it fails on lower versions of Angular with Jest
|
|
662
|
+
// integration, it cannot resolve the token provider.
|
|
663
|
+
this._options = injector.get(NGXS_ROUTER_PLUGIN_OPTIONS, null);
|
|
664
|
+
this._setUpStoreListener();
|
|
665
|
+
this._setUpRouterEventsListener();
|
|
666
|
+
}
|
|
667
|
+
RouterState.state = function (state) {
|
|
668
|
+
return state && state.state;
|
|
669
|
+
};
|
|
670
|
+
RouterState.url = function (state) {
|
|
671
|
+
return state && state.state && state.state.url;
|
|
672
|
+
};
|
|
673
|
+
RouterState.prototype.ngOnDestroy = function () {
|
|
674
|
+
this._subscription.unsubscribe();
|
|
675
|
+
};
|
|
676
|
+
RouterState.prototype.navigate = function (_, action) {
|
|
677
|
+
var _this = this;
|
|
678
|
+
return this._ngZone.run(function () { return _this._router.navigate(action.path, Object.assign({ queryParams: action.queryParams }, action.extras)); });
|
|
679
|
+
};
|
|
680
|
+
RouterState.prototype.angularRouterAction = function (ctx, action) {
|
|
681
|
+
ctx.setState({
|
|
682
|
+
trigger: action.trigger,
|
|
683
|
+
state: action.routerState,
|
|
684
|
+
navigationId: action.event.id
|
|
685
|
+
});
|
|
686
|
+
};
|
|
687
|
+
RouterState.prototype._setUpStoreListener = function () {
|
|
688
|
+
var _this = this;
|
|
689
|
+
var subscription = this._store
|
|
690
|
+
.select(RouterState_1)
|
|
691
|
+
.subscribe(function (state) {
|
|
692
|
+
_this._navigateIfNeeded(state);
|
|
693
|
+
});
|
|
694
|
+
this._subscription.add(subscription);
|
|
695
|
+
};
|
|
696
|
+
RouterState.prototype._navigateIfNeeded = function (routerState) {
|
|
697
|
+
var _this = this;
|
|
698
|
+
if (routerState && routerState.trigger === 'devtools') {
|
|
699
|
+
this._storeState = this._store.selectSnapshot(RouterState_1);
|
|
700
|
+
}
|
|
701
|
+
var canSkipNavigation = !this._storeState ||
|
|
702
|
+
!this._storeState.state ||
|
|
703
|
+
!routerState ||
|
|
704
|
+
routerState.trigger === 'router' ||
|
|
705
|
+
this._router.url === this._storeState.state.url ||
|
|
706
|
+
this._lastEvent instanceof i2.NavigationStart;
|
|
707
|
+
if (canSkipNavigation) {
|
|
708
|
+
return;
|
|
709
|
+
}
|
|
710
|
+
this._storeState = this._store.selectSnapshot(RouterState_1);
|
|
711
|
+
this._trigger = 'store';
|
|
712
|
+
this._ngZone.run(function () { return _this._router.navigateByUrl(_this._storeState.state.url); });
|
|
713
|
+
};
|
|
714
|
+
RouterState.prototype._setUpRouterEventsListener = function () {
|
|
715
|
+
var _this = this;
|
|
716
|
+
var dispatchRouterNavigationLate = this._options != null &&
|
|
717
|
+
this._options.navigationActionTiming === 2 /* PostActivation */;
|
|
718
|
+
var lastRoutesRecognized;
|
|
719
|
+
var subscription = this._router.events.subscribe(function (event) {
|
|
720
|
+
_this._lastEvent = event;
|
|
721
|
+
if (event instanceof i2.NavigationStart) {
|
|
722
|
+
_this._navigationStart(event);
|
|
723
|
+
}
|
|
724
|
+
else if (event instanceof i2.RoutesRecognized) {
|
|
725
|
+
lastRoutesRecognized = event;
|
|
726
|
+
if (!dispatchRouterNavigationLate && _this._trigger !== 'store') {
|
|
727
|
+
_this._dispatchRouterNavigation(lastRoutesRecognized);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
else if (event instanceof i2.ResolveEnd) {
|
|
731
|
+
_this._dispatchRouterDataResolved(event);
|
|
732
|
+
}
|
|
733
|
+
else if (event instanceof i2.NavigationCancel) {
|
|
734
|
+
_this._dispatchRouterCancel(event);
|
|
735
|
+
_this._reset();
|
|
736
|
+
}
|
|
737
|
+
else if (event instanceof i2.NavigationError) {
|
|
738
|
+
_this._dispatchRouterError(event);
|
|
739
|
+
_this._reset();
|
|
740
|
+
}
|
|
741
|
+
else if (event instanceof i2.NavigationEnd) {
|
|
742
|
+
if (_this._trigger !== 'store') {
|
|
743
|
+
if (dispatchRouterNavigationLate) {
|
|
744
|
+
_this._dispatchRouterNavigation(lastRoutesRecognized);
|
|
745
|
+
}
|
|
746
|
+
_this._dispatchRouterNavigated(event);
|
|
747
|
+
}
|
|
748
|
+
_this._reset();
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
this._subscription.add(subscription);
|
|
752
|
+
};
|
|
753
|
+
/** Reacts to `NavigationStart`. */
|
|
754
|
+
RouterState.prototype._navigationStart = function (event) {
|
|
755
|
+
this._routerState = this._serializer.serialize(this._router.routerState.snapshot);
|
|
756
|
+
if (this._trigger !== 'none') {
|
|
757
|
+
this._storeState = this._store.selectSnapshot(RouterState_1);
|
|
758
|
+
this._dispatchRouterAction(new RouterRequest(this._routerState, event, this._trigger));
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
/** Reacts to `ResolveEnd`. */
|
|
762
|
+
RouterState.prototype._dispatchRouterDataResolved = function (event) {
|
|
763
|
+
var routerState = this._serializer.serialize(event.state);
|
|
764
|
+
this._dispatchRouterAction(new RouterDataResolved(routerState, event, this._trigger));
|
|
765
|
+
};
|
|
766
|
+
/** Reacts to `RoutesRecognized` or `NavigationEnd`, depends on the `navigationActionTiming`. */
|
|
767
|
+
RouterState.prototype._dispatchRouterNavigation = function (lastRoutesRecognized) {
|
|
768
|
+
var nextRouterState = this._serializer.serialize(lastRoutesRecognized.state);
|
|
769
|
+
this._dispatchRouterAction(new RouterNavigation(nextRouterState, new i2.RoutesRecognized(lastRoutesRecognized.id, lastRoutesRecognized.url, lastRoutesRecognized.urlAfterRedirects, nextRouterState), this._trigger));
|
|
770
|
+
};
|
|
771
|
+
/** Reacts to `NavigationCancel`. */
|
|
772
|
+
RouterState.prototype._dispatchRouterCancel = function (event) {
|
|
773
|
+
this._dispatchRouterAction(new RouterCancel(this._routerState, this._storeState, event, this._trigger));
|
|
774
|
+
};
|
|
775
|
+
/** Reacts to `NavigationEnd`. */
|
|
776
|
+
RouterState.prototype._dispatchRouterError = function (event) {
|
|
777
|
+
this._dispatchRouterAction(new RouterError(this._routerState, this._storeState, new i2.NavigationError(event.id, event.url, "" + event), this._trigger));
|
|
778
|
+
};
|
|
779
|
+
/** Reacts to `NavigationEnd`. */
|
|
780
|
+
RouterState.prototype._dispatchRouterNavigated = function (event) {
|
|
781
|
+
var routerState = this._serializer.serialize(this._router.routerState.snapshot);
|
|
782
|
+
this._dispatchRouterAction(new RouterNavigated(routerState, event, this._trigger));
|
|
783
|
+
};
|
|
784
|
+
RouterState.prototype._dispatchRouterAction = function (action) {
|
|
785
|
+
this._trigger = 'router';
|
|
786
|
+
try {
|
|
787
|
+
this._store.dispatch(action);
|
|
788
|
+
}
|
|
789
|
+
finally {
|
|
790
|
+
this._trigger = 'none';
|
|
791
|
+
}
|
|
792
|
+
};
|
|
793
|
+
RouterState.prototype._reset = function () {
|
|
794
|
+
this._trigger = 'none';
|
|
795
|
+
this._storeState = null;
|
|
796
|
+
this._routerState = null;
|
|
797
|
+
};
|
|
798
|
+
return RouterState;
|
|
799
|
+
}());
|
|
800
|
+
/** @nocollapse */ exports.RouterState.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: exports.RouterState, deps: [{ token: i1__namespace.Store }, { token: i2__namespace.Router }, { token: RouterStateSerializer }, { token: i0__namespace.NgZone }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
801
|
+
/** @nocollapse */ exports.RouterState.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: exports.RouterState });
|
|
802
|
+
__decorate([
|
|
803
|
+
i1.Action(Navigate),
|
|
804
|
+
__metadata("design:type", Function),
|
|
805
|
+
__metadata("design:paramtypes", [Object, Navigate]),
|
|
806
|
+
__metadata("design:returntype", void 0)
|
|
807
|
+
], exports.RouterState.prototype, "navigate", null);
|
|
808
|
+
__decorate([
|
|
809
|
+
i1.Action([
|
|
810
|
+
RouterRequest,
|
|
811
|
+
RouterNavigation,
|
|
812
|
+
RouterError,
|
|
813
|
+
RouterCancel,
|
|
814
|
+
RouterDataResolved,
|
|
815
|
+
RouterNavigated
|
|
816
|
+
]),
|
|
817
|
+
__metadata("design:type", Function),
|
|
818
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
819
|
+
__metadata("design:returntype", void 0)
|
|
820
|
+
], exports.RouterState.prototype, "angularRouterAction", null);
|
|
821
|
+
__decorate([
|
|
822
|
+
i1.Selector(),
|
|
823
|
+
__metadata("design:type", Function),
|
|
824
|
+
__metadata("design:paramtypes", [Object]),
|
|
825
|
+
__metadata("design:returntype", void 0)
|
|
826
|
+
], exports.RouterState, "state", null);
|
|
827
|
+
__decorate([
|
|
828
|
+
i1.Selector(),
|
|
829
|
+
__metadata("design:type", Function),
|
|
830
|
+
__metadata("design:paramtypes", [Object]),
|
|
831
|
+
__metadata("design:returntype", Object)
|
|
832
|
+
], exports.RouterState, "url", null);
|
|
833
|
+
exports.RouterState = RouterState_1 = __decorate([
|
|
834
|
+
i1.State({
|
|
835
|
+
name: 'router',
|
|
836
|
+
defaults: {
|
|
837
|
+
state: undefined,
|
|
838
|
+
navigationId: undefined,
|
|
839
|
+
trigger: 'none'
|
|
840
|
+
}
|
|
841
|
+
}),
|
|
842
|
+
__metadata("design:paramtypes", [i1.Store,
|
|
843
|
+
i2.Router,
|
|
844
|
+
RouterStateSerializer,
|
|
845
|
+
i0.NgZone,
|
|
846
|
+
i0.Injector])
|
|
847
|
+
], exports.RouterState);
|
|
848
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: exports.RouterState, decorators: [{
|
|
849
|
+
type: i0.Injectable
|
|
850
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.Store }, { type: i2__namespace.Router }, { type: RouterStateSerializer }, { type: i0__namespace.NgZone }, { type: i0__namespace.Injector }]; }, propDecorators: { navigate: [], angularRouterAction: [] } });
|
|
763
851
|
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
852
|
+
var NgxsRouterPluginModule = /** @class */ (function () {
|
|
853
|
+
function NgxsRouterPluginModule() {
|
|
854
|
+
}
|
|
855
|
+
NgxsRouterPluginModule.forRoot = function (options) {
|
|
856
|
+
return {
|
|
857
|
+
ngModule: NgxsRouterPluginModule,
|
|
858
|
+
providers: [
|
|
859
|
+
{ provide: USER_OPTIONS, useValue: options },
|
|
860
|
+
{
|
|
861
|
+
provide: NGXS_ROUTER_PLUGIN_OPTIONS,
|
|
862
|
+
useFactory: createRouterPluginOptions,
|
|
863
|
+
deps: [USER_OPTIONS]
|
|
864
|
+
},
|
|
865
|
+
{ provide: RouterStateSerializer, useClass: DefaultRouterStateSerializer }
|
|
866
|
+
]
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
return NgxsRouterPluginModule;
|
|
870
|
+
}());
|
|
871
|
+
/** @nocollapse */ NgxsRouterPluginModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsRouterPluginModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
872
|
+
/** @nocollapse */ NgxsRouterPluginModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsRouterPluginModule, imports: [i1__namespace.ɵNgxsFeatureModule] });
|
|
873
|
+
/** @nocollapse */ NgxsRouterPluginModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsRouterPluginModule, imports: [[i1.NgxsModule.forFeature([exports.RouterState])]] });
|
|
874
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NgxsRouterPluginModule, decorators: [{
|
|
875
|
+
type: i0.NgModule,
|
|
876
|
+
args: [{
|
|
877
|
+
imports: [i1.NgxsModule.forFeature([exports.RouterState])]
|
|
878
|
+
}]
|
|
879
|
+
}] });
|
|
792
880
|
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
881
|
+
/**
|
|
882
|
+
* The public api for consumers of @ngxs/router-plugin
|
|
883
|
+
*/
|
|
796
884
|
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
885
|
+
/**
|
|
886
|
+
* Generated bundle index. Do not edit.
|
|
887
|
+
*/
|
|
800
888
|
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
889
|
+
exports.DefaultRouterStateSerializer = DefaultRouterStateSerializer;
|
|
890
|
+
exports.Navigate = Navigate;
|
|
891
|
+
exports.NgxsRouterPluginModule = NgxsRouterPluginModule;
|
|
892
|
+
exports.RouterCancel = RouterCancel;
|
|
893
|
+
exports.RouterDataResolved = RouterDataResolved;
|
|
894
|
+
exports.RouterError = RouterError;
|
|
895
|
+
exports.RouterNavigated = RouterNavigated;
|
|
896
|
+
exports.RouterNavigation = RouterNavigation;
|
|
897
|
+
exports.RouterRequest = RouterRequest;
|
|
898
|
+
exports.RouterStateSerializer = RouterStateSerializer;
|
|
811
899
|
|
|
812
|
-
|
|
900
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
813
901
|
|
|
814
902
|
}));
|
|
815
903
|
//# sourceMappingURL=ngxs-router-plugin.umd.js.map
|