@coolon/angular-ui-powerups 13.3.0 → 13.5.0

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.
@@ -29,7 +29,7 @@ export declare class CommandComponent extends PopupAwareComponent implements OnI
29
29
  ngOnInit(): void;
30
30
  ngAfterViewInit(): void;
31
31
  getFace(): CommandFace | undefined;
32
- tryAndFocus(): void;
32
+ requestFocus(): void;
33
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CommandComponent, [null, { optional: true; }]>;
34
34
  static ɵcmp: i0.ɵɵComponentDeclaration<CommandComponent, "aup-command", never, { "command": "command"; "faceModel": "faceModel"; "face": "face"; "busyFaceModel": "busyFaceModel"; "busyFace": "busyFace"; "alignFace": "alignFace"; }, {}, never, never>;
35
35
  }
@@ -11,6 +11,7 @@ export declare class Activity<D, R, E = any> extends DisposableComponent impleme
11
11
  private readonly _busy$;
12
12
  private _focused$;
13
13
  private _activityContext;
14
+ private readonly _ready$;
14
15
  protected activityActions: ActivityActionsComponent;
15
16
  confirmCommand: Command<unknown>;
16
17
  cancelCommand: Command<unknown>;
@@ -26,6 +27,10 @@ export declare class Activity<D, R, E = any> extends DisposableComponent impleme
26
27
  cancel(error?: E): void;
27
28
  notifyActivityReady(): void;
28
29
  onActivityReady(callback: OnActivityReadyParams<D, R, E>): Disposable;
30
+ autoFocusOnActivityReady(focusable: {
31
+ requestFocus(): void;
32
+ }): Disposable;
33
+ get ready$(): ValueModel<boolean>;
29
34
  get busy$(): ValueModel<boolean>;
30
35
  get focused$(): ValueModel<boolean>;
31
36
  busyWhile(busyModel: ValueModel<boolean>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolon/angular-ui-powerups",
3
- "version": "13.3.0",
3
+ "version": "13.5.0",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^13.2.3",