@coolon/angular-ui-powerups 3.7.3 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +10 -30
- 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/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +2 -7
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/navigation/session/navigation-session.js +3 -3
- package/esm2015/lib/place/navigation/session/navigation-session.js.map +1 -1
- package/esm2015/lib/place/place-access-guard.js +2 -15
- package/esm2015/lib/place/place-access-guard.js.map +1 -1
- package/esm2015/lib/place/place-router.js +5 -10
- package/esm2015/lib/place/place-router.js.map +1 -1
- package/esm2015/lib/place/place-router.metadata.json +1 -1
- package/esm2015/lib/place/visit.js +1 -1
- package/esm2015/lib/place/visit.js.map +1 -1
- package/esm2015/lib/place/visit.metadata.json +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +10 -30
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
- package/schematics/place-add/index.js.map +1 -1
- package/schematics/utils/workspace.js.map +1 -1
- package/schematics/bootstrap-app/templates/app/auth/place-auth.service.ts.template +0 -41
|
@@ -4701,14 +4701,14 @@ class NavigationSession extends GarbageCollector {
|
|
|
4701
4701
|
// Important: I tried to perform this fix at a later point int he routing cycle but it created all kinds of
|
|
4702
4702
|
// strangeness.
|
|
4703
4703
|
Logger.get(this).info('WORK-AROUND: Updating browser location after pop state - see angular issue #13586');
|
|
4704
|
-
console.log(`replacing ${this.urlService.getCurrentLocationUrlSnapshot().url} with ${poppedHistoryToReplace}`);
|
|
4704
|
+
// console.log(`replacing ${this.urlService.getCurrentLocationUrlSnapshot().url} with ${poppedHistoryToReplace}`);
|
|
4705
4705
|
this.urlService.resetBrowserLocation(poppedHistoryToReplace, { replaceCurrent: true });
|
|
4706
|
-
console.log(`pushing ${activeUrl} back onto the history.`);
|
|
4706
|
+
// console.log(`pushing ${activeUrl} back onto the history.`);
|
|
4707
4707
|
this.urlService.resetBrowserLocation(activeUrl, { replaceCurrent: false });
|
|
4708
4708
|
}
|
|
4709
4709
|
ignore(event, reason) {
|
|
4710
4710
|
reason = reason ? ` -> ${reason}` : '';
|
|
4711
|
-
Logger.get(this).info(`Ignoring router event${reason}: ${event.constructor.name} -> ${event.url} :: ${this.toString()}`);
|
|
4711
|
+
// Logger.get(this).info(`Ignoring router event${reason}: ${event.constructor.name} -> ${event.url} :: ${this.toString()}`);
|
|
4712
4712
|
}
|
|
4713
4713
|
toString() {
|
|
4714
4714
|
return `${this.constructor.name}(${this.debugState()})`;
|
|
@@ -5300,25 +5300,15 @@ class PopStateNavigation extends AbstractPopStateNavigation {
|
|
|
5300
5300
|
var PlaceAccessGuard;
|
|
5301
5301
|
(function (PlaceAccessGuard) {
|
|
5302
5302
|
class NoAuth {
|
|
5303
|
+
// @Trace()
|
|
5303
5304
|
isAuthenticated() {
|
|
5304
5305
|
return true;
|
|
5305
5306
|
}
|
|
5307
|
+
// @Trace()
|
|
5306
5308
|
isAuthorised(placeDefinition) {
|
|
5307
5309
|
return true;
|
|
5308
5310
|
}
|
|
5309
5311
|
}
|
|
5310
|
-
__decorate([
|
|
5311
|
-
Trace(),
|
|
5312
|
-
__metadata("design:type", Function),
|
|
5313
|
-
__metadata("design:paramtypes", []),
|
|
5314
|
-
__metadata("design:returntype", Object)
|
|
5315
|
-
], NoAuth.prototype, "isAuthenticated", null);
|
|
5316
|
-
__decorate([
|
|
5317
|
-
Trace(),
|
|
5318
|
-
__metadata("design:type", Function),
|
|
5319
|
-
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
5320
|
-
__metadata("design:returntype", Boolean)
|
|
5321
|
-
], NoAuth.prototype, "isAuthorised", null);
|
|
5322
5312
|
PlaceAccessGuard.NoAuth = NoAuth;
|
|
5323
5313
|
})(PlaceAccessGuard || (PlaceAccessGuard = {}));
|
|
5324
5314
|
|
|
@@ -5687,6 +5677,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
5687
5677
|
get accessGuard() {
|
|
5688
5678
|
return this._accessGuard.readonly;
|
|
5689
5679
|
}
|
|
5680
|
+
// @Trace()
|
|
5690
5681
|
configureAuth(accessGrant, redirections) {
|
|
5691
5682
|
// We need a shitty mutable model until setDelegate is clever enough to work with readonly models.
|
|
5692
5683
|
const hackyMutableModel = new MutableValueModel();
|
|
@@ -5831,7 +5822,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
5831
5822
|
this.placeHistory.notifyNavigationStarted();
|
|
5832
5823
|
}
|
|
5833
5824
|
assert.isTruthy(next !== previous);
|
|
5834
|
-
Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);
|
|
5825
|
+
// Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);
|
|
5835
5826
|
this.navigationSessionModel.value = next;
|
|
5836
5827
|
if (!!previous) {
|
|
5837
5828
|
previous.dispose();
|
|
@@ -5851,7 +5842,7 @@ class PlaceRouter extends GarbageCollector {
|
|
|
5851
5842
|
const session = this.currentSession;
|
|
5852
5843
|
session.dispose();
|
|
5853
5844
|
this.navigationSessionModel.value = null;
|
|
5854
|
-
console.log(`### Router Session Finished (was ${session.toString()})`);
|
|
5845
|
+
// console.log(`### Router Session Finished (was ${session.toString()})`);
|
|
5855
5846
|
this.sessionFinishedJobs.forEach(job => job());
|
|
5856
5847
|
this.sessionFinishedJobs = [];
|
|
5857
5848
|
}
|
|
@@ -5906,12 +5897,6 @@ PlaceRouter.ctorParameters = () => [
|
|
|
5906
5897
|
{ type: UrlService },
|
|
5907
5898
|
{ type: PlaceHistory }
|
|
5908
5899
|
];
|
|
5909
|
-
__decorate([
|
|
5910
|
-
Trace(),
|
|
5911
|
-
__metadata("design:type", Function),
|
|
5912
|
-
__metadata("design:paramtypes", [ValueModel, Object]),
|
|
5913
|
-
__metadata("design:returntype", void 0)
|
|
5914
|
-
], PlaceRouter.prototype, "configureAuth", null);
|
|
5915
5900
|
|
|
5916
5901
|
class Visit {
|
|
5917
5902
|
constructor(placeDefinition, visitParameters = {}) {
|
|
@@ -5973,7 +5958,7 @@ class Visit {
|
|
|
5973
5958
|
return !sameNonRouteParameters || this.hasRoutingChangedFrom(other);
|
|
5974
5959
|
}
|
|
5975
5960
|
toDebugString() {
|
|
5976
|
-
return Object.keys(this.visitParameters).map(k => `${k}=${this.visitParameters[k]}`).join(
|
|
5961
|
+
return Object.keys(this.visitParameters).map(k => `${k}=${this.visitParameters[k]}`).join(',');
|
|
5977
5962
|
}
|
|
5978
5963
|
}
|
|
5979
5964
|
|
|
@@ -6129,6 +6114,7 @@ class PlaceOutletComponent extends DisposableComponent {
|
|
|
6129
6114
|
}
|
|
6130
6115
|
}
|
|
6131
6116
|
}
|
|
6117
|
+
// @Trace()
|
|
6132
6118
|
onOutletDeactivated() {
|
|
6133
6119
|
this.outletActivated.value = false;
|
|
6134
6120
|
this._activePlaceModel.value = null;
|
|
@@ -6228,12 +6214,6 @@ __decorate([
|
|
|
6228
6214
|
StoreInListModel('customPlaceAnimationOrderModel'),
|
|
6229
6215
|
__metadata("design:type", Array)
|
|
6230
6216
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrder", void 0);
|
|
6231
|
-
__decorate([
|
|
6232
|
-
Trace(),
|
|
6233
|
-
__metadata("design:type", Function),
|
|
6234
|
-
__metadata("design:paramtypes", []),
|
|
6235
|
-
__metadata("design:returntype", void 0)
|
|
6236
|
-
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
6237
6217
|
|
|
6238
6218
|
class AbstractPlaceNavigationComponent extends DisposableComponent {
|
|
6239
6219
|
constructor(placeRouter) {
|