@coolon/angular-ui-powerups 16.1.0-aplpha.126 → 16.1.0-aplpha.127
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/assets/draw.scss +20 -0
- package/assets/layout.scss +3 -0
- package/assets/styles.scss +2 -0
- package/assets/tabs.scss +14 -0
- package/esm2022/lib/place/guards/place.guard.mjs +5 -5
- package/esm2022/lib/place/place-auth-service.mjs +5 -5
- package/esm2022/lib/place/place-router.mjs +3 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs +10 -10
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/place-auth-service.d.ts +4 -4
- package/lib/place/place-router.d.ts +2 -2
- package/package.json +2 -2
|
@@ -19,8 +19,8 @@ export declare class PlaceAuthService extends GarbageCollector {
|
|
|
19
19
|
enablePlace(placeDefinition: Constructable<PlaceComponent>, options: PlaceAuthService.AuthPlaceOptions): void;
|
|
20
20
|
waitUntilAuthenticationReady(): Promise<void>;
|
|
21
21
|
waitUntilAuthorisationReadyFor(placeDef: PlaceDefinition): Promise<void>;
|
|
22
|
-
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit
|
|
23
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[]
|
|
22
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
|
|
23
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
|
|
24
24
|
isAuthenticated(): boolean;
|
|
25
25
|
isAuthorised(c: PlaceDefinition): boolean;
|
|
26
26
|
}
|
|
@@ -28,12 +28,12 @@ export declare namespace PlaceAuthService {
|
|
|
28
28
|
type AuthorisationCheck = (def: PlaceDefinition) => boolean;
|
|
29
29
|
interface AuthenticationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
30
30
|
isAuthenticated$: ValueModel<boolean>;
|
|
31
|
-
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent
|
|
31
|
+
redirectTo(activatedRoute?: ActivatedRouteSnapshot, state?: RouterStateSnapshot): Visit | Constructable<PlaceComponent> | Promise<Visit> | Promise<Constructable<PlaceComponent>>;
|
|
32
32
|
}
|
|
33
33
|
interface AuthorisationOptions extends ComputedModelMechanics.PostponeOptions {
|
|
34
34
|
isAuthorised: AuthorisationCheck;
|
|
35
35
|
dependsOn$?: HasValue<any>;
|
|
36
|
-
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[]
|
|
36
|
+
redirectTo(component: Constructable<PlaceComponent>): (Constructable<PlaceComponent> | Visit)[] | Promise<(Constructable<PlaceComponent> | Visit)[]>;
|
|
37
37
|
}
|
|
38
38
|
interface AuthPlaceOptions extends ComputedModelMechanics.PostponeOptions {
|
|
39
39
|
when$?: ValueModel<boolean>;
|
|
@@ -31,8 +31,8 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
31
31
|
readonly ready$: ValueModel<boolean>;
|
|
32
32
|
constructor(angularRouter: Router, angularLocation: Location, interactionService: InteractionService, urlService: UrlService, placeHistory: PlaceHistory);
|
|
33
33
|
postponeRoutingUntil(condition$: ValueModel<boolean>): void;
|
|
34
|
-
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Visit
|
|
35
|
-
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Visit[]
|
|
34
|
+
getAuthenticationFailureRedirect(activatedRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<Visit>;
|
|
35
|
+
getAuthorisationFailureRedirectOptions(component: Constructable<PlaceComponent>): Promise<Visit[]>;
|
|
36
36
|
get navigationSession(): NavigationSession;
|
|
37
37
|
get currentSession(): NavigationSession;
|
|
38
38
|
isNavigating(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.127",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.68",
|
|
16
16
|
"fast-typescript-memoize": "^1.1.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|