@coolon/angular-ui-powerups 16.1.0-aplpha.144 → 16.1.0-aplpha.145
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/esm2022/lib/interaction/activity-context.mjs +1 -1
- package/esm2022/lib/interaction/activity.mjs +2 -2
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +6 -1
- package/esm2022/lib/interaction/interaction-context-provider.mjs +1 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs +5 -4
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/activity-context.d.ts +3 -1
- package/lib/interaction/activity.d.ts +1 -1
- package/lib/interaction/interaction-context-provider.d.ts +0 -6
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Command } from "@coolon/pectin";
|
|
2
2
|
import { InteractionContext } from "./interaction-context";
|
|
3
|
-
|
|
3
|
+
import { InteractionContextProvider } from "./interaction-context-provider";
|
|
4
|
+
export declare abstract class ActivityContext implements InteractionContextProvider {
|
|
4
5
|
abstract readonly interactionContext: InteractionContext;
|
|
5
6
|
abstract readonly confirmCommand: Command;
|
|
6
7
|
abstract readonly cancelCommand: Command;
|
|
8
|
+
abstract getInteractionContext(): InteractionContext;
|
|
7
9
|
abstract onActivityReady(callback: () => void): void;
|
|
8
10
|
}
|
|
@@ -9,7 +9,7 @@ type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => voi
|
|
|
9
9
|
export declare class Activity<D, R, E = any> extends LoadableComponent implements InteractionContextProvider {
|
|
10
10
|
#private;
|
|
11
11
|
/**
|
|
12
|
-
* @deprecated, inject ActivityContext instead
|
|
12
|
+
* @deprecated, inject ActivityContext instead - and all activity outlets automatically inject the INTERACTION_CONTEXT_PROVIDER
|
|
13
13
|
*/
|
|
14
14
|
static asInteractionContextProvider<A extends Activity<any, any>>(this: Constructable<A>): {
|
|
15
15
|
provide: InjectionToken<InteractionContextProvider>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
|
2
2
|
import { InteractionContext } from "./interaction-context";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated, inject ActivityContext instead
|
|
5
|
-
*/
|
|
6
3
|
export declare const INTERACTION_CONTEXT_PROVIDER: InjectionToken<InteractionContextProvider>;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated, inject ActivityContext instead
|
|
9
|
-
*/
|
|
10
4
|
export interface InteractionContextProvider {
|
|
11
5
|
getInteractionContext(): InteractionContext;
|
|
12
6
|
}
|