@coolon/angular-ui-powerups 14.45.0 → 14.47.0

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.
@@ -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 _ready$;
10
+ private readonly _authNReady$;
11
+ private readonly _authZReady$;
12
12
  private authenticated$;
13
- private authorisationChecker$;
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
- waitUntilReady(): Promise<void>;
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
  }
@@ -32,7 +32,7 @@ export declare namespace PlaceAuthService {
32
32
  }
33
33
  interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
34
34
  isAuthorised: AuthorisationCheck;
35
- dependsOn: HasValue<any>;
35
+ dependsOn$?: HasValue<any>;
36
36
  redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[];
37
37
  }
38
38
  interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
@@ -41,8 +41,8 @@ export declare namespace PlaceAuthService {
41
41
  }
42
42
  class AccessGuard implements PlaceAccessGuard {
43
43
  private readonly authenticated;
44
- private readonly authCheck;
45
- constructor(authenticated: boolean, authCheck: AuthorisationCheck);
44
+ private readonly checkAuth;
45
+ constructor(authenticated: boolean, checkAuth: AuthorisationCheck);
46
46
  isAuthenticated(): boolean;
47
47
  isAuthorised(placeDefinition: PlaceDefinition): boolean;
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "14.45.0",
3
+ "version": "14.47.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "^14.2.12",
@@ -24,7 +24,8 @@
24
24
  "@teppeis/multimaps": "2.0.0",
25
25
  "ts-morph": "9.1.0",
26
26
  "@angular/flex-layout": "14.0.0-beta.41",
27
- "zone.js": "0.11.8"
27
+ "zone.js": "0.11.8",
28
+ "moment": "2.29.4"
28
29
  },
29
30
  "optionalDependencies": {
30
31
  "@fortawesome/fontawesome-free": "^6.0.0"