@coolon/angular-ui-powerups 2.0.0-alpha.30 → 2.0.0-alpha.32

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.
Files changed (24) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bundles/coolon-angular-ui-powerups.umd.js +7 -26
  3. package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
  4. package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
  5. package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
  6. package/coolon-angular-ui-powerups.metadata.json +1 -1
  7. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js +7 -27
  8. package/esm2015/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  9. package/esm2015/lib/interaction/components/activity-container/activity-container.component.metadata.json +1 -1
  10. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -0
  11. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  12. package/esm2015/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.metadata.json +1 -1
  13. package/esm2015/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  14. package/esm5/lib/interaction/components/activity-container/activity-container.component.js +7 -27
  15. package/esm5/lib/interaction/components/activity-container/activity-container.component.js.map +1 -1
  16. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js +1 -0
  17. package/esm5/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.js.map +1 -1
  18. package/esm5/lib/interaction/interaction.module.ngfactory.js.map +1 -1
  19. package/fesm2015/coolon-angular-ui-powerups.js +8 -27
  20. package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
  21. package/fesm5/coolon-angular-ui-powerups.js +8 -27
  22. package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
  23. package/lib/interaction/components/activity-container/activity-outlet/activity-outlet.component.d.ts +1 -0
  24. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
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.32](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.31...v2.0.0-alpha.32) (2020-08-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * added activity animation tests and finally actually fixed the issue ([c067efb](https://bitbucket.org/coolon/angular-ui-powerups/commit/c067efbb011c006682b2720e16b7daf1577bab3c))
11
+
12
+ ## [2.0.0-alpha.31](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.30...v2.0.0-alpha.31) (2020-08-25)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * disable tab content animation when not active tab ([30b09b1](https://bitbucket.org/coolon/angular-ui-powerups/commit/30b09b100843c213db39617f3e944a96e300f4fe))
18
+
5
19
  ## [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
20
 
7
21
 
@@ -3752,6 +3752,7 @@
3752
3752
  this.componentFactoryResolver = componentFactoryResolver;
3753
3753
  this.viewContainerRef = viewContainerRef;
3754
3754
  this.injector = injector;
3755
+ this._disableAnimation = false;
3755
3756
  }
3756
3757
  Object.defineProperty(ActivityOutletComponent.prototype, "activityRef", {
3757
3758
  get: function () {
@@ -3825,7 +3826,7 @@
3825
3826
  _this.activityTabs = [];
3826
3827
  _this.garbage = new pectin.GarbageCollector();
3827
3828
  // 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
+ // new activity is started, but is not running the enter animation
3829
3830
  // when it is scrolled back into view. So we track the tab changes and
3830
3831
  // disable all animations inside the tab while we're animating.
3831
3832
  _this.inTabChange = new pectin.MutableValueModel(false);
@@ -3968,6 +3969,7 @@
3968
3969
  return index;
3969
3970
  };
3970
3971
  ;
3972
+ // @Trace()
3971
3973
  ActivityContainerComponent.prototype.onAnimationFinished = function () {
3972
3974
  if (this.onAnimationFinishedJob) {
3973
3975
  this.onAnimationFinishedJob();
@@ -3978,6 +3980,7 @@
3978
3980
  /**
3979
3981
  * Synchronises the selected tab index.
3980
3982
  */
3983
+ // @Trace()
3981
3984
  ActivityContainerComponent.prototype.synchroniseSelectedTabIndex = function () {
3982
3985
  var _this = this;
3983
3986
  var previousIndex = this.tabs.selectedIndex;
@@ -3994,9 +3997,11 @@
3994
3997
  ActivityContainerComponent.prototype.getSelectedOutlet = function () {
3995
3998
  return this.activityOutlets.toArray()[this.tabs.selectedIndex];
3996
3999
  };
4000
+ // @Trace()
3997
4001
  ActivityContainerComponent.prototype.getSelectedTabIndex = function () {
3998
4002
  return this.tabs.selectedIndex;
3999
4003
  };
4004
+ // @Trace()
4000
4005
  ActivityContainerComponent.prototype.triggerTabSynchronisation = function () {
4001
4006
  var _this = this;
4002
4007
  if (this.syncSelectedTabTimeout) {
@@ -4019,34 +4024,10 @@
4019
4024
  core.ViewChildren(ActivityOutletComponent),
4020
4025
  __metadata("design:type", core.QueryList)
4021
4026
  ], 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);
4046
4027
  ActivityContainerComponent = __decorate([
4047
4028
  core.Component({
4048
4029
  selector: 'aup-activity-container',
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",
4030
+ 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\"\n [@.disabled]=\"inTabChange.value || i !== getSelectedTabIndex()\">\n <aup-activity-outlet [nestedInteractionContext]=\"this\" [activityRef]=\"tab\"></aup-activity-outlet>\n </mat-tab>\n</mat-tab-group>\n",
4050
4031
  styles: [":host{display:flex;flex-direction:column}mat-tab-group{flex:1}"]
4051
4032
  }),
4052
4033
  __metadata("design:paramtypes", [])