@coolon/angular-ui-powerups 0.0.75 → 0.0.77
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/coolon-angular-ui-powerups.umd.js +6 -8
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/esm2015/lib/place/place-history.js +2 -2
- package/esm2015/lib/place/route/guards/enter-place-guard.service.js +1 -1
- package/esm2015/lib/place/route/guards/leave-place.guard.js +3 -10
- package/esm5/lib/place/place-history.js +2 -2
- package/esm5/lib/place/route/guards/enter-place-guard.service.js +1 -1
- package/esm5/lib/place/route/guards/leave-place.guard.js +7 -11
- package/fesm2015/coolon-angular-ui-powerups.js +2 -7
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +6 -8
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
|
@@ -3749,7 +3749,7 @@ var PlaceHistory = /** @class */ (function () {
|
|
|
3749
3749
|
/** @type {?} */
|
|
3750
3750
|
var history = this.getHistory(state.placeDefinition);
|
|
3751
3751
|
/** @type {?} */
|
|
3752
|
-
var previousState = ___default.
|
|
3752
|
+
var previousState = ___default.first(history);
|
|
3753
3753
|
if (!previousState || state.hasChangedFrom(previousState)) {
|
|
3754
3754
|
history.unshift(state); // LIFO
|
|
3755
3755
|
this.setHistory(state.placeDefinition, history.slice(0, 3)); // limit our history to 4 visits
|
|
@@ -6016,13 +6016,17 @@ var LeavePlaceGuard = /** @class */ (function () {
|
|
|
6016
6016
|
this.interactionContext = interactionContext;
|
|
6017
6017
|
this.angularLocation = angularLocation;
|
|
6018
6018
|
}
|
|
6019
|
+
// @Trace()
|
|
6020
|
+
// @Trace()
|
|
6019
6021
|
/**
|
|
6020
6022
|
* @private
|
|
6021
6023
|
* @param {?} nextState
|
|
6022
6024
|
* @param {?} placeDefinition
|
|
6023
6025
|
* @return {?}
|
|
6024
6026
|
*/
|
|
6025
|
-
LeavePlaceGuard.prototype.isLeavingTheCurrentPlace =
|
|
6027
|
+
LeavePlaceGuard.prototype.isLeavingTheCurrentPlace =
|
|
6028
|
+
// @Trace()
|
|
6029
|
+
/**
|
|
6026
6030
|
* @private
|
|
6027
6031
|
* @param {?} nextState
|
|
6028
6032
|
* @param {?} placeDefinition
|
|
@@ -6176,12 +6180,6 @@ var LeavePlaceGuard = /** @class */ (function () {
|
|
|
6176
6180
|
{ type: Location }
|
|
6177
6181
|
]; };
|
|
6178
6182
|
/** @nocollapse */ LeavePlaceGuard.ngInjectableDef = ɵɵdefineInjectable({ factory: function LeavePlaceGuard_Factory() { return new LeavePlaceGuard(ɵɵinject(Router), ɵɵinject(INJECTOR), ɵɵinject(PlaceRouter), ɵɵinject(InteractionContext), ɵɵinject(Location)); }, token: LeavePlaceGuard, providedIn: "root" });
|
|
6179
|
-
__decorate([
|
|
6180
|
-
Trace(),
|
|
6181
|
-
__metadata("design:type", Function),
|
|
6182
|
-
__metadata("design:paramtypes", [RouterStateSnapshot, PlaceDefinition]),
|
|
6183
|
-
__metadata("design:returntype", void 0)
|
|
6184
|
-
], LeavePlaceGuard.prototype, "isLeavingTheCurrentPlace", null);
|
|
6185
6183
|
return LeavePlaceGuard;
|
|
6186
6184
|
}());
|
|
6187
6185
|
if (false) {
|