@coolon/angular-ui-powerups 2.0.0-alpha.32 → 2.0.0-alpha.34
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/CHANGELOG.md +14 -0
- package/assets/interaction.scss +5 -0
- package/assets/tabs.scss +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.js +127 -36
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +2 -2
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/card-container/card-container.component.js +1 -1
- package/esm2015/lib/components/card-container/card-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/activity-ref.js +10 -2
- package/esm2015/lib/interaction/activity-ref.js.map +1 -1
- package/esm2015/lib/interaction/activity-ref.metadata.json +1 -1
- package/esm2015/lib/interaction/activity.js +18 -1
- package/esm2015/lib/interaction/activity.js.map +1 -1
- package/esm2015/lib/interaction/activity.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-actions/activity-actions.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +16 -17
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +0 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js +56 -16
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm2015/lib/place/components/place-outlet/place-outlet.component.metadata.json +1 -1
- package/esm2015/lib/place/place-component.js +12 -0
- package/esm2015/lib/place/place-component.js.map +1 -1
- package/esm2015/lib/place/place-component.metadata.json +1 -1
- package/esm2015/lib/place/place.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/card-container/card-container.component.js +1 -1
- package/esm5/lib/interaction/activity-ref.js +14 -2
- package/esm5/lib/interaction/activity-ref.js.map +1 -1
- package/esm5/lib/interaction/activity.js +27 -1
- package/esm5/lib/interaction/activity.js.map +1 -1
- package/esm5/lib/interaction/components/activity-actions/activity-actions.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +16 -17
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +0 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js +56 -16
- package/esm5/lib/place/components/place-outlet/place-outlet.component.js.map +1 -1
- package/esm5/lib/place/place-component.js +16 -0
- package/esm5/lib/place/place-component.js.map +1 -1
- package/esm5/lib/place/place.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +111 -37
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +128 -37
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/activity-ref.d.ts +3 -0
- package/lib/interaction/activity.d.ts +6 -2
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +2 -2
- package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +0 -1
- package/lib/place/components/place-outlet/place-outlet.component.d.ts +8 -2
- package/lib/place/place-component.d.ts +6 -0
- package/package.json +1 -1
|
@@ -8,10 +8,13 @@ export declare class ActivityRef<D, R, E> {
|
|
|
8
8
|
private _complete;
|
|
9
9
|
private _activity;
|
|
10
10
|
private deferredResult;
|
|
11
|
+
private readonly focusedModel;
|
|
11
12
|
constructor(activityClass: Constructable<Activity<D, R, E>>, activityData: D, onComplete: (activityRef: ActivityRef<D, R, E>) => void);
|
|
12
13
|
isActivityRealised(): boolean;
|
|
13
14
|
isComplete(): boolean;
|
|
14
15
|
get activity(): Activity<D, R, E>;
|
|
16
|
+
setFocused(focused: boolean): void;
|
|
17
|
+
get focused(): boolean;
|
|
15
18
|
notifyActivityCreated(activity: Activity<D, R, E>, nestedInteractionContext: InteractionContext): void;
|
|
16
19
|
protected finishActivity(resolveOrReject: (deferred: Deferred<R>) => void): void;
|
|
17
20
|
cancel(): void;
|
|
@@ -5,22 +5,26 @@ import { InteractionContext } from './interaction-context';
|
|
|
5
5
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
6
6
|
export declare abstract class Activity<D, R, E = any> extends DisposableComponent {
|
|
7
7
|
private readonly _busyModel;
|
|
8
|
+
private _focusedModel;
|
|
8
9
|
private _activityContext;
|
|
9
10
|
private _interactionContext;
|
|
10
11
|
class: string;
|
|
11
|
-
|
|
12
|
+
get isFocused(): boolean;
|
|
13
|
+
initialise(nestedInteractionContext: InteractionContext, activityContext: Activity.Context<R, E>): void;
|
|
12
14
|
get interactionContext(): InteractionContext;
|
|
13
15
|
done(result?: R): void;
|
|
14
16
|
cancel(error?: E): void;
|
|
15
17
|
onActivityReady(): void;
|
|
16
18
|
get busy(): ValueModel<boolean>;
|
|
19
|
+
get focused(): ValueModel<boolean>;
|
|
17
20
|
busyWhile(busyModel: ValueModel<boolean>): void;
|
|
18
21
|
isBusy(): boolean;
|
|
19
22
|
isInitialised(): boolean;
|
|
20
23
|
}
|
|
21
24
|
export declare namespace Activity {
|
|
22
|
-
interface
|
|
25
|
+
interface Context<R, E> {
|
|
23
26
|
onDone: (result: R) => void;
|
|
24
27
|
onCancel: (error: E) => void;
|
|
28
|
+
focused: ValueModel<boolean>;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
@@ -10,14 +10,14 @@ export declare class ActivityContainerComponent<D, R, E> extends AbstractInterac
|
|
|
10
10
|
dynamicHeight: boolean;
|
|
11
11
|
tabs: MatTabGroup;
|
|
12
12
|
activityOutlets: QueryList<ActivityOutletComponent<any, any, any>>;
|
|
13
|
-
|
|
13
|
+
activityRefs: ActivityRef<any, any, any>[];
|
|
14
14
|
private _identifier;
|
|
15
15
|
private _deferredCleanUp;
|
|
16
16
|
private interactionServiceApi;
|
|
17
17
|
private garbage;
|
|
18
18
|
private syncSelectedTabTimeout;
|
|
19
19
|
private onAnimationFinishedJob;
|
|
20
|
-
readonly
|
|
20
|
+
readonly inAnimation: MutableValueModel<boolean>;
|
|
21
21
|
constructor();
|
|
22
22
|
ngOnInit(): void;
|
|
23
23
|
ngAfterViewInit(): void;
|
package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare class ActivityOutletComponent<D, R, E> implements OnInit {
|
|
|
13
13
|
private activityComponentRef;
|
|
14
14
|
nestedInteractionContext: InteractionContext;
|
|
15
15
|
private _activityRef;
|
|
16
|
-
private _disableAnimation;
|
|
17
16
|
set activityRef(activityRef: ActivityRef<D, R, E>);
|
|
18
17
|
get activityRef(): ActivityRef<D, R, E>;
|
|
19
18
|
constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, injector: Injector);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
|
|
3
|
-
import { Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
3
|
+
import { BooleanValueModelChain, Constructable, ListModel, ValueModel, ValueModelChain } from '@coolon/pectin';
|
|
4
4
|
import { DisposableComponent } from '../../../components/disposable-component';
|
|
5
5
|
import { PlaceComponent } from '../../place-component';
|
|
6
6
|
import { PlaceConfig } from '../../place-config';
|
|
@@ -16,16 +16,21 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
16
16
|
customPlaceAnimationOrder: Constructable<PlaceComponent>[];
|
|
17
17
|
readonly placeChanged: EventEmitter<PlaceComponent>;
|
|
18
18
|
routerOut: RouterOutlet;
|
|
19
|
+
private onAnimationFinishedJob;
|
|
19
20
|
private outletActivated;
|
|
20
21
|
private readonly _activatedRouteModel;
|
|
21
22
|
private readonly _activePlaceModel;
|
|
22
23
|
private readonly _activePlaceDefinition;
|
|
23
24
|
private parentOutletModel;
|
|
24
|
-
readonly
|
|
25
|
+
readonly activePlaceAnimationPosition: ValueModelChain<number>;
|
|
25
26
|
private initialPlaceIndex;
|
|
26
27
|
private routerVisitModel;
|
|
27
28
|
private _isPushingVisitToRoute;
|
|
28
29
|
private navigationInProgress;
|
|
30
|
+
private isVeryFirstLoad;
|
|
31
|
+
private placesInAnimationOrder;
|
|
32
|
+
private animationSupported;
|
|
33
|
+
readonly animationEnabled: BooleanValueModelChain;
|
|
29
34
|
constructor(router: Router, placeRouter: PlaceRouter, placeConfig: PlaceConfig, parentOutlet: PlaceOutletComponent);
|
|
30
35
|
ngOnInit(): void;
|
|
31
36
|
getAnimationOrder(): number;
|
|
@@ -35,6 +40,7 @@ export declare class PlaceOutletComponent extends DisposableComponent implements
|
|
|
35
40
|
get activePlaceModel(): ValueModel<PlaceComponent>;
|
|
36
41
|
get activatedRouteModel(): ValueModel<ActivatedRoute>;
|
|
37
42
|
onOutletActivated(routerOutlet: RouterOutlet, place: PlaceComponent): void;
|
|
43
|
+
private validateAnimationState;
|
|
38
44
|
onOutletDeactivated(): void;
|
|
39
45
|
private checkStateAndInitialise;
|
|
40
46
|
private initialisePlace;
|
|
@@ -10,6 +10,7 @@ export declare const ROUTE_PARAMETER_LIST_KEY: unique symbol;
|
|
|
10
10
|
export declare class PlaceComponent extends DisposableComponent {
|
|
11
11
|
private visitModel;
|
|
12
12
|
private _inVisitUpdate;
|
|
13
|
+
private _active;
|
|
13
14
|
interactionContext?: InteractionContext;
|
|
14
15
|
canDeactivate?(interactionContext: InteractionContext): boolean | Promise<boolean>;
|
|
15
16
|
constructor();
|
|
@@ -19,6 +20,11 @@ export declare class PlaceComponent extends DisposableComponent {
|
|
|
19
20
|
private installBinding;
|
|
20
21
|
get placeDefinition(): PlaceDefinition;
|
|
21
22
|
get childPlaces(): Constructable<PlaceComponent>[];
|
|
23
|
+
get active(): import("@coolon/pectin").ValueModel<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Called by the router when the place is ready to interact after any animations have run.
|
|
26
|
+
*/
|
|
27
|
+
_notifyActive(active: boolean): void;
|
|
22
28
|
onPlaceReady(): void;
|
|
23
29
|
}
|
|
24
30
|
export declare namespace PlaceComponent {
|