@coolon/angular-ui-powerups 14.35.1 → 14.36.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/components/activity-container/activity-container.component.mjs +5 -6
- package/fesm2015/coolon-angular-ui-powerups.mjs +4 -5
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +4 -5
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -8365,9 +8365,8 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
8365
8365
|
this.busy = this.registerDisposable(new DelegatingValueModel().withDefault(false));
|
|
8366
8366
|
this.syncTabsJob = undefined;
|
|
8367
8367
|
const { chain, valueOf, when } = Dsl.disposeWith(this);
|
|
8368
|
-
when(this.ready$).becomesTruthy(() =>
|
|
8369
|
-
|
|
8370
|
-
});
|
|
8368
|
+
when(this.ready$).becomesTruthy(() => this.finaliseActivityStates());
|
|
8369
|
+
this.stable$ = valueOf.all(this.ready$, this._started$, chain(this.animating$).isFalsey()).areTruthy();
|
|
8371
8370
|
}
|
|
8372
8371
|
get started$() {
|
|
8373
8372
|
return this._started$.readonly;
|
|
@@ -8521,11 +8520,11 @@ class ActivityContainerComponent extends AbstractInteractionContext {
|
|
|
8521
8520
|
this.tabs.selectedIndex = newIndex;
|
|
8522
8521
|
if (this.ready$.value) {
|
|
8523
8522
|
// Note: We're not using the animation done event as it's firing almost immeadiately.
|
|
8524
|
-
setTimeout(() => this.
|
|
8523
|
+
setTimeout(() => this.finaliseActivityStates(), animate ? this.getTabAnimationDuration() : 0);
|
|
8525
8524
|
}
|
|
8526
8525
|
}
|
|
8527
8526
|
}
|
|
8528
|
-
|
|
8527
|
+
finaliseActivityStates() {
|
|
8529
8528
|
this._animating$.value = false;
|
|
8530
8529
|
this.activityRefs = this.activityRefs.filter(tab => !tab.isComplete());
|
|
8531
8530
|
this.activityRefs.forEach((ref, index) => {
|