@coolon/angular-ui-powerups 0.0.105 → 0.0.107
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/bundles/coolon-angular-ui-powerups.umd.js +123 -71
- 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/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/services/interaction.service.js +10 -1
- package/esm2015/lib/place/guards/navigation-state.js +33 -8
- package/esm2015/lib/place/guards/place-component-deactivation-handler.js +3 -3
- package/esm2015/lib/place/place-router.js +53 -18
- package/esm2015/lib/place/url-snapshot.js +5 -25
- package/esm5/lib/interaction/services/interaction.service.js +24 -1
- package/esm5/lib/place/guards/navigation-state.js +39 -19
- package/esm5/lib/place/guards/place-component-deactivation-handler.js +2 -3
- package/esm5/lib/place/place-router.js +60 -24
- package/esm5/lib/place/url-snapshot.js +5 -31
- package/fesm2015/coolon-angular-ui-powerups.js +98 -49
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +124 -72
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/services/interaction.service.d.ts +9 -0
- package/lib/place/place-router.d.ts +3 -3
- package/lib/place/url-snapshot.d.ts +2 -5
- package/package.json +1 -1
|
@@ -15,7 +15,16 @@ export declare class InteractionService {
|
|
|
15
15
|
constructor(modelInteractionContextFactory: ModalInteractionContextFactory);
|
|
16
16
|
isActive(): boolean;
|
|
17
17
|
isModalActive(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use #createModalInteractionContextDisposedWith instead.
|
|
20
|
+
* @param disposable
|
|
21
|
+
*/
|
|
18
22
|
createModalInteractionContextFor(disposable: Disposable.Collector): InteractionContext;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a new model interaction context that will be disposed along with the component.
|
|
25
|
+
* @param disposable
|
|
26
|
+
*/
|
|
27
|
+
createModalInteractionContextDisposedWith(disposable: Disposable.Collector): InteractionContext;
|
|
19
28
|
_registerInplaceInteractionContext(interactionContext: InteractionContext): void;
|
|
20
29
|
getActiveContext(): InteractionContext;
|
|
21
30
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Location } from '@angular/common';
|
|
2
|
-
import { ActivatedRoute, ActivatedRouteSnapshot, Router, UrlSerializer } from '@angular/router';
|
|
2
|
+
import { ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, Router, UrlSerializer } from '@angular/router';
|
|
3
3
|
import { GarbageCollector, HasOneIndexChain, ListModel, ValueModel } from '@coolon/pectin';
|
|
4
4
|
import { InteractionService } from '../interaction/services/interaction.service';
|
|
5
5
|
import { NavigationState } from './guards/navigation-state';
|
|
@@ -42,6 +42,6 @@ export declare class PlaceRouter extends GarbageCollector {
|
|
|
42
42
|
getCurrentRouteSnapshot(): UrlSnapshot;
|
|
43
43
|
getActiveInteractionIdsFromUrl(url: string): string[];
|
|
44
44
|
hasActiveInteractionIds(url: string): boolean;
|
|
45
|
-
navigateByUrl(urlSnapshot: UrlSnapshot):
|
|
46
|
-
syncInteractionIdsWithRouter(): void;
|
|
45
|
+
navigateByUrl(urlSnapshot: UrlSnapshot, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
46
|
+
syncInteractionIdsWithRouter(currentIds: string[], previous: string[]): void;
|
|
47
47
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UrlSegment, UrlSerializer, UrlTree } from '@angular/router';
|
|
2
2
|
import { PlaceDefinition } from './place-definition';
|
|
3
3
|
import { Visit } from './visit';
|
|
4
4
|
export declare class UrlSnapshot {
|
|
5
5
|
readonly urlSerializer: UrlSerializer;
|
|
6
6
|
readonly url: string;
|
|
7
|
-
private readonly options;
|
|
8
7
|
readonly urlTree: UrlTree;
|
|
9
|
-
constructor(urlSerializer: UrlSerializer, url: string
|
|
8
|
+
constructor(urlSerializer: UrlSerializer, url: string);
|
|
10
9
|
updateVisitSegments(visit: Visit): UrlSnapshot;
|
|
11
10
|
private getPrimarySegments;
|
|
12
11
|
/**
|
|
@@ -19,8 +18,6 @@ export declare class UrlSnapshot {
|
|
|
19
18
|
hasInteractionIds(): boolean;
|
|
20
19
|
updateInteractionIds(ids: string[]): UrlSnapshot;
|
|
21
20
|
removeInteractionIds(): UrlSnapshot;
|
|
22
|
-
withOptions(options: NavigationExtras): UrlSnapshot;
|
|
23
|
-
getNavigationExtras(): NavigationExtras;
|
|
24
21
|
}
|
|
25
22
|
export declare namespace UrlSnapshot {
|
|
26
23
|
const INTERACTION_QUERY_PARAM = "aup-interactions";
|