@coolon/angular-ui-powerups 2.0.0-alpha.29 → 2.0.0-alpha.30
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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +36 -3
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +36 -3
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
- package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js +36 -3
- package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -1
- package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
- package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +37 -4
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +37 -4
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/interaction/components/activity-container/activity-container.component.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.0.0-alpha.30](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.29...v2.0.0-alpha.30) (2020-08-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* disable tab content animations during tab change ([e61fa51](https://bitbucket.org/coolon/angular-ui-powerups/commit/e61fa51fb94d06b2a7a79d102c6929f5809a6e1b))
|
|
11
|
+
|
|
5
12
|
## [2.0.0-alpha.29](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.28...v2.0.0-alpha.29) (2020-08-25)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -3759,7 +3759,7 @@
|
|
|
3759
3759
|
},
|
|
3760
3760
|
set: function (activityRef) {
|
|
3761
3761
|
if (this.activityRef && !this.activityRef.isComplete()) {
|
|
3762
|
-
typescriptUtilities.lang.illegalState(
|
|
3762
|
+
typescriptUtilities.lang.illegalState('changing activity before previous one has completed');
|
|
3763
3763
|
}
|
|
3764
3764
|
this._activityRef = activityRef;
|
|
3765
3765
|
this.loadActivity(activityRef);
|
|
@@ -3824,6 +3824,11 @@
|
|
|
3824
3824
|
_this.dynamicHeight = false;
|
|
3825
3825
|
_this.activityTabs = [];
|
|
3826
3826
|
_this.garbage = new pectin.GarbageCollector();
|
|
3827
|
+
// We have issues where angular is triggering a leave animation when an
|
|
3828
|
+
// activity is replaced by another, but is not running the enter animation
|
|
3829
|
+
// when it is scrolled back into view. So we track the tab changes and
|
|
3830
|
+
// disable all animations inside the tab while we're animating.
|
|
3831
|
+
_this.inTabChange = new pectin.MutableValueModel(false);
|
|
3827
3832
|
return _this;
|
|
3828
3833
|
}
|
|
3829
3834
|
ActivityContainerComponent.prototype.ngOnInit = function () {
|
|
@@ -3968,6 +3973,7 @@
|
|
|
3968
3973
|
this.onAnimationFinishedJob();
|
|
3969
3974
|
this.onAnimationFinishedJob = undefined;
|
|
3970
3975
|
}
|
|
3976
|
+
this.inTabChange.value = false;
|
|
3971
3977
|
};
|
|
3972
3978
|
/**
|
|
3973
3979
|
* Synchronises the selected tab index.
|
|
@@ -3977,6 +3983,7 @@
|
|
|
3977
3983
|
var previousIndex = this.tabs.selectedIndex;
|
|
3978
3984
|
var newIndex = this.getActiveActivityCount() - 1;
|
|
3979
3985
|
if (previousIndex !== newIndex) {
|
|
3986
|
+
this.inTabChange.value = true;
|
|
3980
3987
|
this.tabs.selectedIndex = newIndex;
|
|
3981
3988
|
this.onAnimationFinishedJob = function () {
|
|
3982
3989
|
_this.getSelectedOutlet().component.onActivityReady();
|
|
@@ -3987,7 +3994,9 @@
|
|
|
3987
3994
|
ActivityContainerComponent.prototype.getSelectedOutlet = function () {
|
|
3988
3995
|
return this.activityOutlets.toArray()[this.tabs.selectedIndex];
|
|
3989
3996
|
};
|
|
3990
|
-
|
|
3997
|
+
ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
|
|
3998
|
+
return this.tabs.selectedIndex;
|
|
3999
|
+
};
|
|
3991
4000
|
ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
|
|
3992
4001
|
var _this = this;
|
|
3993
4002
|
if (this.syncSelectedTabTimeout) {
|
|
@@ -4010,10 +4019,34 @@
|
|
|
4010
4019
|
core.ViewChildren(ActivityOutletComponent),
|
|
4011
4020
|
__metadata("design:type", core.QueryList)
|
|
4012
4021
|
], ActivityContainerComponent.prototype, "activityOutlets", void 0);
|
|
4022
|
+
__decorate([
|
|
4023
|
+
pectin.Trace(),
|
|
4024
|
+
__metadata("design:type", Function),
|
|
4025
|
+
__metadata("design:paramtypes", []),
|
|
4026
|
+
__metadata("design:returntype", void 0)
|
|
4027
|
+
], ActivityContainerComponent.prototype, "onAnimationFinished", null);
|
|
4028
|
+
__decorate([
|
|
4029
|
+
pectin.Trace(),
|
|
4030
|
+
__metadata("design:type", Function),
|
|
4031
|
+
__metadata("design:paramtypes", []),
|
|
4032
|
+
__metadata("design:returntype", void 0)
|
|
4033
|
+
], ActivityContainerComponent.prototype, "synchroniseSelectedTabIndex", null);
|
|
4034
|
+
__decorate([
|
|
4035
|
+
pectin.Trace(),
|
|
4036
|
+
__metadata("design:type", Function),
|
|
4037
|
+
__metadata("design:paramtypes", []),
|
|
4038
|
+
__metadata("design:returntype", void 0)
|
|
4039
|
+
], ActivityContainerComponent.prototype, "getSelectedTabIndex", null);
|
|
4040
|
+
__decorate([
|
|
4041
|
+
pectin.Trace(),
|
|
4042
|
+
__metadata("design:type", Function),
|
|
4043
|
+
__metadata("design:paramtypes", []),
|
|
4044
|
+
__metadata("design:returntype", void 0)
|
|
4045
|
+
], ActivityContainerComponent.prototype, "triggerTabSynchronisation", null);
|
|
4013
4046
|
ActivityContainerComponent = __decorate([
|
|
4014
4047
|
core.Component({
|
|
4015
4048
|
selector: 'aup-activity-container',
|
|
4016
|
-
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; trackBy: activityIndex\" >\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
4049
|
+
template: "<mat-tab-group #tabs no-tab-header\n [dynamicHeight]=\"dynamicHeight\"\n [class.full-height-tabs]=\"!dynamicHeight\">\n <mat-tab *ngFor=\"let tab of activityTabs; let i = index; trackBy: activityIndex\" [@.disabled]=\"inTabChange.value\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
|
|
4017
4050
|
styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
|
|
4018
4051
|
}),
|
|
4019
4052
|
__metadata("design:paramtypes", [])
|