@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
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.7.5](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.4...v3.7.5) (2021-02-01)
|
|
6
|
+
|
|
7
|
+
### [3.7.4](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.3...v3.7.4) (2021-02-01)
|
|
8
|
+
|
|
5
9
|
### [3.7.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v3.7.2...v3.7.3) (2021-01-28)
|
|
6
10
|
|
|
7
11
|
|
|
@@ -5525,14 +5525,14 @@
|
|
|
5525
5525
|
// Important: I tried to perform this fix at a later point int he routing cycle but it created all kinds of
|
|
5526
5526
|
// strangeness.
|
|
5527
5527
|
pectin.Logger.get(this).info('WORK-AROUND: Updating browser location after pop state - see angular issue #13586');
|
|
5528
|
-
console.log(
|
|
5528
|
+
// console.log(`replacing ${this.urlService.getCurrentLocationUrlSnapshot().url} with ${poppedHistoryToReplace}`);
|
|
5529
5529
|
this.urlService.resetBrowserLocation(poppedHistoryToReplace, { replaceCurrent: true });
|
|
5530
|
-
console.log(
|
|
5530
|
+
// console.log(`pushing ${activeUrl} back onto the history.`);
|
|
5531
5531
|
this.urlService.resetBrowserLocation(activeUrl, { replaceCurrent: false });
|
|
5532
5532
|
};
|
|
5533
5533
|
NavigationSession.prototype.ignore = function (event, reason) {
|
|
5534
5534
|
reason = reason ? " -> " + reason : '';
|
|
5535
|
-
|
|
5535
|
+
// Logger.get(this).info(`Ignoring router event${reason}: ${event.constructor.name} -> ${event.url} :: ${this.toString()}`);
|
|
5536
5536
|
};
|
|
5537
5537
|
NavigationSession.prototype.toString = function () {
|
|
5538
5538
|
return this.constructor.name + "(" + this.debugState() + ")";
|
|
@@ -6186,26 +6186,16 @@
|
|
|
6186
6186
|
var NoAuth = /** @class */ (function () {
|
|
6187
6187
|
function NoAuth() {
|
|
6188
6188
|
}
|
|
6189
|
+
// @Trace()
|
|
6189
6190
|
NoAuth.prototype.isAuthenticated = function () {
|
|
6190
6191
|
return true;
|
|
6191
6192
|
};
|
|
6193
|
+
// @Trace()
|
|
6192
6194
|
NoAuth.prototype.isAuthorised = function (placeDefinition) {
|
|
6193
6195
|
return true;
|
|
6194
6196
|
};
|
|
6195
6197
|
return NoAuth;
|
|
6196
6198
|
}());
|
|
6197
|
-
__decorate([
|
|
6198
|
-
pectin.Trace(),
|
|
6199
|
-
__metadata("design:type", Function),
|
|
6200
|
-
__metadata("design:paramtypes", []),
|
|
6201
|
-
__metadata("design:returntype", Object)
|
|
6202
|
-
], NoAuth.prototype, "isAuthenticated", null);
|
|
6203
|
-
__decorate([
|
|
6204
|
-
pectin.Trace(),
|
|
6205
|
-
__metadata("design:type", Function),
|
|
6206
|
-
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
6207
|
-
__metadata("design:returntype", Boolean)
|
|
6208
|
-
], NoAuth.prototype, "isAuthorised", null);
|
|
6209
6199
|
PlaceAccessGuard.NoAuth = NoAuth;
|
|
6210
6200
|
})(exports.PlaceAccessGuard || (exports.PlaceAccessGuard = {}));
|
|
6211
6201
|
|
|
@@ -6590,6 +6580,7 @@
|
|
|
6590
6580
|
enumerable: false,
|
|
6591
6581
|
configurable: true
|
|
6592
6582
|
});
|
|
6583
|
+
// @Trace()
|
|
6593
6584
|
PlaceRouter.prototype.configureAuth = function (accessGrant, redirections) {
|
|
6594
6585
|
// We need a shitty mutable model until setDelegate is clever enough to work with readonly models.
|
|
6595
6586
|
var hackyMutableModel = new pectin.MutableValueModel();
|
|
@@ -6770,7 +6761,7 @@
|
|
|
6770
6761
|
this.placeHistory.notifyNavigationStarted();
|
|
6771
6762
|
}
|
|
6772
6763
|
pectin.assert.isTruthy(next !== previous);
|
|
6773
|
-
|
|
6764
|
+
// Logger.get(this).info(`### Router State Transition: ${previous ? previous.toString() : 'null'} -> ${next.toString()}`);
|
|
6774
6765
|
this.navigationSessionModel.value = next;
|
|
6775
6766
|
if (!!previous) {
|
|
6776
6767
|
previous.dispose();
|
|
@@ -6790,7 +6781,7 @@
|
|
|
6790
6781
|
var session = this.currentSession;
|
|
6791
6782
|
session.dispose();
|
|
6792
6783
|
this.navigationSessionModel.value = null;
|
|
6793
|
-
console.log(
|
|
6784
|
+
// console.log(`### Router Session Finished (was ${session.toString()})`);
|
|
6794
6785
|
this.sessionFinishedJobs.forEach(function (job) { return job(); });
|
|
6795
6786
|
this.sessionFinishedJobs = [];
|
|
6796
6787
|
};
|
|
@@ -6847,12 +6838,6 @@
|
|
|
6847
6838
|
{ type: UrlService },
|
|
6848
6839
|
{ type: exports.PlaceHistory }
|
|
6849
6840
|
]; };
|
|
6850
|
-
__decorate([
|
|
6851
|
-
pectin.Trace(),
|
|
6852
|
-
__metadata("design:type", Function),
|
|
6853
|
-
__metadata("design:paramtypes", [pectin.ValueModel, Object]),
|
|
6854
|
-
__metadata("design:returntype", void 0)
|
|
6855
|
-
], PlaceRouter.prototype, "configureAuth", null);
|
|
6856
6841
|
|
|
6857
6842
|
var Visit = /** @class */ (function () {
|
|
6858
6843
|
function Visit(placeDefinition, visitParameters) {
|
|
@@ -6918,7 +6903,7 @@
|
|
|
6918
6903
|
};
|
|
6919
6904
|
Visit.prototype.toDebugString = function () {
|
|
6920
6905
|
var _this = this;
|
|
6921
|
-
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(
|
|
6906
|
+
return Object.keys(this.visitParameters).map(function (k) { return k + "=" + _this.visitParameters[k]; }).join(',');
|
|
6922
6907
|
};
|
|
6923
6908
|
return Visit;
|
|
6924
6909
|
}());
|
|
@@ -7093,6 +7078,7 @@
|
|
|
7093
7078
|
}
|
|
7094
7079
|
}
|
|
7095
7080
|
};
|
|
7081
|
+
// @Trace()
|
|
7096
7082
|
PlaceOutletComponent.prototype.onOutletDeactivated = function () {
|
|
7097
7083
|
this.outletActivated.value = false;
|
|
7098
7084
|
this._activePlaceModel.value = null;
|
|
@@ -7195,12 +7181,6 @@
|
|
|
7195
7181
|
pectin.StoreInListModel('customPlaceAnimationOrderModel'),
|
|
7196
7182
|
__metadata("design:type", Array)
|
|
7197
7183
|
], PlaceOutletComponent.prototype, "customPlaceAnimationOrder", void 0);
|
|
7198
|
-
__decorate([
|
|
7199
|
-
pectin.Trace(),
|
|
7200
|
-
__metadata("design:type", Function),
|
|
7201
|
-
__metadata("design:paramtypes", []),
|
|
7202
|
-
__metadata("design:returntype", void 0)
|
|
7203
|
-
], PlaceOutletComponent.prototype, "onOutletDeactivated", null);
|
|
7204
7184
|
|
|
7205
7185
|
var AbstractPlaceNavigationComponent = /** @class */ (function (_super) {
|
|
7206
7186
|
__extends(AbstractPlaceNavigationComponent, _super);
|