@coolon/angular-ui-powerups 14.46.0 → 14.47.1
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/esm2020/lib/place/components/abstract-place-navigation.component.mjs +11 -2
- package/esm2020/lib/place/guards/place.guard.mjs +3 -2
- package/esm2020/lib/place/place-auth-service.mjs +73 -52
- package/esm2020/lib/place/place-component.mjs +2 -14
- package/fesm2015/coolon-angular-ui-powerups.mjs +94 -66
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +84 -65
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/components/abstract-place-navigation.component.d.ts +1 -0
- package/lib/place/place-auth-service.d.ts +8 -8
- package/lib/place/place-component.d.ts +1 -5
- package/package.json +3 -3
|
@@ -24,6 +24,7 @@ export declare class AbstractPlaceNavigationComponent extends DisposableComponen
|
|
|
24
24
|
private activePlaceDefinition;
|
|
25
25
|
private placeFaces;
|
|
26
26
|
readonly trackByPlaceDef: TrackByFunction<MenuItem>;
|
|
27
|
+
private authorisedPlaces$;
|
|
27
28
|
constructor(placeRouter: PlaceRouter);
|
|
28
29
|
protected handlePlaceOutLetChanged(outlet: PlaceOutletComponent): void;
|
|
29
30
|
getNavigationFace(placeDef: PlaceDefinition): CommandFace;
|
|
@@ -5,22 +5,22 @@ import { PlaceComponent } from "./place-component";
|
|
|
5
5
|
import { PlaceDefinition } from "./place-definition";
|
|
6
6
|
import { Visit } from "./visit";
|
|
7
7
|
export declare class PlaceAuthService extends GarbageCollector {
|
|
8
|
-
private readonly placeGuards$;
|
|
9
8
|
private authZOptions;
|
|
10
9
|
private authNOptions;
|
|
11
|
-
private readonly
|
|
10
|
+
private readonly _authNReady$;
|
|
11
|
+
private readonly _authZReady$;
|
|
12
12
|
private authenticated$;
|
|
13
|
-
private
|
|
13
|
+
private authChecker$;
|
|
14
|
+
private enabledPlaceChecker;
|
|
14
15
|
readonly accessGuard$: ValueModel<PlaceAuthService.AccessGuard>;
|
|
15
16
|
constructor();
|
|
16
17
|
configureAuthentication(options: PlaceAuthService.AuthenticationOptions): void;
|
|
17
18
|
configureAuthorisation(options: PlaceAuthService.AuthorisationOptions): void;
|
|
18
19
|
enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
|
|
19
|
-
|
|
20
|
+
waitUntilAuthenticationReady(): Promise<void>;
|
|
21
|
+
waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
|
|
20
22
|
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit;
|
|
21
23
|
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[];
|
|
22
|
-
private toPromise;
|
|
23
|
-
private capturePostoneDependency;
|
|
24
24
|
isAuthenticated(): boolean;
|
|
25
25
|
isAuthorised(c: PlaceDefinition): boolean;
|
|
26
26
|
}
|
|
@@ -41,8 +41,8 @@ export declare namespace PlaceAuthService {
|
|
|
41
41
|
}
|
|
42
42
|
class AccessGuard implements PlaceAccessGuard {
|
|
43
43
|
private readonly authenticated;
|
|
44
|
-
private readonly
|
|
45
|
-
constructor(authenticated: boolean,
|
|
44
|
+
private readonly checkAuth;
|
|
45
|
+
constructor(authenticated: boolean, checkAuth: AuthorisationCheck);
|
|
46
46
|
isAuthenticated(): boolean;
|
|
47
47
|
isAuthorised(placeDefinition: PlaceDefinition): boolean;
|
|
48
48
|
}
|
|
@@ -17,16 +17,12 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
17
17
|
private _inVisitUpdate;
|
|
18
18
|
private _active;
|
|
19
19
|
interactionContext?: InteractionContext;
|
|
20
|
-
childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
21
|
-
readonly authorisedChildPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
20
|
+
readonly childPlaces$: ListModel<Constructable<PlaceComponent>>;
|
|
22
21
|
private readonly _parameterChangeInterceptors;
|
|
23
22
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
24
23
|
protected readonly placeRouter: PlaceRouter;
|
|
25
24
|
constructor();
|
|
26
25
|
initialiseVisit(visit: VisitSegment, notifyVisitChanged: (current: VisitSegment, previous: VisitSegment) => void): void;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated use authorisedChildPlaces$ instead
|
|
29
|
-
*/
|
|
30
26
|
get childPlaces(): Constructable<PlaceComponent>[];
|
|
31
27
|
updateVisit(visit: VisitSegment): void;
|
|
32
28
|
isInitialised(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.47.1",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/animations": "^14.2.12",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/material": "^14.2.7",
|
|
12
12
|
"@angular/platform-browser": "^14.2.12",
|
|
13
13
|
"@angular/router": "^14.2.12",
|
|
14
|
-
"@coolon/pectin": "^3.
|
|
14
|
+
"@coolon/pectin": "^3.44.0",
|
|
15
15
|
"@typescript-plus/fast-memoize-decorator": "^0.2.1",
|
|
16
16
|
"lodash-es": "^4.17.21",
|
|
17
17
|
"marked": "4.0.2",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"json5": "^2.1.0",
|
|
22
22
|
"immer": ">=7.0.15",
|
|
23
23
|
"escape-string-regexp": "^5.0.0",
|
|
24
|
-
"@teppeis/multimaps": "2.0.0",
|
|
25
24
|
"ts-morph": "9.1.0",
|
|
26
25
|
"@angular/flex-layout": "14.0.0-beta.41",
|
|
26
|
+
"@teppeis/multimaps": "2.0.0",
|
|
27
27
|
"zone.js": "0.11.8"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|