@coolon/angular-ui-powerups 13.4.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.
- package/esm2020/lib/interaction/activity.mjs +7 -2
- package/fesm2015/coolon-angular-ui-powerups.mjs +5 -0
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +5 -0
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/activity.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5062,6 +5062,7 @@ class Activity extends DisposableComponent {
|
|
|
5062
5062
|
this.activityReadyListeners = new EventListenerList();
|
|
5063
5063
|
this._busy$ = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
5064
5064
|
this._focused$ = this.registerDisposable(new DelegatingValueModel());
|
|
5065
|
+
this._ready$ = new MutableValueModel(false);
|
|
5065
5066
|
this.class = "aup-activity";
|
|
5066
5067
|
this.busyWhile(this.confirmCommand.busy);
|
|
5067
5068
|
}
|
|
@@ -5098,6 +5099,7 @@ class Activity extends DisposableComponent {
|
|
|
5098
5099
|
}
|
|
5099
5100
|
notifyActivityReady() {
|
|
5100
5101
|
this.activityReadyListeners.fire(l => l(this));
|
|
5102
|
+
this._ready$.value = true;
|
|
5101
5103
|
}
|
|
5102
5104
|
onActivityReady(callback) {
|
|
5103
5105
|
return this.activityReadyListeners.add(callback);
|
|
@@ -5105,6 +5107,9 @@ class Activity extends DisposableComponent {
|
|
|
5105
5107
|
autoFocusOnActivityReady(focusable) {
|
|
5106
5108
|
return this.onActivityReady(() => focusable.requestFocus());
|
|
5107
5109
|
}
|
|
5110
|
+
get ready$() {
|
|
5111
|
+
return this._ready$.readonly;
|
|
5112
|
+
}
|
|
5108
5113
|
get busy$() {
|
|
5109
5114
|
return this._busy$.readonly;
|
|
5110
5115
|
}
|