@coolon/angular-ui-powerups 0.0.80 → 0.0.83
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 +86 -35
- 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/components/alert-dialog/alert-dialog.component.js +3 -3
- package/esm2015/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +3 -3
- package/esm2015/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +3 -3
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +52 -19
- package/esm2015/lib/place/place-component.js +13 -4
- package/esm2015/lib/place/place.module.js +5 -2
- package/esm5/lib/interaction/components/alert-dialog/alert-dialog.component.js +3 -3
- package/esm5/lib/interaction/components/confirm-then-dialog/confirm-then-dialog.component.js +3 -3
- package/esm5/lib/interaction/components/confirmation-dialog/confirmation-dialog.component.js +3 -3
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +57 -29
- package/esm5/lib/place/place-component.js +26 -4
- package/esm5/lib/place/place.module.js +5 -2
- package/fesm2015/coolon-angular-ui-powerups.js +69 -26
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +87 -36
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +3 -9
- package/lib/place/place-component.d.ts +8 -3
- package/package.json +1 -1
|
@@ -4,14 +4,8 @@ import { Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/p
|
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
import { PlaceComponent } from '../../place-component';
|
|
6
6
|
import { PlaceConfig } from '../../place-config';
|
|
7
|
-
import { PlaceDefinition } from '../../place-definition';
|
|
8
7
|
import { PlaceRouter } from '../../place-router';
|
|
9
8
|
import { Visit } from '../../visit';
|
|
10
|
-
interface PlaceRef {
|
|
11
|
-
readonly placeDefinition: PlaceDefinition;
|
|
12
|
-
initialiseBindings(param: ValueModel<Visit>): void;
|
|
13
|
-
onPlaceReady(): void;
|
|
14
|
-
}
|
|
15
9
|
export declare class PlaceOutletComponent extends DisposableComponent implements OnInit {
|
|
16
10
|
private readonly router;
|
|
17
11
|
private readonly placeRouter;
|
|
@@ -22,7 +16,7 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
22
16
|
readonly placeChanged: EventEmitter<PlaceComponent>;
|
|
23
17
|
routerOut: RouterOutlet;
|
|
24
18
|
private readonly _activePlace;
|
|
25
|
-
private
|
|
19
|
+
private _activePlaceVisitModel;
|
|
26
20
|
private readonly _inOutletUpdate;
|
|
27
21
|
private readonly _activatedRouteModel;
|
|
28
22
|
private readonly _placeDefinition;
|
|
@@ -38,7 +32,7 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
38
32
|
readonly activePlaceModel: ValueModel<PlaceComponent>;
|
|
39
33
|
readonly activatedRouteModel: ValueModel<ActivatedRoute>;
|
|
40
34
|
onOutletActivated(routerOutlet: RouterOutlet, place: PlaceComponent): void;
|
|
41
|
-
onOutletDeactivated(
|
|
35
|
+
onOutletDeactivated(): void;
|
|
36
|
+
animationStarted(): void;
|
|
42
37
|
animationDone(): void;
|
|
43
38
|
}
|
|
44
|
-
export {};
|
|
@@ -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>;
|