@coolon/angular-ui-powerups 16.1.0-aplpha.129 → 16.1.0-aplpha.130
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.mjs +12 -3
- package/esm2022/lib/interaction/exports.mjs +2 -1
- package/esm2022/lib/interaction/interaction-context-provider.mjs +3 -0
- package/fesm2022/coolon-angular-ui-powerups.mjs +13 -3
- package/fesm2022/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/activity.d.ts +3 -1
- package/lib/interaction/exports.d.ts +1 -0
- package/lib/interaction/interaction-context-provider.d.ts +6 -0
- package/package.json +2 -2
|
@@ -3,10 +3,11 @@ import { Command, Disposable, ValueModel } from "@coolon/pectin";
|
|
|
3
3
|
import { LoadableComponent } from "../components/loadable-component";
|
|
4
4
|
import { ActivityActionsComponent } from "./components/activity-actions/activity-actions.component";
|
|
5
5
|
import { InteractionContext } from "./interaction-context";
|
|
6
|
+
import { InteractionContextProvider } from "./interaction-context-provider";
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare const ACTIVITY_DATA: InjectionToken<any>;
|
|
8
9
|
type OnActivityReadyParams<D, R, E = any> = (activity: Activity<D, R, E>) => void;
|
|
9
|
-
export declare class Activity<D, R, E = any> extends LoadableComponent implements AfterViewInit {
|
|
10
|
+
export declare class Activity<D, R, E = any> extends LoadableComponent implements AfterViewInit, InteractionContextProvider {
|
|
10
11
|
readonly activityData: D;
|
|
11
12
|
private readonly activityReadyListeners;
|
|
12
13
|
private readonly _busy$;
|
|
@@ -44,6 +45,7 @@ export declare class Activity<D, R, E = any> extends LoadableComponent implement
|
|
|
44
45
|
busyWhile(busyModel: ValueModel<boolean>): void;
|
|
45
46
|
isBusy(): boolean;
|
|
46
47
|
isInitialised(): boolean;
|
|
48
|
+
getInteractionContext(): InteractionContext;
|
|
47
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<Activity<any, any, any>, never>;
|
|
48
50
|
static ɵcmp: i0.ɵɵComponentDeclaration<Activity<any, any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
49
51
|
}
|
|
@@ -7,6 +7,7 @@ export * from "./activity";
|
|
|
7
7
|
export * from "./alert";
|
|
8
8
|
export * from "./confirm";
|
|
9
9
|
export * from "./in-place-interaction-context";
|
|
10
|
+
export * from "./interaction-context-provider";
|
|
10
11
|
export * from "./interaction-context";
|
|
11
12
|
export * from "./interaction.module";
|
|
12
13
|
export * from "./route-synchronisation-adapter";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionToken } from "@angular/core";
|
|
2
|
+
import { InteractionContext } from "./interaction-context";
|
|
3
|
+
export declare const INTERACTION_CONTEXT_PROVIDER: InjectionToken<InteractionContextProvider>;
|
|
4
|
+
export interface InteractionContextProvider {
|
|
5
|
+
getInteractionContext(): InteractionContext;
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolon/angular-ui-powerups",
|
|
3
|
-
"version": "16.1.0-aplpha.
|
|
3
|
+
"version": "16.1.0-aplpha.130",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/animations": "^16.2.9",
|
|
6
6
|
"@angular/common": "^16.2.9",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/platform-browser-dynamic": "^16.2.9",
|
|
13
13
|
"@angular/material-moment-adapter": "^16.2.10",
|
|
14
14
|
"@angular/router": "^16.2.9",
|
|
15
|
-
"@coolon/pectin": "^5.0.0-alpha.
|
|
15
|
+
"@coolon/pectin": "^5.0.0-alpha.69",
|
|
16
16
|
"fast-typescript-memoize": "^1.1.1",
|
|
17
17
|
"lodash-es": "^4.17.21",
|
|
18
18
|
"marked": "4.0.10",
|