@coolon/angular-ui-powerups 16.1.0-aplpha.145 → 16.1.0-aplpha.146
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 +3 -2
- package/esm2022/lib/interaction/activity.mjs +1 -13
- package/esm2022/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.mjs +3 -3
- package/esm2022/lib/interaction/interaction-context-provider.mjs +17 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs +20 -16
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/activity-context.d.ts +1 -2
- package/lib/interaction/activity.d.ts +2 -11
- package/lib/interaction/interaction-context-provider.d.ts +9 -4
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
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
|
|
4
|
+
export declare abstract class ActivityContext extends InteractionContextProvider {
|
|
5
5
|
abstract readonly interactionContext: InteractionContext;
|
|
6
6
|
abstract readonly confirmCommand: Command;
|
|
7
7
|
abstract readonly cancelCommand: Command;
|
|
8
|
-
abstract getInteractionContext(): InteractionContext;
|
|
9
8
|
abstract onActivityReady(callback: () => void): void;
|
|
10
9
|
}
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { Command,
|
|
2
|
+
import { Command, Disposable, ValueModel } from "@coolon/pectin";
|
|
3
3
|
import { LoadableComponent } from "../components/loadable-component";
|
|
4
4
|
import { InteractionContext } from "./interaction-context";
|
|
5
|
-
import { InteractionContextProvider } from "./interaction-context-provider";
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
7
|
type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
|
-
export declare class Activity<D, R, E = any> extends LoadableComponent
|
|
8
|
+
export declare class Activity<D, R, E = any> extends LoadableComponent {
|
|
10
9
|
#private;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated, inject ActivityContext instead - and all activity outlets automatically inject the INTERACTION_CONTEXT_PROVIDER
|
|
13
|
-
*/
|
|
14
|
-
static asInteractionContextProvider<A extends Activity<any, any>>(this: Constructable<A>): {
|
|
15
|
-
provide: InjectionToken<InteractionContextProvider>;
|
|
16
|
-
useExisting: Constructable<A>;
|
|
17
|
-
};
|
|
18
10
|
readonly activityData: D;
|
|
19
11
|
private readonly activityReadyListeners;
|
|
20
12
|
private readonly _busy$;
|
|
@@ -52,7 +44,6 @@ export declare class Activity<D, R, E = any> extends LoadableComponent implement
|
|
|
52
44
|
get disableClose(): boolean;
|
|
53
45
|
disableCloseWhile(condition: ValueModel<boolean>): void;
|
|
54
46
|
isInitialised(): boolean;
|
|
55
|
-
getInteractionContext(): InteractionContext;
|
|
56
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<Activity<any, any, any>, never>;
|
|
57
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<Activity<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
58
49
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Activity } from "./activity";
|
|
2
2
|
import { InteractionContext } from "./interaction-context";
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare abstract class InteractionContextProvider {
|
|
4
|
+
static forActivity(activity: Activity<any, any>): {
|
|
5
|
+
getInteractionContext(): InteractionContext;
|
|
6
|
+
};
|
|
7
|
+
static forInteractionContext(interactionContext: InteractionContext): {
|
|
8
|
+
getInteractionContext(): InteractionContext;
|
|
9
|
+
};
|
|
10
|
+
abstract getInteractionContext(): InteractionContext;
|
|
6
11
|
}
|