@coolon/angular-ui-powerups 16.1.0-alpha.299 → 16.1.0-alpha.301
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/commands.scss +18 -0
- package/assets/styles.scss +1 -0
- package/esm2022/lib/place/navigation/session/navigation-context.mjs +7 -2
- package/esm2022/lib/place/navigation/session/navigation-session.mjs +10 -2
- package/esm2022/lib/place/place-router.mjs +2 -2
- package/fesm2022/coolon-angular-ui-powerups.mjs +16 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/place/navigation/session/navigation-context.d.ts +7 -1
- package/package.json +1 -1
|
@@ -6,6 +6,10 @@ import type { NavigationSession } from './navigation-session';
|
|
|
6
6
|
export interface NavigationContext {
|
|
7
7
|
readonly urlService: UrlService;
|
|
8
8
|
readonly routerInteractionAdapter: InteractionServiceRoutingAdapter;
|
|
9
|
+
/**
|
|
10
|
+
* The visit of the last completed navigation, or undefined before the first one.
|
|
11
|
+
*/
|
|
12
|
+
readonly activeVisit: Visit | undefined;
|
|
9
13
|
finishRoutingSession(visit?: Visit): any;
|
|
10
14
|
/**
|
|
11
15
|
* Records a completed navigation's visit (active visit + place history) WITHOUT finishing the
|
|
@@ -29,8 +33,10 @@ export declare namespace NavigationContext {
|
|
|
29
33
|
readonly transitionTo: (newState: NavigationSession) => void;
|
|
30
34
|
readonly finishRoutingSession: (visit?: Visit) => void;
|
|
31
35
|
readonly recordVisit: (visit: Visit) => void;
|
|
36
|
+
private readonly getActiveVisit;
|
|
32
37
|
constructor(urlService: UrlService, routerInteractionAdapter: InteractionServiceRoutingAdapter, navigateByUrl: (urlSnapshot: UrlSnapshot, options: {
|
|
33
38
|
replaceUrl: boolean;
|
|
34
|
-
}) => Promise<boolean>, transitionTo: (newState: NavigationSession) => void, finishRoutingSession: (visit?: Visit) => void, recordVisit: (visit: Visit) => void);
|
|
39
|
+
}) => Promise<boolean>, transitionTo: (newState: NavigationSession) => void, finishRoutingSession: (visit?: Visit) => void, recordVisit: (visit: Visit) => void, getActiveVisit: () => Visit | undefined);
|
|
40
|
+
get activeVisit(): Visit | undefined;
|
|
35
41
|
}
|
|
36
42
|
}
|