@coolon/angular-ui-powerups 0.0.79 → 0.0.81
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 +143 -51
- 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.d.ts +20 -19
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/coolon-angular-ui-powerups.js +20 -19
- package/esm2015/index.js +2 -2
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +61 -10
- package/esm2015/lib/place/index.js +2 -1
- package/esm2015/lib/place/place-component.js +13 -4
- package/esm2015/lib/place/place-config.js +16 -0
- package/esm2015/lib/place/place.module.js +7 -2
- package/esm2015/public_api.js +2 -2
- package/esm5/coolon-angular-ui-powerups.js +20 -19
- package/esm5/index.js +2 -2
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +69 -18
- package/esm5/lib/place/index.js +2 -1
- package/esm5/lib/place/place-component.js +26 -4
- package/esm5/lib/place/place-config.js +16 -0
- package/esm5/lib/place/place.module.js +7 -2
- package/esm5/public_api.js +2 -2
- package/fesm2015/coolon-angular-ui-powerups.js +89 -12
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +110 -20
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +6 -1
- package/lib/place/index.d.ts +1 -0
- package/lib/place/place-component.d.ts +8 -3
- package/lib/place/place-config.d.ts +5 -0
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
|
3
3
|
import { Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
import { PlaceComponent } from '../../place-component';
|
|
6
|
+
import { PlaceConfig } from '../../place-config';
|
|
6
7
|
import { PlaceDefinition } from '../../place-definition';
|
|
7
8
|
import { PlaceRouter } from '../../place-router';
|
|
8
9
|
import { Visit } from '../../visit';
|
|
@@ -14,6 +15,7 @@ interface PlaceRef {
|
|
|
14
15
|
export declare class PlaceOutletComponent extends DisposableComponent implements OnInit {
|
|
15
16
|
private readonly router;
|
|
16
17
|
private readonly placeRouter;
|
|
18
|
+
readonly placeConfig: PlaceConfig;
|
|
17
19
|
animate: boolean;
|
|
18
20
|
customPlaceAnimationOrderModel: ListModel<Constructable<PlaceComponent>>;
|
|
19
21
|
customPlaceAnimationOrder: Constructable<PlaceComponent>[];
|
|
@@ -27,8 +29,10 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
27
29
|
private parentOutletModel;
|
|
28
30
|
readonly placeAnimationOrder: ValueModelChain<number>;
|
|
29
31
|
private isOnInitialPlace;
|
|
30
|
-
|
|
32
|
+
private _previousPlace;
|
|
33
|
+
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, parentOutlet: PlaceOutletComponent);
|
|
31
34
|
ngOnInit(): void;
|
|
35
|
+
readonly animationDuration: string;
|
|
32
36
|
navigate(visit: Visit): void;
|
|
33
37
|
readonly parentOutlet: PlaceOutletComponent;
|
|
34
38
|
pushVisitChangesToRoute(next: Visit, previous: Visit): void;
|
|
@@ -36,6 +40,7 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
36
40
|
readonly activatedRouteModel: ValueModel<ActivatedRoute>;
|
|
37
41
|
onOutletActivated(routerOutlet: RouterOutlet, place: PlaceComponent): void;
|
|
38
42
|
onOutletDeactivated(routerOutlet: RouterOutlet, $event: PlaceRef): void;
|
|
43
|
+
animationStarted(): void;
|
|
39
44
|
animationDone(): void;
|
|
40
45
|
}
|
|
41
46
|
export {};
|
package/lib/place/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Constructable, ValueModel } from '@coolon/pectin';
|
|
1
|
+
import { Constructable, GarbageCollector, ValueModel } from '@coolon/pectin';
|
|
2
2
|
import 'reflect-metadata';
|
|
3
|
-
import { DisposableComponent } from '../components/disposable-component';
|
|
4
3
|
import { InteractionContext } from '../interaction/interaction-context';
|
|
5
4
|
import { PlaceDefinition } from './place-definition';
|
|
6
5
|
import { ParameterDefinition } from './route/parameter-definition.class';
|
|
7
6
|
import { Visit } from './visit';
|
|
8
7
|
export declare const DEFINITION_META_DATA_KEY = "PLACE_DEFINITION_OPTIONS";
|
|
9
8
|
export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
|
|
10
|
-
export declare class PlaceComponent extends
|
|
9
|
+
export declare class PlaceComponent extends GarbageCollector {
|
|
11
10
|
private visit;
|
|
12
11
|
interactionContext?: InteractionContext;
|
|
13
12
|
constructor();
|
|
@@ -17,6 +16,12 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
17
16
|
readonly childPlaces: Constructable<PlaceComponent>[];
|
|
18
17
|
canDeactivate(): boolean | Promise<boolean>;
|
|
19
18
|
onPlaceReady(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Called by the place outlet after all animations have finished. We need this instead of ngOnDestroy
|
|
21
|
+
* to avoid the fact that the angular router calls it before the animations have run causing the component
|
|
22
|
+
* to loose any pectin bindings.
|
|
23
|
+
*/
|
|
24
|
+
onPlaceDestroyed(): void;
|
|
20
25
|
}
|
|
21
26
|
export declare namespace PlaceComponent {
|
|
22
27
|
function isPlaceComponentConstructor(target: any): target is Constructable<PlaceComponent>;
|