@coolon/angular-ui-powerups 0.0.104 → 0.0.106

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.
@@ -19,7 +19,7 @@ export declare abstract class InteractionContextBase extends InteractionContext
19
19
  * Returns the activity that is currently active.
20
20
  * This model is only updated in the next tick after the view has been updated.
21
21
  */
22
- getCurrentActivity(): Promise<Activity<any, any>>;
22
+ getActiveActivity(): Promise<Activity<any, any>>;
23
23
  protected abstract _startActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data?: D, disableClose?: boolean): Promise<R>;
24
24
  startActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R>;
25
25
  confirm(confirm: Confirm): Promise<boolean>;
@@ -15,12 +15,12 @@ export declare abstract class InteractionContext extends GarbageCollector {
15
15
  * Cancels the current activity and returns true the context is no longer active, false if
16
16
  * there is still another activity running.
17
17
  */
18
- cancelCurrentActivity(): Promise<boolean>;
18
+ cancelActiveActivity(): Promise<boolean>;
19
19
  /**
20
20
  * Returns the activity that is currently active.
21
21
  * This model is only updated in the next tick after the view has been updated.
22
22
  */
23
- protected abstract getCurrentActivity(): Promise<Activity<any, any>>;
23
+ abstract getActiveActivity(): Promise<Activity<any, any>>;
24
24
  abstract startActivity<D, R, E>(activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R>;
25
25
  abstract alert(alert: Alert): Promise<void>;
26
26
  abstract confirm(confirm: Confirm): Promise<boolean>;
@@ -32,5 +32,4 @@ export declare abstract class InteractionContext extends GarbageCollector {
32
32
  * @param data the activity data.
33
33
  */
34
34
  abstract confirmThen<D, R, E>(confirm: Confirm, activityType: Constructable<Activity<D, R, E>>, data?: D): Promise<R>;
35
- abort(): Promise<void>;
36
35
  }
@@ -15,7 +15,16 @@ export declare class InteractionService {
15
15
  constructor(modelInteractionContextFactory: ModalInteractionContextFactory);
16
16
  isActive(): boolean;
17
17
  isModalActive(): boolean;
18
+ /**
19
+ * @deprecated use #createModalInteractionContextDisposedWith instead.
20
+ * @param disposable
21
+ */
18
22
  createModalInteractionContextFor(disposable: Disposable.Collector): InteractionContext;
23
+ /**
24
+ * Creates a new model interaction context that will be disposed along with the component.
25
+ * @param disposable
26
+ */
27
+ createModalInteractionContextDisposedWith(disposable: Disposable.Collector): InteractionContext;
19
28
  _registerInplaceInteractionContext(interactionContext: InteractionContext): void;
20
29
  getActiveContext(): InteractionContext;
21
30
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "dependencies": {
6
6
  "ts-morph": "^3.1.3",