@coolon/angular-ui-powerups 3.7.4 → 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 +2 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +2 -12
- 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-access-guard.js +2 -15
- package/esm2015/lib/place/place-access-guard.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +2 -12
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,15 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { Trace } from '@coolon/pectin';
|
|
3
|
-
import { PlaceDefinition } from './place-definition';
|
|
4
1
|
export var PlaceAccessGuard;
|
|
5
2
|
(function (PlaceAccessGuard) {
|
|
6
3
|
class NoAuth {
|
|
4
|
+
// @Trace()
|
|
7
5
|
isAuthenticated() {
|
|
8
6
|
return true;
|
|
9
7
|
}
|
|
8
|
+
// @Trace()
|
|
10
9
|
isAuthorised(placeDefinition) {
|
|
11
10
|
return true;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
|
-
__decorate([
|
|
15
|
-
Trace(),
|
|
16
|
-
__metadata("design:type", Function),
|
|
17
|
-
__metadata("design:paramtypes", []),
|
|
18
|
-
__metadata("design:returntype", Object)
|
|
19
|
-
], NoAuth.prototype, "isAuthenticated", null);
|
|
20
|
-
__decorate([
|
|
21
|
-
Trace(),
|
|
22
|
-
__metadata("design:type", Function),
|
|
23
|
-
__metadata("design:paramtypes", [PlaceDefinition]),
|
|
24
|
-
__metadata("design:returntype", Boolean)
|
|
25
|
-
], NoAuth.prototype, "isAuthorised", null);
|
|
26
13
|
PlaceAccessGuard.NoAuth = NoAuth;
|
|
27
14
|
})(PlaceAccessGuard || (PlaceAccessGuard = {}));
|
|
28
15
|
//# sourceMappingURL=place-access-guard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"place-access-guard.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place-access-guard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"place-access-guard.js","sourceRoot":"","sources":["../../../../../../libs/angular-ui-powerups/src/lib/place/place-access-guard.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,gBAAgB,CAYhC;AAZD,WAAiB,gBAAgB;IAC/B,MAAa,MAAM;QACjB,WAAW;QACX,eAAe;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QACD,WAAW;QACX,YAAY,CAAC,eAAgC;YAC3C,OAAO,IAAI,CAAC;QACd,CAAC;KAEF;IAVY,uBAAM,SAUlB,CAAA;AACH,CAAC,EAZgB,gBAAgB,KAAhB,gBAAgB,QAYhC","sourcesContent":["import { Trace } from '@coolon/pectin';\nimport { PlaceDefinition } from './place-definition';\n\nexport interface PlaceAccessGuard {\n isAuthenticated(): boolean | Promise<boolean>;\n isAuthorised(placeDefinition: PlaceDefinition): boolean;\n}\n\nexport namespace PlaceAccessGuard {\n export class NoAuth implements PlaceAccessGuard {\n // @Trace()\n isAuthenticated(): boolean | Promise<boolean> {\n return true;\n }\n // @Trace()\n isAuthorised(placeDefinition: PlaceDefinition): boolean {\n return true;\n }\n\n }\n}\n"]}
|
|
@@ -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
|
|